RegisterCoalescer: Fix stripCopies() picking up main range instead of subregister...
authorMatthias Braun <matze@braunis.de>
Wed, 17 Dec 2014 21:25:20 +0000 (21:25 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 17 Dec 2014 21:25:20 +0000 (21:25 +0000)
commit0a410f62439cb0c5fab15da90ce0161ecae6a315
tree10c7312f864da4ae31cfbdad7700563dc15f7c63
parent972be53f029f9181f13756685b6614a9687ed721
RegisterCoalescer: Fix stripCopies() picking up main range instead of subregister range

This fixes a problem where stripCopies() would switch to values in the
main liverange when it crossed a copy instruction. However when joining
subranges we need to stay in the respective subregister ranges.

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