[PATCH] D86583: AMDGPU/GlobalISel: Tolerate negated control flow intrinsic outputs
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 17:21:03 PDT 2020
arsenm created this revision.
arsenm added reviewers: nhaehnle, foad, aemerson, kerbowa, Petar.Avramovic, mbrkusanin.
Herald added subscribers: hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, jvesely, kzhuravl.
Herald added a project: LLVM.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
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.
https://reviews.llvm.org/D86583
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86583.287802.patch
Type: text/x-patch
Size: 15567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200826/10c17617/attachment.bin>
More information about the llvm-commits
mailing list