[all-commits] [llvm/llvm-project] b43098: [CodeGen] Don't zero callee-save registers with ze...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Sep 16 02:52:49 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b4309800e9dc53a84222a6b57c8615d4a3084988
https://github.com/llvm/llvm-project/commit/b4309800e9dc53a84222a6b57c8615d4a3084988
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-09-16 (Fri, 16 Sep 2022)
Changed paths:
M llvm/lib/CodeGen/PrologEpilogInserter.cpp
M llvm/test/CodeGen/AArch64/zero-call-used-regs.ll
M llvm/test/CodeGen/X86/zero-call-used-regs.ll
Log Message:
-----------
[CodeGen] Don't zero callee-save registers with zero-call-used-regs (PR57692)
Callee save registers must be preserved, so -fzero-call-used-regs
should not be zeroing them. The previous implementation only did
not zero callee save registers that were saved&restored inside the
function, but we need preserve all of them.
Fixes https://github.com/llvm/llvm-project/issues/57692.
Differential Revision: https://reviews.llvm.org/D133946
More information about the All-commits
mailing list