[llvm] [ReachingDefAnalysis] Extend the analysis to stack objects. (PR #118097)
Mikhail Gudim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 05:24:08 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)) {
----------------
mgudim wrote:
@topperc Just to confirm that I understand correctly: we need to replace `MCRegister` with `Register` everywhere in `ReachingDefAnalysis`, correct?
https://github.com/llvm/llvm-project/pull/118097
More information about the llvm-commits
mailing list