[PATCH] D141020: [X86][ABI] Don't preserve return regs for preserve_all/preserve_most CCs
Anton Bikineev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 13:11:54 PST 2023
AntonBikineev marked an inline comment as done.
AntonBikineev added inline comments.
================
Comment at: llvm/test/CodeGen/X86/preserve_allcc64.ll:9
-define preserve_allcc void @preserve_allcc1() nounwind {
+define preserve_allcc RETTYPE @preserve_allcc1() nounwind {
entry:
----------------
pengfei wrote:
> I think it's better to put these 2 tests into a seperate file. It just waste time to run multi times on the other 2 tests.
Sure (moved tests returning `double` into separate files)
================
Comment at: llvm/test/CodeGen/X86/preserve_allcc64.ll:11-23
+;ALL-LABEL: preserve_allcc1
+;ALL: pushq %r10
+;ALL-NEXT: pushq %r9
+;ALL-NEXT: pushq %r8
+;ALL-NEXT: pushq %rdi
+;ALL-NEXT: pushq %rsi
+;VOID-NEXT: pushq %rdx
----------------
pengfei wrote:
> This will brings difficulties in future updates, though I think it's rare this file will be affected.
What exactly could break? The order of CSRs?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141020/new/
https://reviews.llvm.org/D141020
More information about the llvm-commits
mailing list