summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/update-phi.ll
Commit message (Collapse)AuthorAgeFilesLines
* Update phis in AMDGPUUnifyDivergentExitNodesDiego Novillo2019-06-251-0/+39
Original patch https://reviews.llvm.org/D63659 from Steven Perron <stevenperron@google.com> The pass AMDGPUUnifyDivergentExitNodes does not update the phi nodes in the successors of blocks that is splits. This is fixed by calling BasicBlock::splitBasicBlock to split the block instead of doing it manually. This does extra work because a new conditional branch is created in BB which is immediately replaced, but I think the simplicity is worth it. It also helps make the code more future proof in case other things need to be updated. llvm-svn: 364342
OpenPOWER on IntegriCloud