[llvm] [SPIR-V] Fix BB ordering & register lifetime (PR #111026)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 07:43:23 PDT 2024


================
@@ -87,6 +87,8 @@ BasicBlock *getExitFor(const ConvergenceRegion *CR) {
 // Returns the merge block designated by I if I is a merge instruction, nullptr
 // otherwise.
 BasicBlock *getDesignatedMergeBlock(Instruction *I) {
+  if (I == nullptr)
+    return nullptr;
----------------
Keenuts wrote:

done

https://github.com/llvm/llvm-project/pull/111026


More information about the llvm-commits mailing list