[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:
Amara Emerson 2019-06-18 22:08:40 +00:00
parent 9b2252123d
commit d11ea2c8c5
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&