[llvm] [LoopFusion] Validate loop structure before creating LoopCandidates (PR #192280)
Madhur Amilkanthwar via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 01:28:47 PDT 2026
================
@@ -363,7 +363,9 @@ struct FusionCandidate {
bool reportInvalidCandidate(Statistic &Stat) const {
using namespace ore;
- assert(L && Preheader && "Fusion candidate not initialized properly!");
+ assert(L && "Fusion candidate has null loop!");
+ if (!Preheader)
+ return false;
----------------
madhur13490 wrote:
addressed here https://github.com/llvm/llvm-project/pull/192280#issuecomment-4258503045
https://github.com/llvm/llvm-project/pull/192280
More information about the llvm-commits
mailing list