[llvm] [VectorCombine] fix division by zero in foldSelectShuffle (PR #156779)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 4 05:00:38 PDT 2025


================
@@ -0,0 +1,21 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -passes=vector-combine -S < %s | FileCheck %s
+
+define ptx_kernel void @shuffle_ptx_i64() {
----------------
dtcxzyw wrote:

Please move this test into the `NVPTX` subdir. I cannot reproduce the issue with other targets (e.g., `-mtriple=x86_64`).
```
llvm/test/Transforms/VectorCombine
  NVPTX/
    fold-select-shuffle.ll
    lit.local.cfg
```
Content of `NVPTX/lit.local.cfg`:
```
if not "NVPTX" in config.root.targets:
    config.unsupported = True
```



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


More information about the llvm-commits mailing list