diff options
| author | 2015-11-23 14:23:24 +0000 | |
|---|---|---|
| committer | 2015-11-23 14:23:24 +0000 | |
| commit | f177c7394abc5ab219cae57820be0125e0f64c1f (patch) | |
| tree | fb98234d843cff5d44dd7c69190afb05894f7200 /compiler/optimizing/nodes.h | |
| parent | 6e556435abdb0290883f263d80a4f05872adb243 (diff) | |
| parent | fb601d2eeba807d24296c3ff47305b83bc1ff64a (diff) | |
Merge "ART: Fix wide stores in Optimizing" am: 349106d96c
am: fb601d2eeb
* commit 'fb601d2eeba807d24296c3ff47305b83bc1ff64a':
ART: Fix wide stores in Optimizing
Diffstat (limited to 'compiler/optimizing/nodes.h')
| -rw-r--r-- | compiler/optimizing/nodes.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 3b5c384c84..e11dfbbad9 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -4318,9 +4318,13 @@ class HPhi : public HInstruction { : HInstruction(SideEffects::None(), dex_pc), inputs_(number_of_inputs, arena->Adapter(kArenaAllocPhiInputs)), reg_number_(reg_number), - type_(type), - is_live_(false), + type_(ToPhiType(type)), + // Phis are constructed live and marked dead if conflicting or unused. + // Individual steps of SsaBuilder should assume that if a phi has been + // marked dead, it can be ignored and will be removed by SsaPhiElimination. + is_live_(true), can_be_null_(true) { + DCHECK_NE(type_, Primitive::kPrimVoid); } // Returns a type equivalent to the given `type`, but that a `HPhi` can hold. |