[llvm-bugs] [Bug 41097] New: Regression in "[X86][SSE] Fold scalar_to_vector(i64 anyext(x)) -> ...", assert "Idx == 0 && "Unexpected SCALAR_TO_VECTOR operand index."" failed
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Mar 16 07:54:37 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41097
Bug ID: 41097
Summary: Regression in "[X86][SSE] Fold scalar_to_vector(i64
anyext(x)) -> ...", assert "Idx == 0 && "Unexpected
SCALAR_TO_VECTOR operand index."" failed
Product: libraries
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: martin at martin.st
CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
llvm-dev at redking.me.uk, spatel+llvm at rotateright.com
Compiling https://martin.st/temp/qdrawhelper-reduce.cpp for x86_64 with -O2 now
aborts:
clang-9: ../lib/CodeGen/SelectionDAG/DAGCombiner.cpp:17599: llvm::SDValue
combineShuffleOfScalars(llvm
::ShuffleVectorSDNode*, llvm::SelectionDAG&, const llvm::TargetLowering&):
Assertion `Idx == 0 && "Une
xpected SCALAR_TO_VECTOR operand index."' failed.
Stack dump:
0. Program arguments: /home/martin/clang-nightly-sat/bin/clang-9 -cc1
-triple x86_64-unknown-linu
x-gnu -emit-obj -disable-free -main-file-name qdrawhelper-preproc.cpp
-mrelocation-model static -mthre
ad-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -targ
et-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer
-coverage-notes-file /
home/martin/code/reduce-qdrawhelper/qdrawhelper-preproc.gcno -resource-dir
/home/martin/clang-nightly-
sat/lib/clang/9.0.0 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.
0 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward
-internal
-isystem /usr/local/include -internal-isystem
/home/martin/clang-nightly-sat/lib/clang/9.0.0/include -
internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-ex
ternc-isystem /usr/include -O2 -fdeprecated-macro -fdebug-compilation-dir
/home/martin/code/reduce-qdr
awhelper -ferror-limit 19 -fmessage-length 102 -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiag
nostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o
qdrawhelper-preproc.o -x c+
+ qdrawhelper-preproc.cpp -faddrsig
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'qdrawhelper-preproc.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z15fetchRGBToRGB64ILN6QImage6
FormatE0EEPK1APS2_PKciiPKiPi'
#0 0x0000000001b9c88a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/martin/clang-nightly-sat/
bin/clang-9+0x1b9c88a)
#1 0x0000000001b9a63c llvm::sys::RunSignalHandlers()
(/home/martin/clang-nightly-sat/bin/clang-9+0x1b
9a63c)
#2 0x0000000001b9a7a7 (/home/martin/clang-nightly-sat/bin/clang-9+0x1b9a7a7)
#3 0x00007f94fb497390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x00007f94fa209428 gsignal
/build/glibc-LK5gWL/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.
c:54:0
#5 0x00007f94fa20b02a abort /build/glibc-LK5gWL/glibc-2.23/stdlib/abort.c:91:0
#6 0x00007f94fa201bd7 __assert_fail_base
/build/glibc-LK5gWL/glibc-2.23/assert/assert.c:92:0
#7 0x00007f94fa201c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#8 0x00000000024e7849 (/home/martin/clang-nightly-sat/bin/clang-9+0x24e7849)
#9 0x000000000252d07b (/home/martin/clang-nightly-sat/bin/clang-9+0x252d07b)
#10 0x000000000252dfbf (/home/martin/clang-nightly-sat/bin/clang-9+0x252dfbf)
#11 0x000000000252f944 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGen
Opt::Level) (/home/martin/clang-nightly-sat/bin/clang-9+0x252f944)
#12 0x00000000026029dc llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/home/martin/clang-nightly-sat/bin
/clang-9+0x26029dc)
#13 0x000000000260c80b
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/mart
in/clang-nightly-sat/bin/clang-9+0x260c80b)
#14 0x000000000260ea44 (/home/martin/clang-nightly-sat/bin/clang-9+0x260ea44)
#15 0x0000000000e2f700 (/home/martin/clang-nightly-sat/bin/clang-9+0xe2f700)
#16 0x00000000012d65b1 (/home/martin/clang-nightly-sat/bin/clang-9+0x12d65b1)
#17 0x000000000168d2fc llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/martin/clang-nightly
-sat/bin/clang-9+0x168d2fc)
#18 0x000000000168d4dc llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/martin/clang-nightly-sat
/bin/clang-9+0x168d4dc)
#19 0x000000000168e5f9 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/martin/clang-nightly-s
at/bin/clang-9+0x168e5f9)
#20 0x0000000001d8002d (/home/martin/clang-nightly-sat/bin/clang-9+0x1d8002d)
--
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/20190316/0df2213e/attachment-0001.html>
More information about the llvm-bugs
mailing list