[llvm-branch-commits] [llvm] [AMDGPU] Tail call support for whole wave functions (PR #145860)

Shilei Tian via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 21 08:13:26 PDT 2025


================
@@ -8901,6 +8906,29 @@ SelectionDAGBuilder::lowerInvokable(TargetLowering::CallLoweringInfo &CLI,
   return Result;
 }
 
+bool SelectionDAGBuilder::canTailCall(const CallBase &CB) const {
+  bool isMustTailCall = CB.isMustTailCall();
+
+  // Avoid emitting tail calls in functions with the disable-tail-calls
+  // attribute.
+  auto *Caller = CB.getParent()->getParent();
----------------
shiltian wrote:

no auto

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


More information about the llvm-branch-commits mailing list