[PATCH] [X86][SSE] Bitcast assertion in XFormVExtractWithShuffleIntoLoad

Simon Pilgrim llvm-dev at redking.me.uk
Wed Oct 22 11:45:46 PDT 2014


Hi chandlerc, spatel,

Minor patch to fix an issue in XFormVExtractWithShuffleIntoLoad where a load is unary shuffled, then bitcast (to a type with the same number of elements) before extracting an element.

An undef was created for the second shuffle operand using the original (post-bitcasted) vector type instead of the pre-bitcasted type like the rest of the shuffle node - this was then causing an assertion on the different types later on inside SelectionDAG::getVectorShuffle.

http://reviews.llvm.org/D5917

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/extractelement-load.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5917.15265.patch
Type: text/x-patch
Size: 3983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141022/01464058/attachment.bin>


More information about the llvm-commits mailing list