Skip to content

Commit da385e8

Browse files
authored
[aarch64] Unguard GEPOpt from O3
This chunk of code currently runs only if the optimization mode is O3 AND the EnableGEPOpt flag is set. Given that this is the only use case for the EnableGEPOpt flag, the guarding against O3 is kinda pointless. IF the user wants to enable it then the flag should be sufficient. Reviewers: TNorthover, aeubanks Reviewed By: aeubanks Pull Request: #86588
1 parent de917dc commit da385e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64TargetMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ void AArch64PassConfig::addIRPasses() {
603603
addPass(createFalkorMarkStridedAccessesPass());
604604
}
605605

606-
if (TM->getOptLevel() == CodeGenOptLevel::Aggressive && EnableGEPOpt) {
606+
if (EnableGEPOpt) {
607607
// Call SeparateConstOffsetFromGEP pass to extract constants within indices
608608
// and lower a GEP with multiple indices to either arithmetic operations or
609609
// multiple GEPs with single index.

0 commit comments

Comments
 (0)