Skip to content

Commit

Permalink
[LLVM][AArch64] Enable SVEIntrinsicOpts at all optimisation levels.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwalker-arm committed Oct 9, 2024
1 parent e85fcb7 commit 6654578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flang/test/Driver/default-backend-pipelines.f90
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
! RUN: %flang_fc1 -S -O2 %s -triple aarch64-unknown-linux-gnu -mllvm -debug-pass=Structure -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O2
! RUN: %flang_fc1 -S -O3 %s -triple aarch64-unknown-linux-gnu -mllvm -debug-pass=Structure -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O3

! CHECK-O2-NOT: SVE intrinsics optimizations
! CHECK-O2-NOT: Optimize selects

! CHECK-O3: SVE intrinsics optimizations
! CHECK-O3: Optimize selects

subroutine simple_loop
integer :: i
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6654578

Please sign in to comment.