From e35d8dcf94ff89c69e5f7542ba4bd9bf199c675f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20M=C3=BCller?= Date: Tue, 16 Sep 2025 14:41:32 +0000 Subject: [PATCH] [BACKEND][TESTS] Add `-reconcile-unrealized-casts` in "to LLVM" test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR adds the `-reconcile-unrealized-casts` pass to the `RUN` line of the `tritongpu_to_llvm.mlir` test. This ensures that left-over `unrealized_casts` ops are cleaned up, which can occur starting from llvm/llvm-project#158298, and which would otherwise break this test. Adding the pass is the recommended solution from the description of that PR. Signed-off-by: Ingo Müller --- test/Conversion/tritongpu_to_llvm.mlir | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/Conversion/tritongpu_to_llvm.mlir b/test/Conversion/tritongpu_to_llvm.mlir index 63372ce03aed..ea584407a514 100644 --- a/test/Conversion/tritongpu_to_llvm.mlir +++ b/test/Conversion/tritongpu_to_llvm.mlir @@ -1,4 +1,7 @@ -// RUN: triton-opt %s -split-input-file --allocate-shared-memory-nv --convert-triton-gpu-to-llvm 2>/dev/null | FileCheck %s --dump-input-context 20 +// RUN: triton-opt %s -split-input-file \ +// RUN: --allocate-shared-memory-nv --convert-triton-gpu-to-llvm \ +// RUN: --reconcile-unrealized-casts 2>/dev/null \ +// RUN: | FileCheck %s --dump-input-context 20 module attributes {"ttg.num-ctas" = 1 : i32, "ttg.num-warps" = 4 : i32} { // CHECK: llvm.func @test_empty_kernel(%arg0: i32, %arg1: !llvm.ptr<1>, %arg2: !llvm.ptr<1>, %arg3: !llvm.ptr<1>)