[llvm] [ReachingDefAnalysis] Extend the analysis to stack objects. (PR #118097)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 05:50:55 PST 2025
================
@@ -48,12 +54,25 @@ static bool isValidRegDefOf(const MachineOperand &MO, MCRegister Reg,
return TRI->regsOverlap(MO.getReg(), Reg);
}
+static bool isFIDef(const MachineInstr &MI, int FrameIndex,
+ const TargetInstrInfo *TII) {
+ int DefFrameIndex = 0;
+ int SrcFrameIndex = 0;
+ if (TII->isStoreToStackSlot(MI, DefFrameIndex) ||
+ TII->isStackSlotCopy(MI, DefFrameIndex, SrcFrameIndex)) {
----------------
michaelmaitland wrote:
No curly braces around single line bodies
https://github.com/llvm/llvm-project/pull/118097
More information about the llvm-commits
mailing list