diff options
author | 2015-07-15 15:32:09 +0600 | |
---|---|---|
committer | 2015-07-16 11:04:19 +0100 | |
commit | 108ceb48edea654c544b483c302212e43d79a472 (patch) | |
tree | 32c325eab3ed79939ae3c0d572e3e81ed65ebfa1 /compiler/optimizing/boolean_simplifier.cc | |
parent | fec9d09bf7d2d54048b1df8e3c24a210e58dbc84 (diff) |
ART: Boolean simplifier fix
Boolean simplifier should not remove condition instruction
if it has side effects.
Change-Id: I108b69ec05a49e5543ee956ad9c691b52179cf6c
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
Diffstat (limited to 'compiler/optimizing/boolean_simplifier.cc')
-rw-r--r-- | compiler/optimizing/boolean_simplifier.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/optimizing/boolean_simplifier.cc b/compiler/optimizing/boolean_simplifier.cc index 329112a377..84201c39a7 100644 --- a/compiler/optimizing/boolean_simplifier.cc +++ b/compiler/optimizing/boolean_simplifier.cc @@ -154,11 +154,6 @@ void HBooleanSimplifier::TryRemovingBooleanSelection(HBasicBlock* block) { // entry block. Any following blocks would have had the join block // as a dominator, and `MergeWith` handles changing that to the // entry block. - - // Remove the original condition if it is now unused. - if (!if_condition->HasUses()) { - if_condition->GetBlock()->RemoveInstructionOrPhi(if_condition); - } } void HBooleanSimplifier::Run() { |