[llvm] [ReachingDefAnalysis] Extend the analysis to stack objects. (PR #118097)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 12:06:46 PST 2025
================
@@ -138,6 +141,13 @@ class ReachingDefAnalysis : public MachineFunctionPass {
DenseMap<MachineInstr *, int> InstIds;
MBBReachingDefsInfo MBBReachingDefs;
+ using MBBFrameObjsReachingDefsInfo =
+ std::vector<std::vector<std::vector<int>>>;
----------------
topperc wrote:
Can the last std::vector<int> be SmallVector<int>? I assume its usually doesn't contain many values since for a given frame index, it's usually not defined by many blocks?
https://github.com/llvm/llvm-project/pull/118097
More information about the llvm-commits
mailing list