[Mlir-commits] [mlir] [mlir][ValueBounds] Skip analysis for identical slice components (PR #226894)
Ziliang Zhang
llvmlistbot at llvm.org
Mon Sep 28 23:07:32 PDT 2026
================
@@ -0,0 +1,61 @@
+//===- ValueBoundsOpInterfaceTest.cpp - ValueBounds unit tests -----------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "mlir/Interfaces/ValueBoundsOpInterface.h"
+#include "mlir/Dialect/Func/IR/FuncOps.h"
+
+#include <gtest/gtest.h>
+
+using namespace mlir;
+
+namespace {
+
+TEST(ValueBoundsOpInterfaceTest, EquivalentSlices) {
----------------
ziliangzl wrote:
Done in fd7fd5cce. I removed the C++ unit test and its CMake wiring, and added a dynamic matching extract_slice/insert_slice case to one-shot-module-bufferize-analysis.mlir.
https://github.com/llvm/llvm-project/pull/226894
More information about the Mlir-commits
mailing list