diff options
| author | 2014-08-06 23:03:21 +0000 | |
|---|---|---|
| committer | 2014-08-06 17:20:04 +0000 | |
| commit | 8b2e9cde4aa3dc96b903c9eee3a7b3b7ee8422e4 (patch) | |
| tree | 475c779c2ee973cf51a0a63c9d010c59c4b2d022 /compiler/optimizing/nodes.h | |
| parent | 269c3360f8e69e9faf8bc8a51fd87ae7adadfb59 (diff) | |
| parent | 3ac17fcce8773388512ce72cb491b202872ca1c1 (diff) | |
Merge "Fix SsaDeadPhiElimination in the presence of dependent phis."
Diffstat (limited to 'compiler/optimizing/nodes.h')
| -rw-r--r-- | compiler/optimizing/nodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index cb3dd0f69f..bb699e47c3 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -501,6 +501,7 @@ class HInstruction : public ArenaObject { void SetBlock(HBasicBlock* block) { block_ = block; } bool IsInBlock() const { return block_ != nullptr; } bool IsInLoop() const { return block_->IsInLoop(); } + bool IsLoopHeaderPhi() { return IsPhi() && block_->IsLoopHeader(); } virtual size_t InputCount() const = 0; virtual HInstruction* InputAt(size_t i) const = 0; |