]> granicus.if.org Git - llvm/commit
Merging r245741:
authorTom Stellard <thomas.stellard@amd.com>
Thu, 5 Nov 2015 02:05:38 +0000 (02:05 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 5 Nov 2015 02:05:38 +0000 (02:05 +0000)
commit9364ca17271e4f56ae8db7f3915abce5dcece149
tree89f629c9b37603e0417e52da1a8d89711a181f75
parent0776facd2ee120ca6286cb2109356e05e4085bfc
Merging r245741:

------------------------------------------------------------------------
r245741 | hfinkel | 2015-08-21 17:34:24 -0400 (Fri, 21 Aug 2015) | 8 lines

[PowerPC] PPCVSXFMAMutate should not segfault on undef input registers

When PPCVSXFMAMutate would look at the input addend register, it would get its
input value number. This would fail, however, if the register was undef,
causing a segfault. Don't segfault (just skip such FMA instructions).

Fixes the test case from PR24542 (although that may have been over-reduced).

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@252132 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCVSXFMAMutate.cpp
test/CodeGen/PowerPC/vsx-fma-mutate-undef.ll [new file with mode: 0644]