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)
commit15635c5f851211eaa1c33ec0aeaf136da0878e95
tree5e696bac9dac3dd3227c026ae2dab8a2ebba571b
parent1b901a4435190c9a7d8c46841c01d60d725d5b92
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.

llvm-svn: 229444
llvm/lib/CodeGen/RegisterCoalescer.cpp