[PowerPC] Extend physical register live range in PPCVSXFMAMutate
authorHal Finkel <hfinkel@anl.gov>
Wed, 15 Jul 2015 08:23:03 +0000 (08:23 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 15 Jul 2015 08:23:03 +0000 (08:23 +0000)
commite4edd6cd8e21e3cc196a7310c3c6bf2826351c3f
tree333e16dce6da5dcafe75abf02ebae3261713dca3
parentb2a353c753f9e9f527e172aa31d196d133ea8c70
[PowerPC] Extend physical register live range in PPCVSXFMAMutate

If the source of the copy that defines the addend is a physical register, then
its existing live range may not extend to the FMA being mutated. Make sure we
extend the live range of the register to meet the FMA because it will become
its operand in this case.

I don't have an independent test case, but it will be exposed by change to be
committed shortly enabling the use of the machine combiner to do fadd/fmul
reassociation, and will be covered by one of the associated regression tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242278 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCVSXFMAMutate.cpp