commit | 8ffc1fa556eb92f50a0bd3d5eab56435fff206f6 | [log] [tgz] |
---|---|---|
author | Aart Bik <ajcbik@google.com> | Wed Feb 17 15:13:56 2016 -0800 |
committer | Aart Bik <ajcbik@google.com> | Wed Feb 17 16:01:21 2016 -0800 |
tree | 9ab530e9d65f4f91b6c2d278408c01a0d161038d | |
parent | f598e2f183f496065597267a6fc142aa9a56e7c4 [diff] [blame] |
Set bias on != comparison for isNaN. Change-Id: I83969ecf7252b5e001bdd501c4ca31e7d0608854
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index c448153..13d3f75 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc
@@ -1558,6 +1558,7 @@ // IsNaN(x) is the same as x != x. HInstruction* x = invoke->InputAt(0); HCondition* condition = new (GetGraph()->GetArena()) HNotEqual(x, x, dex_pc); + condition->SetBias(ComparisonBias::kLtBias); invoke->GetBlock()->ReplaceAndRemoveInstructionWith(invoke, condition); }