[llvm] 886d98e - [LLVM][AArch64] Enable SVEIntrinsicOpts at all optimisation levels.

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 03:37:32 PDT 2024


Author: Paul Walker
Date: 2024-10-09T10:22:52Z
New Revision: 886d98e149843f3890ef4dd556a5dee45ff97fe9

URL: https://github.com/llvm/llvm-project/commit/886d98e149843f3890ef4dd556a5dee45ff97fe9
DIFF: https://github.com/llvm/llvm-project/commit/886d98e149843f3890ef4dd556a5dee45ff97fe9.diff

LOG: [LLVM][AArch64] Enable SVEIntrinsicOpts at all optimisation levels.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64TargetMachine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
index 9f96f6c5e83ec4..7b0ae23358673e 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
@@ -588,7 +588,7 @@ void AArch64PassConfig::addIRPasses() {
 
   // Expand any SVE vector library calls that we can't code generate directly.
   if (EnableSVEIntrinsicOpts &&
-      TM->getOptLevel() == CodeGenOptLevel::Aggressive)
+      TM->getOptLevel() != CodeGenOptLevel::None)
     addPass(createSVEIntrinsicOptsPass());
 
   // Cmpxchg instructions are often used with a subsequent comparison to


        


More information about the llvm-commits mailing list