[llvm] [X86] Do not elect to tail call if caller must preserve all registers (PR #112098)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 13 02:34:43 PDT 2024
================
@@ -0,0 +1,34 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=x86_64-linux-gnu -mattr=-sse,-avx | FileCheck %s
+
+ at .str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
+
+define void @caller(i32 %0, i32 %1) #0 {
----------------
phoebewang wrote:
`rdi/rsi` should also be preserved according to GCC? https://godbolt.org/z/W6dzY98so
https://github.com/llvm/llvm-project/pull/112098
More information about the llvm-commits
mailing list