[PATCH] D110869: [X86] Implement -fzero-call-used-regs option

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 14:34:31 PST 2022


void added a comment.

In D110869#3295147 <https://reviews.llvm.org/D110869#3295147>, @nathanchance wrote:

> 



> I tested this patch but it did not change the hang.

Okay. We need to determine which function is failing. Could you do something like this:

  #define zcur __attribute__((zero_call_used_regs("used-gpr")))

and then add `zcur` to each function, while compiling the module with `-fzero-call-used-regs=skip`. Then remove the `zcur` attribute from functions until it works? I know it's a PITA, but otherwise I'm just guessing at which function's causing the failure...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110869



More information about the llvm-commits mailing list