[PATCH] D89397: [AMDGPU] SILowerControlFlow::removeMBBifRedundant should not try to change MBB layout if it can fallthrough
Alexander via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 08:39:33 PDT 2020
alex-t created this revision.
alex-t added reviewers: rampitec, vpykhtin.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
Herald added a project: LLVM.
alex-t requested review of this revision.
Herald added a subscriber: wdng.
removeMBBifRedundant normally tries to keep predecessors fallthrough when removing redundant MBB.
It has to change MBBs layout to keep the new successor to immediately follow the predecessor of removed MBB.
It only may be allowed in case the new successor itself has no successors to which it fall through.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89397
Files:
llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
llvm/test/CodeGen/AMDGPU/collapse-endcf.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89397.298157.patch
Type: text/x-patch
Size: 7027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201014/10f0eea2/attachment.bin>
More information about the llvm-commits
mailing list