These are scalar instructions that change vector instructions, so they
should not be executed without any active lanes.
The implementation of -amdgpu-skip-threshold also seem to be backwards
from expected, since decreasing it prevents removal.
Paths
| Differential D80998
AMDGPU: Don't run mode switches with exec 0 ClosedPublic Authored by arsenm on Jun 2 2020, 6:21 AM.
Details
Diff Detail Event Timelinearsenm added a child revision: D81007: AMDGPU: Don't run indexing mode switches with exec = 0.Jun 2 2020, 7:25 AM This revision is now accepted and ready to land.Jun 2 2020, 10:24 AM
Revision Contents
Diff 267860 llvm/lib/Target/AMDGPU/SIInstrInfo.h
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/test/CodeGen/AMDGPU/remove-short-exec-branches.mir
llvm/test/CodeGen/AMDGPU/skip-if-dead.ll
|