[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:11 PST 2024
================
@@ -212,16 +241,54 @@ void ReachingDefAnalysis::processBasicBlock(
bool ReachingDefAnalysis::runOnMachineFunction(MachineFunction &mf) {
MF = &mf;
TRI = MF->getSubtarget().getRegisterInfo();
+ const TargetSubtargetInfo &STI = MF->getSubtarget();
+ TRI = STI.getRegisterInfo();
+ TII = STI.getInstrInfo();
LLVM_DEBUG(dbgs() << "********** REACHING DEFINITION ANALYSIS **********\n");
init();
traverse();
----------------
michaelmaitland wrote:
Can you pass `print-all-reaching-defs` to the test and check that it prints as expected?
https://github.com/llvm/llvm-project/pull/118097
More information about the llvm-commits
mailing list