[llvm-bugs] [Bug 37616] New: Regression in ShuffleVectorInst / Interleaved Access Pass
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 29 02:46:32 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37616
Bug ID: 37616
Summary: Regression in ShuffleVectorInst / Interleaved Access
Pass
Product: libraries
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: rakka at runbox.com
CC: llvm-bugs at lists.llvm.org
Created attachment 20350
--> https://bugs.llvm.org/attachment.cgi?id=20350&action=edit
testcase for LLVM 6.0
While running "relationals" test from OpenCL conformance suite, i have run into
this crash with LLVM 6:
llc_60 -O3 -mcpu=znver1 -o test.o par_60.bc
llc: /home/0/LLVM_git/60/lib/IR/Instructions.cpp:1803:
llvm::ShuffleVectorInst::ShuffleVectorInst(llvm::Value*, llvm::Value*,
llvm::Value*, const llvm::Twine&, llvm::Instruction*): Assertion
`isValidOperands(V1, V2, Mask) && "Invalid shuffle vector instruction
operands!"' failed.
#0 0x00007fbe45cfedba llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/0/LLVM_git/60/lib/Support/Unix/Signals.inc:402:0
#1 0x00007fbe45cfca26 llvm::sys::RunSignalHandlers()
/home/0/LLVM_git/60/lib/Support/Signals.cpp:50:0
#2 0x00007fbe45cfcda5 SignalHandler(int)
/home/0/LLVM_git/60/lib/Support/Unix/Signals.inc:242:0
#3 0x00007fbe45068a80 __restore_rt (/usr/lib/libpthread.so.0+0x11a80)
#4 0x00007fbe4439b86b __GI_raise (/usr/lib/libc.so.6+0x3686b)
#5 0x00007fbe4438640e __GI_abort (/usr/lib/libc.so.6+0x2140e)
#6 0x00007fbe443862e0 _nl_load_domain.cold.0 (/usr/lib/libc.so.6+0x212e0)
#7 0x00007fbe44394112 (/usr/lib/libc.so.6+0x2f112)
#8 0x00007fbe4738d360 llvm::ShuffleVectorInst::ShuffleVectorInst(llvm::Value*,
llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*)
/home/0/LLVM_git/60/lib/IR/Instructions.cpp:1802:0
#9 0x00007fbe4bccab30 llvm::ShuffleVectorInst*
llvm::IRBuilder<llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter>::Insert<llvm::ShuffleVectorInst>(llvm::ShuffleVectorInst*,
llvm::Twine const&) const /home/0/LLVM_git/60/include/llvm/IR/IRBuilder.h:720:0
#10 0x00007fbe4bccab30 llvm::IRBuilder<llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter>::CreateShuffleVector(llvm::Value*,
llvm::Value*, llvm::Value*, llvm::Twine const&)
/home/0/LLVM_git/60/include/llvm/IR/IRBuilder.h:1746:0
#11 0x00007fbe4bccab30 llvm::IRBuilder<llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter>::CreateShuffleVector(llvm::Value*,
llvm::Value*, llvm::ArrayRef<unsigned int>, llvm::Twine const&)
/home/0/LLVM_git/60/include/llvm/IR/IRBuilder.h:1752:0
#12 0x00007fbe4bccab30 (anonymous
namespace)::X86InterleavedAccessGroup::transpose_4x4(llvm::ArrayRef<llvm::Instruction*>,
llvm::SmallVectorImpl<llvm::Value*>&) [clone .isra.71]
/home/0/LLVM_git/60/lib/Target/X86/X86InterleavedAccess.cpp:694:0
#13 0x00007fbe4bcd0c96 (anonymous
namespace)::X86InterleavedAccessGroup::lowerIntoOptimizedSequence()
/home/0/LLVM_git/60/lib/Target/X86/X86InterleavedAccess.cpp:750:0
#14 0x00007fbe4bcd1478
llvm::X86TargetLowering::lowerInterleavedLoad(llvm::LoadInst*,
llvm::ArrayRef<llvm::ShuffleVectorInst*>, llvm::ArrayRef<unsigned int>,
unsigned int) const
/home/0/LLVM_git/60/lib/Target/X86/X86InterleavedAccess.cpp:817:0
#15 0x00007fbe4792dd4e (anonymous
namespace)::InterleavedAccess::runOnFunction(llvm::Function&)
/home/0/LLVM_git/60/lib/CodeGen/InterleavedAccessPass.cpp:338:0
#16 0x00007fbe473af838 llvm::FPPassManager::runOnFunction(llvm::Function&)
/home/0/LLVM_git/60/lib/IR/LegacyPassManager.cpp:1520:0
#17 0x00007fbe473af8d9 llvm::FPPassManager::runOnModule(llvm::Module&)
/home/0/LLVM_git/60/lib/IR/LegacyPassManager.cpp:1541:0
#18 0x00007fbe473aef46 llvm::TimeRegion::~TimeRegion()
/home/0/LLVM_git/60/include/llvm/Support/Timer.h:152:0
#19 0x00007fbe473aef46 runOnModule
/home/0/LLVM_git/60/lib/IR/LegacyPassManager.cpp:1595:0
#20 0x00007fbe473aef46 llvm::legacy::PassManagerImpl::run(llvm::Module&)
/home/0/LLVM_git/60/lib/IR/LegacyPassManager.cpp:1700:0
#21 0x000055d8134b7fa0 compileModule(char**, llvm::LLVMContext&)
/home/0/LLVM_git/60/tools/llc/llc.cpp:572:0
#22 0x000055d8134aaab1 main /home/0/LLVM_git/60/tools/llc/llc.cpp:346:0
#23 0x00007fbe4438806b __libc_start_main (/usr/lib/libc.so.6+0x2306b)
#24 0x000055d8134aadaa _start (/home/LLVM_600_rwdi_A_rtti/bin/llc+0x13daa)
Stack dump:
0. Program arguments: /home/LLVM_600_rwdi_A_rtti/bin/llc -O3 -mcpu=znver1
-o test.o par_60.bc
1. Running pass 'Function Pass Manager' on module 'par_60.bc'.
2. Running pass 'Interleaved Access Pass' on function
'@_pocl_launcher_sample_test'
Aborted (core dumped)
This compiles with LLVM 5.0 but crashes with 6.0 and 7.0 trunk.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180529/ddcf3662/attachment-0001.html>
More information about the llvm-bugs
mailing list