diff options
author | 2014-10-20 09:37:45 +0000 | |
---|---|---|
committer | 2014-10-20 09:37:46 +0000 | |
commit | 1e642b5e5b2958ffc1653f5f42f2d091bbd8549e (patch) | |
tree | db47f70ec77ed5389a69c62cf88f9f4e4e5590f5 /compiler/optimizing/nodes.cc | |
parent | 570d5dd11b4dbf003e628d3f1890649a02365c02 (diff) | |
parent | 6c82d40eb142771086f5531998de2273ba5cc08c (diff) |
Merge "Have HInstruction::StrictlyDominates compute strict dominance."
Diffstat (limited to 'compiler/optimizing/nodes.cc')
-rw-r--r-- | compiler/optimizing/nodes.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index aee21770b7..10c60140ec 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -472,7 +472,11 @@ bool HInstructionList::FoundBefore(const HInstruction* instruction1, return true; } -bool HInstruction::Dominates(HInstruction* other_instruction) const { +bool HInstruction::StrictlyDominates(HInstruction* other_instruction) const { + if (other_instruction == this) { + // An instruction does not strictly dominate itself. + return false; + } HBasicBlock* block = GetBlock(); HBasicBlock* other_block = other_instruction->GetBlock(); if (block != other_block) { |