From 09aa147f0891ef28a95d89e8ad61c429f82ddd5b Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 19 Jan 2016 10:52:54 +0000 Subject: Disable DCE when there are irreducible loops. Also ensure an instruction that requires an environment does have one. Change-Id: I41a8460e05ef320f872197d3be7847e7ffaa6ee8 --- compiler/optimizing/nodes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 859d570b29..e222ef7260 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -860,6 +860,8 @@ class HBasicBlock : public ArenaObject { HInstruction* GetLastPhi() const { return phis_.last_instruction_; } const HInstructionList& GetPhis() const { return phis_; } + HInstruction* GetFirstInstructionDisregardMoves() const; + void AddSuccessor(HBasicBlock* block) { successors_.push_back(block); block->predecessors_.push_back(this); -- cgit v1.2.3-59-g8ed1b