[PowerPC] Tell VSX swap removal that scalar conversions are lane-sensitive
commite0c3a9252db0df4c237d72aaccb59bcbafa7895f
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 1 Feb 2018 21:09:04 +0000 (1 21:09 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 1 Feb 2018 21:09:04 +0000 (1 21:09 +0000)
tree013d8a827235a7a272b22903dd798e5af291b4b5
parent5ac13ad1101adafb904ac86c955c2a1410ec2fa6
[PowerPC] Tell VSX swap removal that scalar conversions are lane-sensitive

This is a rather non-controversial change. We were missing these instructions
from the list of instructions that are lane-sensitive. These two put the result
into lane 0 (BE) or 3 (LE) regardless of the input. This patch fixes PR36068.

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