If the condition output is negated, swap the branch targets. This is
similar to what SelectionDAG does for when SelectionDAG builder
decides to invert the condition and swap the branches.
This is leaving behind a dead constant def for some reason.
Paths
| Differential D86583
AMDGPU/GlobalISel: Tolerate negated control flow intrinsic outputs ClosedPublic Authored by arsenm on Aug 25 2020, 5:21 PM.
Details Summary If the condition output is negated, swap the branch targets. This is This is leaving behind a dead constant def for some reason.
Diff Detail
Revision Contents
Diff 287802 llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-amdgcn.if-invalid.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-amdgcn.if.xfail.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-brcond.mir
|