[llvm] [X86] fix inefficient `llvm.masked.gather` mask generation (PR #175385)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 10 12:26:07 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 129317 tests passed
* 2857 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/X86/masked_gather_scatter.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\masked_gather_scatter.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\masked_gather_scatter.ll --check-prefixes=ALL,X64,X64-KNL
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f
# .---command stderr------------
# | Assertion failed: InVT.getVectorElementType() == NVT.getVectorElementType() && "input and widen element type must match", file C:\_work\llvm-project\llvm-project\llvm\lib\Target\X86\X86ISelLowering.cpp, line 33375
# | 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\\llc.exe -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f
# | 1. Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@test7'
# | Exception Code: 0xC000001D
# | #0 0x00007ff76ef733c6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2c833c6)
# | #1 0x00007ffb5a2ebb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffb5a2ecad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffb5a2ee4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffb5a2ee6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff770035a85 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3d45a85)
# | #6 0x00007ff76ff1ee86 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3c2ee86)
# | #7 0x00007ff76fee633c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3bf633c)
# | #8 0x00007ff76f0d2cdf (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2de2cdf)
# | #9 0x00007ff76f0cce6f (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2ddce6f)
# | #10 0x00007ff76c99b374 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6ab374)
# | #11 0x00007ff76c99a1de (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6aa1de)
# | #12 0x00007ff76c9997a5 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6a97a5)
# | #13 0x00007ff76c99574c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6a574c)
# | #14 0x00007ff76e087e8c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1d97e8c)
# | #15 0x00007ff76c992a84 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6a2a84)
# | #16 0x00007ff76cd2d6a3 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xa3d6a3)
# | #17 0x00007ff76c7a9542 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b9542)
# | #18 0x00007ff76c7b261d (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4c261d)
# | #19 0x00007ff76c7aa221 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4ba221)
# | #20 0x00007ff76c2f7c0c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7c0c)
# | #21 0x00007ff76c2f4e86 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4e86)
# | #22 0x00007ff7709288e4 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x46388e4)
# | #23 0x00007ffb5fa44cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #24 0x00007ffb6997edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\masked_gather_scatter.ll' --check-prefixes=ALL,X64,X64-KNL
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\masked_gather_scatter.ll --check-prefixes=ALL,X64,X64-KNL
# `-----------------------------
# error: command failed with exit status: 2
--
```
</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/175385
More information about the llvm-commits
mailing list