Skip to content

Commit a1f9ad2

Browse files
authored
[SPARC] Fix-forward llvm#154950 by returning true if SP::V8BAR is handled (llvm#162424)
Use-after-poison happens because after SP::V8BAR is handled, it erases MI, which therefore should not be inspected by `ExpandPostRA::run()`. This fixes a buildbot-reported issue from llvm#154950 (https://lab.llvm.org/buildbot/#/builders/24/builds/13433).
1 parent 3bec46f commit a1f9ad2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/Sparc/SparcInstrInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ bool SparcInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
668668
.addImm(-1);
669669
MIBundleBuilder(MBB, InstSTBAR, InstLDSTUB);
670670
MBB.erase(MI);
671+
return true;
671672
}
672673
}
673674
return false;

0 commit comments

Comments
 (0)