llvm-project
228dae78 - [X86] Use pseudo instructions to zero registers in `buildClearRegister` (#163358)

Commit
85 days ago
[X86] Use pseudo instructions to zero registers in `buildClearRegister` (#163358) In `buildClearRegister` use the correct pseudo-opcode for each register class: - For `VR128`, use `V_SET0` - For `VR256`, use `AVX_SET0` - For `VR512`, use `AVX512_512_SET0` - For `VK*`, use `KSET0Q/KSET0W` This avoids illegal register/opcode pairings and machine verifier errors when clearing call-used registers under `-fzero-call-used-regs=used`. Fixes: #163053 --------- Co-authored-by: Simon Pilgrim <llvm-dev@redking.me.uk>
Parents
Loading