llvm-project
38ad6b19 - [mlir][Affine] Fix crash in affine-loop-fusion pass by guarding against an empty op list (#144841)

Commit
162 days ago
[mlir][Affine] Fix crash in affine-loop-fusion pass by guarding against an empty op list (#144841) Related: #139231 This patch fixes a crash in the affine-loop-fusion pass when `getInnermostCommonLoop` is called with an empty list of operations. The function expects at least one op to analyze, and passing an empty array of ops causes an assertion failure. This change ensures the pass checks for an empty op array before calling `getInnermostCommonLoop`. @bondhugula @matthias-springer
Author
Parents
Loading