After changing the algorithm to only process the entry block we never revisit
a processed instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363745
91177308-0d34-0410-b5e6-
96231b3b80d8
// we start doing CSE across blocks.
auto &MBB = MF.front();
for (MachineInstr &MI : MBB) {
- if (LocalizedInstrs.count(&MI) || !shouldLocalize(MI))
+ if (!shouldLocalize(MI))
continue;
LLVM_DEBUG(dbgs() << "Should localize: " << MI);
assert(MI.getDesc().getNumDefs() == 1 &&