[llvm] [GlobalOpt] Add TTI interface useFastCCForInternalCall for FASTCC (PR #164768)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 23 01:05:55 PDT 2025


================
@@ -319,6 +319,10 @@ class X86TTIImpl final : public BasicTTIImplBase<X86TTIImpl> {
   unsigned getStoreMinimumVF(unsigned VF, Type *ScalarMemTy,
                              Type *ScalarValTy) const override;
 
+  bool useFastCCForInternalCall(Function &F) const override {
+    return !ST->is64Bit() || ST->hasEGPR();
+  }
----------------
nikic wrote:

Don't you need to check that both caller and callee have EGPR?

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


More information about the llvm-commits mailing list