Skip to content

Commit 3216f21

Browse files
committed
[CodeGen] Clear InitUndef pass new register cache between pass runs
Multiple invocations of the pass could interfere with eachother, preventing some undefs being initialised.
1 parent cd4287b commit 3216f21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/CodeGen/InitUndef.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ bool InitUndef::runOnMachineFunction(MachineFunction &MF) {
272272
for (auto *DeadMI : DeadInsts)
273273
DeadMI->eraseFromParent();
274274
DeadInsts.clear();
275+
NewRegs.clear();
275276

276277
return Changed;
277278
}

0 commit comments

Comments
 (0)