forked from OSchip/llvm-project
[GlobalISel][Localizer] Remove redundant set lookup.
After changing the algorithm to only process the entry block we never revisit a processed instruction. llvm-svn: 363745
This commit is contained in:
parent
9b2252123d
commit
d11ea2c8c5
|
@ -115,7 +115,7 @@ bool Localizer::localizeInterBlock(
|
|||
// 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 &&
|
||||
|
|
Loading…
Reference in New Issue