This was leaving behind a use at the deleted instruction which the
verifier would fail during allocation.
Also fix incorrectly folding if the incoming cndmask was in a
different block.
Paths
| Differential D127894
AMDGPU: Fix invalid liveness after si-optimize-exec-masking-pre-ra ClosedPublic Authored by arsenm on Jun 15 2022, 12:23 PM.
Details
Diff Detail Event Timeline
This revision is now accepted and ready to land.Jun 17 2022, 1:15 PM arsenm added a child revision: D128110: AMDGPU: Don't delete cndmask with multiple uses in exec mask fold.Jun 17 2022, 5:21 PM
Revision Contents
Diff 437935 llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
llvm/test/CodeGen/AMDGPU/opt-exec-masking-pre-ra-update-liveness-wave32.mir
llvm/test/CodeGen/AMDGPU/opt-exec-masking-pre-ra-update-liveness.mir
|
Returns true on success.