[PATCH] D93594: [X86] Pass to transform amx intrinsics to scalar operation.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 20 11:54:27 PST 2020


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86TargetMachine.cpp:415
+
+  if (TM->getOptLevel() == CodeGenOpt::None)
+    addPass(createX86LowerAMXIntrinsicsPass());
----------------
I don't think you can detect O0 this way. A function can have the optnone attribute in the non-O0 pipeline and won't be optimized by the middle end.

This can occur if you mix an 00 translation unit and an O3 translation unit in LTO and use O3 for the LTO pipeline.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93594/new/

https://reviews.llvm.org/D93594



More information about the llvm-commits mailing list