[PATCH] D132073: [CodeGen] Zero out only modified registers

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 15:52:31 PDT 2022


void added a comment.

In D132073#3730424 <https://reviews.llvm.org/D132073#3730424>, @efriedma wrote:

>> Zeroing out used, but not modified, registers can destroy the contents of non-volatile registers
>
> Do you have a testcase?  All the changes to the regression tests involve argument registers, which are not preserved across calls.  (At least, by default; -mllvm -enable-ipra exists, but it's disabled at all optimization levels.)

I do, but it's rather large. I'll see if I can trim it down a bit.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132073/new/

https://reviews.llvm.org/D132073



More information about the llvm-commits mailing list