[llvm] [SPIR-V] Fix BB ordering & register lifetime (PR #111026)
Vyacheslav Levytskyy via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 11:45:30 PDT 2024
Nathan =?utf-8?q?Gau=C3=ABr?= <brioche at google.com>,
Nathan =?utf-8?q?Gau=C3=ABr?= <brioche at google.com>,
Nathan =?utf-8?q?Gau=C3=ABr?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/111026 at github.com>
================
@@ -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;
----------------
VyacheslavLevytskyy wrote:
The same `dyn_cast_or_null` question.
https://github.com/llvm/llvm-project/pull/111026
More information about the llvm-commits
mailing list