[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:18 PDT 2024


================
@@ -102,6 +104,8 @@ BasicBlock *getDesignatedMergeBlock(Instruction *I) {
 // Returns the continue block designated by I if I is an OpLoopMerge, nullptr
 // otherwise.
 BasicBlock *getDesignatedContinueBlock(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