[llvm] [AArch64][SME] Add remarks to flag lazy ZA saves, and SMSTART/SMSTOP transitions (PR #68255)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 00:25:36 PDT 2023
================
@@ -7388,13 +7401,32 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
ISD::INTRINSIC_VOID, DL, MVT::Other, Chain,
DAG.getConstant(Intrinsic::aarch64_sme_set_tpidr2, DL, MVT::i32),
TPIDR2ObjAddr);
+ OptimizationRemarkEmitter ORE(&MF.getFunction());
+ ORE.emit([&]() {
+ auto R = CLI.CB ? OptimizationRemarkAnalysis(DEBUG_TYPE, "SMELazySaveZA",
----------------
sdesmalen-arm wrote:
nit: Rather than using `DEBUG_TYPE/aarch64-lower`, can we use `sme` instead? I'm not sure if there will be other places where we want to emit any SME-specific remarks, at which point the end-user can simply do `-Rpass-analysis=sme`.
https://github.com/llvm/llvm-project/pull/68255
More information about the llvm-commits
mailing list