[Mlir-commits] [llvm] [mlir] [mlir] Add Normalize pass (PR #162266)
Jacques Pienaar
llvmlistbot at llvm.org
Fri Oct 24 04:49:39 PDT 2025
================
@@ -0,0 +1,203 @@
+// RUN: mlir-opt %s --normalize --mlir-use-nameloc-as-prefix 2>&1 | FileCheck %s
+
+// CHECK-LABEL: module {
+// CHECK: func.func @infinte_loop(%[[ARG0:.*]]: memref<?xi32>, %[[ARG1:.*]]: i32) {
+// CHECK: %vl15969$e5677$ = arith.constant 1 : i32
----------------
jpienaar wrote:
Yeah, its useful for that but indeed terrible to read :) (I almost wonder if the diff tool post would be smart enough to reduce it to something smaller ... or perhaps give both files in to diffing so that names could be chosen with more care - e.g., take all names across both, rename across both `s/%vl15390$funcArg1-vl15969$/%0/` etc)
https://github.com/llvm/llvm-project/pull/162266
More information about the Mlir-commits
mailing list