| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 35967)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -2878,6 +2878,17 @@
|
| }
|
|
|
|
|
| +bool PhiInstr::IsRedundant() const {
|
| + ASSERT(InputCount() > 1);
|
| + Definition* first = InputAt(0)->definition();
|
| + for (intptr_t i = 1; i < InputCount(); ++i) {
|
| + Definition* def = InputAt(i)->definition();
|
| + if (def != first) return false;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| +
|
| static bool SymbolicSub(const RangeBoundary& a,
|
| const RangeBoundary& b,
|
| RangeBoundary* result) {
|
|
|