[all-commits] [llvm/llvm-project] 38ad6b: [mlir][Affine] Fix crash in affine-loop-fusion pas...
Ayokunle Amodu via All-commits
all-commits at lists.llvm.org
Wed Jul 2 07:32:10 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 38ad6b1983e307b8c7620c8316ac95e66c04e86c
https://github.com/llvm/llvm-project/commit/38ad6b1983e307b8c7620c8316ac95e66c04e86c
Author: Ayokunle Amodu <ayokunle321 at gmail.com>
Date: 2025-07-02 (Wed, 02 Jul 2025)
Changed paths:
M mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp
M mlir/test/Dialect/Affine/loop-fusion-4.mlir
Log Message:
-----------
[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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list