[Mlir-commits] [mlir] [MLIR][SideEffects][MemoryEffects] Modified LICM to be more aggressive when checking movability of ops with MemWrite effects (PR #155344)

Mehdi Amini llvmlistbot at llvm.org
Wed Aug 27 02:17:29 PDT 2025


================
@@ -317,14 +319,53 @@ bool mlir::wouldOpBeTriviallyDead(Operation *op) {
   return wouldOpBeTriviallyDeadImpl(op);
 }
 
+std::optional<bool> mlir::isZeroTrip(mlir::LoopLikeOpInterface &loop) {
----------------
joker-eph wrote:

This may better be a method on the LoopLikeOpInterface, as operation could overload it with a more specialized / faster implementation.


https://github.com/llvm/llvm-project/pull/155344


More information about the Mlir-commits mailing list