[llvm] [ReachingDefAnalysis] Extend the analysis to stack objects. (PR #118097)
Mikhail Gudim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 01:11:20 PST 2025
================
@@ -422,7 +507,7 @@ void ReachingDefAnalysis::getLiveOuts(MachineBasicBlock *MBB, MCRegister Reg,
VisitedBBs.insert(MBB);
LiveRegUnits LiveRegs(*TRI);
LiveRegs.addLiveOuts(*MBB);
- if (LiveRegs.available(Reg))
+ if (Register::isPhysicalRegister(Reg) && LiveRegs.available(Reg))
----------------
mgudim wrote:
The `LiveRegUnit` doesn't track stack slots. I think we just get segmentation fault if we pass stack slot to `LiveRegs.available`
https://github.com/llvm/llvm-project/pull/118097
More information about the llvm-commits
mailing list