llvm 18 regression: GetElementPtrTypeIterator.h:158: llvm::TypeSize llvm::generic_gep_type_iterator<ItTy>::getSequentialElementStride(const llvm::DataLayout&) const [with ItTy = llvm::Value* const*]: Assertion `DL.typeSizeEqualsStoreSize(ElemTy) && "Not byte-addressable"' failed #90695
Closed
Description
version: release/18.x, commit 78b99c7
reduced.ll:
target datalayout = "e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-windows-gnu"
define fastcc i16 @"behavior.shuffle.test.@shuffle bool 1.S.doTheTest"() {
Entry:
%0 = load <2 x i1>, ptr null, align 1
%1 = shufflevector <2 x i1> %0, <2 x i1> zeroinitializer, <4 x i32> <i32 0, i32 1, i32 2, i32 2>
ret i16 0
}
[nix-shell:~/src/zig/build-llvm18]$ ~/local/llvm18-assert/bin/llc reduced.ll
llc: /home/andy/dev/llvm-project-18/llvm/include/llvm/IR/GetElementPtrTypeIterator.h:158: llvm::TypeSize llvm::generic_gep_type_iterator<ItTy>::getSequentialElementStride(const llvm::DataLayout&) const [with ItTy = llvm::Value* const*]: Assertion `DL.typeSizeEqualsStoreSize(ElemTy) && "Not byte-addressable"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /home/andy/local/llvm18-assert/bin/llc reduced.ll
1. Running pass 'Function Pass Manager' on module 'reduced.ll'.
2. Running pass 'Interleaved Load Combine Pass' on function '@"behavior.shuffle.test.@shuffle bool 1.S.doTheTest"'
#0 0x000000000393ec9b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/andy/local/llvm18-assert/bin/llc+0x393ec9b)
#1 0x000000000393bffb llvm::sys::RunSignalHandlers() (/home/andy/local/llvm18-assert/bin/llc+0x393bffb)
#2 0x000000000393c125 SignalHandler(int) Signals.cpp:0:0
#3 0x00007fb01fd53a70 __restore_rt (/nix/store/anlf335xlh41yjhm114swi87406mq5pw-glibc-2.38-44/lib/libc.so.6+0x3da70)
#4 0x00007fb01fda2ddc __pthread_kill_implementation (/nix/store/anlf335xlh41yjhm114swi87406mq5pw-glibc-2.38-44/lib/libc.so.6+0x8cddc)
#5 0x00007fb01fd539c6 gsignal (/nix/store/anlf335xlh41yjhm114swi87406mq5pw-glibc-2.38-44/lib/libc.so.6+0x3d9c6)
#6 0x00007fb01fd3c8fa abort (/nix/store/anlf335xlh41yjhm114swi87406mq5pw-glibc-2.38-44/lib/libc.so.6+0x268fa)
#7 0x00007fb01fd3c819 _nl_load_domain.cold (/nix/store/anlf335xlh41yjhm114swi87406mq5pw-glibc-2.38-44/lib/libc.so.6+0x26819)
#8 0x00007fb01fd4c3c6 (/nix/store/anlf335xlh41yjhm114swi87406mq5pw-glibc-2.38-44/lib/libc.so.6+0x363c6)
#9 0x0000000002e05001 llvm::DataLayout::getIndexedOffsetInType(llvm::Type*, llvm::ArrayRef<llvm::Value*>) const (/home/andy/local/llvm18-assert/bin/llc+0x2e05001)
#10 0x000000000282054d (anonymous namespace)::VectorInfo::computeFromLI(llvm::LoadInst*, (anonymous namespace)::VectorInfo&, llvm::DataLayout const&) InterleavedLoadCombinePass.cpp:0:0
#11 0x0000000002823ae5 (anonymous namespace)::VectorInfo::computeFromSVI(llvm::ShuffleVectorInst*, (anonymous namespace)::VectorInfo&, llvm::DataLayout const&) InterleavedLoadCombinePass.cpp:0:0
#12 0x000000000282722b (anonymous namespace)::InterleavedLoadCombineImpl::run() InterleavedLoadCombinePass.cpp:0:0
#13 0x0000000002828cfb (anonymous namespace)::InterleavedLoadCombine::runOnFunction(llvm::Function&) InterleavedLoadCombinePass.cpp:0:0
#14 0x0000000002ef1789 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/andy/local/llvm18-assert/bin/llc+0x2ef1789)
#15 0x0000000002ef18c1 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/andy/local/llvm18-assert/bin/llc+0x2ef18c1)
#16 0x0000000002ef21c7 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/andy/local/llvm18-assert/bin/llc+0x2ef21c7)
#17 0x00000000007fe10b compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#18 0x00000000007049a7 main (/home/andy/local/llvm18-assert/bin/llc+0x7049a7)
#19 0x00007fb01fd3dfce __libc_start_call_main (/nix/store/anlf335xlh41yjhm114swi87406mq5pw-glibc-2.38-44/lib/libc.so.6+0x27fce)
#20 0x00007fb01fd3e089 __libc_start_main@GLIBC_2.2.5 (/nix/store/anlf335xlh41yjhm114swi87406mq5pw-glibc-2.38-44/lib/libc.so.6+0x28089)
#21 0x00000000007f3c25 _start (/home/andy/local/llvm18-assert/bin/llc+0x7f3c25)
Aborted (core dumped)
Metadata
Metadata
Assignees
Type
Projects
Status
Done