[llvm] [LowerSwitch] Don't let pass manager handle the dependency (PR #68662)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 00:08:52 PDT 2023
================
@@ -192,6 +191,9 @@ BasicBlock *AMDGPUUnifyDivergentExitNodesImpl::unifyReturnBlockSet(
bool AMDGPUUnifyDivergentExitNodesImpl::run(Function &F, DominatorTree *DT,
const PostDominatorTree &PDT,
const UniformityInfo &UA) {
+ for (auto &BB : F)
+ assert(hasOnlySimpleTerminator(&BB));
----------------
ruiling wrote:
Thanks for the suggestion, but I think there might be also other unsupported terminator goes here, so I just add a message "unsupported block terminator".
https://github.com/llvm/llvm-project/pull/68662
More information about the llvm-commits
mailing list