Skip to content

Commit d11ea2c

Browse files
committed
[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
1 parent 9b22521 commit d11ea2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/GlobalISel/Localizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ bool Localizer::localizeInterBlock(
115115
// we start doing CSE across blocks.
116116
auto &MBB = MF.front();
117117
for (MachineInstr &MI : MBB) {
118-
if (LocalizedInstrs.count(&MI) || !shouldLocalize(MI))
118+
if (!shouldLocalize(MI))
119119
continue;
120120
LLVM_DEBUG(dbgs() << "Should localize: " << MI);
121121
assert(MI.getDesc().getNumDefs() == 1 &&

0 commit comments

Comments
 (0)