diff options
| author | 2015-11-23 14:19:45 +0000 | |
|---|---|---|
| committer | 2015-11-23 14:19:45 +0000 | |
| commit | fb601d2eeba807d24296c3ff47305b83bc1ff64a (patch) | |
| tree | fb98234d843cff5d44dd7c69190afb05894f7200 /compiler/optimizing/nodes.h | |
| parent | a5c0a6c6dec08f122d675e3767f6583d56851474 (diff) | |
| parent | 349106d96cc56399ab594aaee0beed223ee0b8f8 (diff) | |
Merge "ART: Fix wide stores in Optimizing"
am: 349106d96c
* commit '349106d96cc56399ab594aaee0beed223ee0b8f8':
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. |