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)
commita1a68905b51e292008309cdacb765642b1a33a25
tree931297c54ea3a44c912ace852cc03f748a60d729
parentaa14ffddcfae4502978d22bbb9fe21c551d254b9
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.

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