[llvm] [AArch64] Use GISel for optnone functions (PR #174746)
Ryan Cowan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 02:32:40 PST 2026
================
@@ -733,7 +744,12 @@ bool AArch64PassConfig::addIRTranslator() {
}
void AArch64PassConfig::addPreLegalizeMachineIR() {
- if (getOptLevel() == CodeGenOptLevel::None) {
+ const bool GlobalISelFlag =
+ getCGPassBuilderOption().EnableGlobalISelOption.value_or(false);
+ if (getOptLevel() == CodeGenOptLevel::None ||
+ (static_cast<unsigned>(getOptLevel()) >
+ this->getAArch64TargetMachine().getEnableGlobalISelAtO() &&
----------------
HolyMolyCowMan wrote:
We can remove `this->`, good spot.
I agree, is this something that the 'new' pass manager might be able to help with?
https://github.com/llvm/llvm-project/pull/174746
More information about the llvm-commits
mailing list