[llvm] [AArch64] Use GISel for optnone functions (PR #174746)

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 28 03:10:56 PST 2026


================
@@ -598,6 +612,21 @@ std::unique_ptr<CSEConfigBase> AArch64PassConfig::getCSEConfig() const {
   return getStandardCSEConfigForOpt(TM->getOptLevel());
 }
 
+// This function checks whether the opt level is explictly set to none,
+// or whether GlobalISel was enabled due to SDAG encountering an optnone
+// function. If the opt level is greater than the level we automatically enable
+// globalisel at, and it wasn't enabled via CLI, we know that it must be because
+// of an optnone function.
+bool AArch64PassConfig::isOptNone() const {
----------------
davemgreen wrote:

isGlobalISelOptNone to make it clear this is about gisel.

https://github.com/llvm/llvm-project/pull/174746


More information about the llvm-commits mailing list