[Lldb-commits] [lldb] [llvm] [mlir] [mlir] Introduce replaceWithZeroTripCheck in LoopLikeOpInterface (PR #80331)
Matthias Springer via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 2 12:29:31 PST 2024
================
@@ -220,6 +220,31 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
/*defaultImplementation=*/[{
return ::mlir::failure();
}]
+ >,
+ InterfaceMethod<[{
+ Add a zero-trip-check around the loop to check if the loop body is ever
+ run and return the new loop inside the check. The loop body is moved
----------------
matthias-springer wrote:
Why does this method create a new loop op? Could the loop op be moved into the zero-trip-check?
https://github.com/llvm/llvm-project/pull/80331
More information about the lldb-commits
mailing list