OSDN Git Service

[PowerPC] PPCVSXFMAMutate should ignore trivial-copy addends
authorHal Finkel <hfinkel@anl.gov>
Mon, 24 Aug 2015 23:48:28 +0000 (23:48 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 24 Aug 2015 23:48:28 +0000 (23:48 +0000)
commit0297590fc25df30fb0d55fdbe9b425234a66ccab
tree672facac071a176dc1cf7318d173fadaf83a95c6
parentd4825d27e8630935afdc5b3cc3752dc1c5adaaa3
[PowerPC] PPCVSXFMAMutate should ignore trivial-copy addends

We might end up with a trivial copy as the addend, and if so, we should ignore
the corresponding FMA instruction. The trivial copy can be coalesced away later,
so there's nothing to do here. We should not, however, assert. Fixes PR24544.

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