Bug 733353 - IonMonkey: Don't allocate new instruction IDs when moving existing instructions. r=jandem

This commit is contained in:
Dan Gohman 2014-06-06 08:21:48 -07:00
parent f769c20789
commit 7fb5b20e0b

View File

@ -691,7 +691,9 @@ MBasicBlock::moveBefore(MInstruction *at, MInstruction *ins)
// Insert into new block, which may be distinct.
// Uses and operands are untouched.
at->block()->insertBefore(at, ins);
ins->setBlock(at->block());
at->block()->instructions_.insertBefore(at, ins);
ins->setTrackedSite(at->trackedSite());
}
static inline void