[PowerPC] Don't combine SCALAR_TO_VECTOR without VSX
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 29 Jun 2020 10:14:30 +0000 (05:14 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 29 Jun 2020 14:48:57 +0000 (09:48 -0500)
commit57ad8f4730c982813c6f4672c45f4b73f0f0d79f
tree9c2b39cd9e596c4b660dc8c55c77748c0fc2a0de
parent6292702d1231378f86a0560a68603fd006911f2f
[PowerPC] Don't combine SCALAR_TO_VECTOR without VSX

Most of the patterns for PPCISD::SCALAR_TO_VECTOR_PERMUTED require
VSX. So don't emit them if the subtarget doesn't have VSX.
This resolves the issue reported on
https://reviews.llvm.org/rG1fed131660b2c5d3ea7007e273a7a5da80699445
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/canonical-merge-shuffles.ll