[Mlir-commits] [mlir] [MLIR] Fix duplicated attribute nodes in MLIR bytecode deserialization (PR #151267)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Aug 14 00:36:22 PDT 2025
================
@@ -0,0 +1,9 @@
+// RUN: mlir-opt -emit-bytecode %s | mlir-opt --mlir-print-debuginfo | FileCheck %s
+
+// CHECK: distinct[0]
+// CHECK-NOT: distinct[1]
+#attr_ugly = #test<attr_ugly begin distinct[0]<> end>
+#attr_ugly1 = #test<attr_ugly begin #attr_ugly end>
+
+module attributes {test.alias = #attr_ugly} {
+} loc(fused<#attr_ugly1>[])
----------------
hankluo6 wrote:
Sorry for the confusion. The bug isn’t only triggered when the alias is used in a loc. I’ll update the test to remove the alias from the location
https://github.com/llvm/llvm-project/pull/151267
More information about the Mlir-commits
mailing list