]> granicus.if.org Git - llvm/commit
Do not assume that FP vector operands are never legalized by expanding
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 26 Oct 2016 19:51:35 +0000 (19:51 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 26 Oct 2016 19:51:35 +0000 (19:51 +0000)
commit73235dc8dc50dd8fe358a560667049cd8f1edae5
treecc1eebceaa1da960c3009962d622e96a88816de9
parentcf6e9a81f676b3e3885f86af704e834ef5c04264
Do not assume that FP vector operands are never legalized by expanding

This patch ensures that if a floating point vector operand is legalized by
expanding, it is legalized through the stack rather than by calling
DAGTypeLegalizer::IntegerToVector which will cause a failure since the operand
is a non-integer type.

This fixes PR 30715.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285231 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
test/CodeGen/PowerPC/pr30715.ll [new file with mode: 0644]