Fix for bootstrap bug introduced in r244921
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 2 Nov 2015 14:01:11 +0000 (14:01 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 2 Nov 2015 14:01:11 +0000 (14:01 +0000)
commitee10ab5e955e8d87778ff2d7e7ca79d82dd6c5b5
tree09b8d54fa3f9fbb00b7a1560103d552369f188fb
parenta16eb6190c956c8935aaff55eec40ad42734b1ca
Fix for bootstrap bug introduced in r244921

This revision has introduced an issue that only affects bootstrapped compiler
when it is printing the ASM. It turns out that the new code path taken due to
legalizing a scalar_to_vector of i64 -> v2i64 exposes a missing check in a
micro optimization to change a load followed by a scalar_to_vector into a
load and splat instruction on PPC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251798 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll
test/CodeGen/PowerPC/vsx.ll