[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
Mon Oct 14 02:14:32 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:
I think Clang should simply report error if no `-mgeneral-regs-only` like GCC. But I agree this would be an orthogonal issue.
https://github.com/llvm/llvm-project/pull/112098
More information about the llvm-commits
mailing list