[Mlir-commits] [mlir] [mlir][scf] Add simple LICM pattern for `scf.while` (PR #76370)

Ivan Butygin llvmlistbot at llvm.org
Fri Jan 5 08:06:28 PST 2024


Hardcode84 wrote:

> I don't think LICM should belong to canonicalization. LICM is not always good for code quality as it may increase register pressure so applying it blindly during canonicalization seems dangerous.

This is true for general loops, but for the `before` block it should be ok IMO, as it always executed at least once.

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


More information about the Mlir-commits mailing list