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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 04:32:01 PST 2026


================
@@ -341,6 +341,9 @@ class LLVM_ABI TargetPassConfig : public ImmutablePass {
   /// By default, it's enabled for non O0 levels.
   virtual bool isGISelCSEEnabled() const;
 
+  /// Return true if GlobalISel should be run for a given function
+  virtual bool useGlobalISelFor(const Function &F) const { return true; }
----------------
arsenm wrote:

I don't want to add this override either. There should be 0 new points of control here 

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


More information about the llvm-commits mailing list