[all-commits] [llvm/llvm-project] 46f65e: [mlir]use correct iterator when eraseOp (#83444)
Congcong Cai via All-commits
all-commits at lists.llvm.org
Mon Mar 4 23:34:01 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 46f65e45e0f5ce4cc0edabceebee681231d24687
https://github.com/llvm/llvm-project/commit/46f65e45e0f5ce4cc0edabceebee681231d24687
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2024-03-05 (Tue, 05 Mar 2024)
Changed paths:
M mlir/lib/IR/PatternMatch.cpp
A mlir/test/Transforms/gh-77420.mlir
Log Message:
-----------
[mlir]use correct iterator when eraseOp (#83444)
#66771 introduce `llvm::post_order(&r.front())` which is equal to
`r.front().getSuccessor(...)`.
It will visit the succ block of current block. But actually here need to
visit all block of region in reverse order.
Fixes: #77420.
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