RegisterCoalescer: Don't rematerialize subregister definitions.
authorMatthias Braun <matze@braunis.de>
Mon, 16 Feb 2015 22:05:17 +0000 (22:05 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 16 Feb 2015 22:05:17 +0000 (22:05 +0000)
commit2a43652f3b8a97e67251d80a749d5227667ff5b1
tree4c01d998bdf489bf9a35ec637ee4d8099f82c2dc
parent1f67650f7755a22342265e025d8f3bc16c4cc3f9
RegisterCoalescer: Don't rematerialize subregister definitions.

We cannot simply rematerialize instructions which only defining a
subregister, as the final value also depends on the previous
instructions.

This fixes test/CodeGen/R600/subreg-coalescer-bug.ll with subreg
liveness enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229444 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp