[llvm] [ReachingDefAnalysis] Extend the analysis to stack objects. (PR #118097)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 19:32:15 PST 2025
================
@@ -269,6 +341,19 @@ int ReachingDefAnalysis::getReachingDef(MachineInstr *MI,
assert(MBBNumber < MBBReachingDefs.numBlockIDs() &&
"Unexpected basic block number.");
int LatestDef = ReachingDefDefaultVal;
+
+ if (Register::isStackSlot(Reg)) {
----------------
topperc wrote:
The whole Register/MCRegister thing is a mess of migration that never finished. I think the intent is that MCRegister is for physical registers only.
https://github.com/llvm/llvm-project/pull/118097
More information about the llvm-commits
mailing list