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

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 29 07:20:09 PST 2024


================
@@ -234,7 +301,10 @@ void ReachingDefAnalysis::reset() {
 
 void ReachingDefAnalysis::init() {
   NumRegUnits = TRI->getNumRegUnits();
+  NumStackObjects = MF->getFrameInfo().getNumObjects();
----------------
michaelmaitland wrote:

I think you have NumStackObjects and ObjectIndexBegin information in `isFIDef` through `MI.getParent()->getFrameInfo().getNumObjects()` and `MI.getParent()->getFrameInfo().getObjectIndexBegin()`. Do you need to make them member variables?

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


More information about the llvm-commits mailing list