| Index: runtime/vm/intermediate_language.h
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.h (revision 35967)
|
| +++ runtime/vm/intermediate_language.h (working copy)
|
| @@ -1594,6 +1594,7 @@
|
|
|
| // Direct access to phis_ in order to resize it due to phi elimination.
|
| friend class ConstantPropagator;
|
| + friend class DeadCodeElimination;
|
|
|
| virtual void ClearPredecessors() { predecessors_.Clear(); }
|
| virtual void AddPredecessor(BlockEntryInstr* predecessor);
|
| @@ -1998,6 +1999,9 @@
|
|
|
| virtual bool MayThrow() const { return false; }
|
|
|
| + // A phi is redundant if all input operands are the same.
|
| + bool IsRedundant() const;
|
| +
|
| private:
|
| // Direct access to inputs_ in order to resize it due to unreachable
|
| // predecessors.
|
|
|