[llvm] [AArch64] Add streaming-mode stack hazard optimization remarks (PR #101695)
Hari Limaye via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 05:54:35 PDT 2024
================
@@ -4626,6 +4643,10 @@ void AArch64FrameLowering::processFunctionBeforeFrameIndicesReplaced(
if (StackTaggingMergeSetTag)
II = tryMergeAdjacentSTG(II, this, RS);
}
+
+ // Run remarks pass.
+ MachineOptimizationRemarkEmitter ORE(MF, nullptr);
----------------
hazzlim wrote:
Good point - I've added a new virtual `emitRemarks` function to TFI so that we can reuse the ORE from PEI. I've put the call to `TFI.emitRemarks()` at the end of `PEI::runOnMachineFunction`, as other target independent remarks passes are run here.
https://github.com/llvm/llvm-project/pull/101695
More information about the llvm-commits
mailing list