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

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 14:09:44 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 think this should be done now. PTAL.


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