[Mlir-commits] [mlir] [mlir] Add transformation to wrap scf::while in zero-trip-check (PR #81050)

Jerry Wu llvmlistbot at llvm.org
Thu Feb 8 09:57:04 PST 2024


================
@@ -0,0 +1,122 @@
+//===- WrapInZeroTripCheck.cpp - Loop transforms to add zero-trip-check ---===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
----------------
pzread wrote:

I didn't find a generic one under `mlir/lib/Dialect/SCF/Transforms`. Also we can add support for `scf.for` here loop in the future

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


More information about the Mlir-commits mailing list