[Mlir-commits] [clang] [flang] [mlir] [Flang][Driver]Implemented the support for option -f[no-]optimize-sibling-calls in Flang (PR #216650)
Tarun Prabhu
llvmlistbot at llvm.org
Mon Aug 24 07:34:01 PDT 2026
================
@@ -0,0 +1,15 @@
+// RUN: fir-opt --function-attr="disable-tail-calls=true" %s | FileCheck %s --check-prefix=ENABLED
+// RUN: fir-opt --function-attr="disable-tail-calls=false" %s | FileCheck %s --check-prefix=DISABLED
+
+func.func @_QPf() {
+ return
+}
+
+// ENABLED: func.func @_QPf() attributes {llvm.disable_tail_calls = true} {
+// ENABLED-NEXT: return
+// ENABLED-NEXT: }
+
+// DISABLED: func.func @_QPf() {
+// DISABLED-NOT: llvm.disable_tail_calls
+// DISABLED-NEXT: return
+// DISABLED-NEXT: }
----------------
tarunprabhu wrote:
These are probably not necessary since you mainly want to ensure that the attribute is not present.
https://github.com/llvm/llvm-project/pull/216650
More information about the Mlir-commits
mailing list