[llvm] [DAG] Optimize masked store of constant lane mask to standard store (PR #223665)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 01:54:42 PDT 2026


Andarwinux wrote:

```llvm
define fastcc void @ass_render_event(<12 x double> %0) {
  call void @llvm.masked.store.v12f64.p0(<12 x double> %0, ptr null, <12 x i1> <i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 false, i1 false, i1 false>)
  ret void
}
```
```
fatal error: error in backend: Cannot select: 0x24f323099a0: ch = store<(store (s64) into `ptr null` + 64, align 64, basealign 4294967296)> 0x24f320c6cd8, 0x24f32307850,
      Constant:i64<64>, poison:i64
  0x24f32307850: v1f64,ch = load<(load (s64) from %fixed-stack.3, align 16)> 0x24f320c6cd8, FrameIndex:i64<-1>, poison:i64
In function: ass_render_event
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and dumped files.
Stack dump:
0.      Program arguments: clang -O3 -c reduced.ll -march=tigerlake
1.      Code generation
2.      Running pass 'Function Pass Manager' on module 'reduced.ll'.
3.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@ass_render_event'
#0 0x00006229694b54b3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) Signals.cpp:0:0
```

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


More information about the llvm-commits mailing list