[Mlir-commits] [mlir] [mlir][tensor] Preserve encoding in `CollapseShapeOp::inferCollapsedType` (PR #173720)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Dec 27 05:05:05 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 3380 tests passed
* 411 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### MLIR
<details>
<summary>MLIR.Dialect/SparseTensor/sparse_reshape.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe C:\_work\llvm-project\llvm-project\mlir\test\Dialect\SparseTensor\sparse_reshape.mlir | c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\Dialect\SparseTensor\sparse_reshape.mlir --check-prefix=CHECK-ROUND
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe' 'C:\_work\llvm-project\llvm-project\mlir\test\Dialect\SparseTensor\sparse_reshape.mlir'
# .---command stderr------------
# | <unknown>:0: error: dimension-rank mismatch between encoding and tensor shape: 2 != 1
# | Assertion failed: succeeded( ConcreteT::verifyInvariants(getDefaultDiagnosticEmitFn(ctx), args...)), file C:\_work\llvm-project\llvm-project\mlir\include\mlir/IR/StorageUniquerSupport.h, line 180
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\mlir-opt.exe C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\Dialect\\SparseTensor\\sparse_reshape.mlir
# | Exception Code: 0xC000001D
# |  #0 0x00007ff70ca1ccb6 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x2feccb6)
# |  #1 0x00007ff9e783bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ff9e783cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ff9e783e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ff9e783e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff70be23f94 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x23f3f94)
# |  #6 0x00007ff70be23ebe mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x23f3ebe)
# |  #7 0x00007ff70c0efb2e mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x26bfb2e)
# |  #8 0x00007ff70c0f0f60 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x26c0f60)
# |  #9 0x00007ff70b1bc756 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x178c756)
# | #10 0x00007ff709b53360 (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x123360)
# | #11 0x00007ff70b1bb3b2 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x178b3b2)
# | #12 0x00007ff70ca32b27 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x3002b27)
# | #13 0x00007ff70ca32cf3 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x3002cf3)
# | #14 0x00007ff70ca31e2f mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x3001e2f)
# | #15 0x00007ff70ca4a932 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x301a932)
# | #16 0x00007ff709d5c01f (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x32c01f)
# | #17 0x00007ff709a4047e (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x1047e)
# | #18 0x00007ff709a3f136 (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0xf136)
# | #19 0x00007ff709a3ee4a (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0xee4a)
# | #20 0x00007ff709d99dd6 (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x369dd6)
# | #21 0x00007ff709a335ae (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x35ae)
# | #22 0x00007ff709a3395c (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x395c)
# | #23 0x00007ff709a33cbb (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x3cbb)
# | #24 0x00007ff709a3145a (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x145a)
# | #25 0x00007ff7110450e0 mlir::detail::FallbackTypeIDResolver::registerImplicitTypeID(class llvm::StringRef) (c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe+0x76150e0)
# | #26 0x00007ff9ec6c4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #27 0x00007ff9fae1edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\mlir-opt.exe'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\mlir\test\Dialect\SparseTensor\sparse_reshape.mlir' --check-prefix=CHECK-ROUND
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\mlir\test\Dialect\SparseTensor\sparse_reshape.mlir:13:23: error: CHECK-ROUND-LABEL: expected string not found in input
# | // CHECK-ROUND-LABEL: func.func @sparse_expand(
# |                       ^
# | <stdin>:1:1: note: scanning from here
# | module {
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\mlir\test\Dialect\SparseTensor\sparse_reshape.mlir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: module { 
# | label:13     X~~~~~~~~ error: no match found
# |           2: } 
# | label:13     ~~
# |           3:  
# | label:13     ~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/173720


More information about the Mlir-commits mailing list