[llvm] [AArch64] Use GISel for optnone functions (PR #174746)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 26 14:55:55 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() &&
----------------
davemgreen wrote:
Can this remove `this->`?
It would be good to eventually get to a place where we one have one pipelines, with the other passes not being required or disabled for optnone functions, as needed.
https://github.com/llvm/llvm-project/pull/174746
More information about the llvm-commits
mailing list