[libc-commits] [compiler-rt] [llvm] [clang] [flang] [libcxx] [clang-tools-extra] [libc] [IR] Disallow ZeroInit for spirv.Image (PR #73887)

Wenju He via libc-commits libc-commits at lists.llvm.org
Tue Dec 19 16:45:23 PST 2023


wenju-he wrote:

> image-unoptimized.ll

backtrace:
```
 #0 0x0000000001d2f0e1 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/export/users/wenjuhe/llvm/llvm-project/build/bin/llc+0x1d2f0e1)
 #1 0x0000000001d2c644 SignalHandler(int) Signals.cpp:0:0
 #2 0x00007fd516a7ddb0 __restore_rt (/lib64/libc.so.6+0x59db0)
 #3 0x00007fd516aca42c __pthread_kill_implementation (/lib64/libc.so.6+0xa642c)
 #4 0x00007fd516a7dd06 gsignal (/lib64/libc.so.6+0x59d06)
 #5 0x00007fd516a507d3 abort (/lib64/libc.so.6+0x2c7d3)
 #6 0x00007fd516a506fb _nl_load_domain.cold (/lib64/libc.so.6+0x2c6fb)
 #7 0x00007fd516a76c86 (/lib64/libc.so.6+0x52c86)
 #8 0x00000000014b3bf1 llvm::ConstantTargetNone::get(llvm::TargetExtType*) (/export/users/wenjuhe/llvm/llvm-project/build/bin/llc+0x14b3bf1)
 #9 0x0000000000abac68 (anonymous namespace)::SPIRVEmitIntrinsics::runOnFunction(llvm::Function&) (.part.0) SPIRVEmitIntrinsics.cpp:0:0
```
SPIRVEmitIntrinsics pass probably needs fix to not generate ConstantTargetNone for spirv.Image. @bogner WDYT?

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


More information about the libc-commits mailing list