[llvm] [ReachingDefAnalysis] Extend the analysis to stack objects. (PR #118097)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 09:09:07 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))
----------------
michaelmaitland wrote:

What does it mean if `isStackSlot(Reg) && LiveRegs.available()`? What is the reason we don't wan't to `return` in that case too?

https://github.com/llvm/llvm-project/pull/118097


More information about the llvm-commits mailing list