[Mlir-commits] [mlir] [mlir][llvm] Use the roundtrip flag in test (PR #173782)
Tobias Gysi
llvmlistbot at llvm.org
Sun Dec 28 07:29:41 PST 2025
https://github.com/gysit created https://github.com/llvm/llvm-project/pull/173782
This commit changes the debug info test to use the `--verify-roundtrip` flag. The byte code rountrip has been problematic before. Recent changes to the attribute parsing make it possible to use the flag.
This closes https://github.com/llvm/llvm-project/issues/163004
>From 1ed05b1b16b2fcab2164cb3fdd7d2d591d715716 Mon Sep 17 00:00:00 2001
From: Tobias Gysi <tobias.gysi at nextsilicon.com>
Date: Sun, 28 Dec 2025 16:16:41 +0100
Subject: [PATCH] [mlir][llvm] Use the roundtrip flag in test
This commit changes the debug info test to use the `--verify-roundtrip`
flag. The byte code rountrip has been problematic before. Recent changes
to the attribute parsing make it possible to use the flag.
This closes https://github.com/llvm/llvm-project/issues/163004
---
mlir/test/Dialect/LLVMIR/debuginfo.mlir | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mlir/test/Dialect/LLVMIR/debuginfo.mlir b/mlir/test/Dialect/LLVMIR/debuginfo.mlir
index d7bf99bfaed7f..545715f73f449 100644
--- a/mlir/test/Dialect/LLVMIR/debuginfo.mlir
+++ b/mlir/test/Dialect/LLVMIR/debuginfo.mlir
@@ -1,5 +1,4 @@
-// RUN: mlir-opt %s | mlir-opt | FileCheck %s
-// RUN: mlir-opt -emit-bytecode %s | mlir-opt | FileCheck %s
+// RUN: mlir-opt %s --verify-roundtrip | mlir-opt | FileCheck %s
// CHECK-DAG: #[[FILE:.*]] = #llvm.di_file<"debuginfo.mlir" in "/test/">
#file = #llvm.di_file<"debuginfo.mlir" in "/test/">
More information about the Mlir-commits
mailing list