[Mlir-commits] [mlir] [mlir][ValueBounds] Skip analysis for identical slice components (PR #226894)
Matthias Springer
llvmlistbot at llvm.org
Mon Sep 28 17:14:47 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) {
----------------
matthias-springer wrote:
We try to avoid such C++ tests. Can you add a test case to an existing `.mlir` file? E.g. could be a bufferization test, since that triggers this code path.
https://github.com/llvm/llvm-project/pull/226894
More information about the Mlir-commits
mailing list