]> granicus.if.org Git - llvm/commit
Merging r250324:
authorTom Stellard <thomas.stellard@amd.com>
Mon, 9 Nov 2015 16:25:14 +0000 (16:25 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 9 Nov 2015 16:25:14 +0000 (16:25 +0000)
commit63abb571f86c4dedf177f97840c49b2fc2f60e68
treeb8f79f188989733b95d3b18b3f8630ead575d3a1
parent5166aae0da760237b47f794709b4d4d67ba22ce3
Merging r250324:

------------------------------------------------------------------------
r250324 | wschmidt | 2015-10-14 16:45:00 -0400 (Wed, 14 Oct 2015) | 10 lines

[PowerPC] Fix invalid lxvdsx optimization (PR25157)

PR25157 identifies a bug where a load plus a vector shuffle is
incorrectly converted into an LXVDSX instruction.  That optimization
is only valid if the load is of a doubleword, and in the noted case,
it was not.  This corrects that problem.

Joint patch with Eric Schweitz, who provided the bugpoint-reduced test
case.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@252483 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
test/CodeGen/PowerPC/pr25157.ll [new file with mode: 0644]