[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,14 @@
+// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
+
+// CHECK: define void @disable_tail_calls() #[[ATTRS_TRUE:.*]] {
+llvm.func @disable_tail_calls() attributes {disable_tail_calls = true} {
+ llvm.return
+}
+
+// CHECK: define void @disable_tail_calls_false() #[[ATTRS_FALSE:.*]] {
+llvm.func @disable_tail_calls_false() attributes {disable_tail_calls = false} {
----------------
tarunprabhu wrote:
Does clang emit `"disable-tail-calls"="false"` in such cases, or does it simply omit the attribute? If the default is for the attribute to be absent, and `disable-tails-calls=false` is effectively the same as the default, is there any reason to emit it?
https://github.com/llvm/llvm-project/pull/216650
More information about the Mlir-commits
mailing list