diff options
author | 2014-09-25 10:10:38 +0100 | |
---|---|---|
committer | 2014-09-25 10:10:38 +0100 | |
commit | 6b46923ff0197c95f1e7ea0bc730961df6725cc9 (patch) | |
tree | 45cf685a23c70f95b1d16b7d3d67369d6148a514 /compiler/optimizing/nodes.h | |
parent | c0d36abb12cdbb9469039c1dc153a586bd984015 (diff) |
Optimizing compiler: check inputs & uses definitions in CFG.
Ensure each input and each use of an instruction is defined
in a block of the control-flow graph.
Change-Id: If4a83b02825230329b0b4fd84255dcb7c3219684
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index be6b355d22..5e2dec1623 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -57,6 +57,9 @@ class HInstructionList { void AddInstruction(HInstruction* instruction); void RemoveInstruction(HInstruction* instruction); + // Return true if this list contains `instruction`. + bool Contains(HInstruction* instruction) const; + // Return true if `instruction1` is found before `instruction2` in // this instruction list and false otherwise. Abort if none // of these instructions is found. |