Avoid rewriting instructions twice.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 29 Nov 2012 00:26:11 +0000 (00:26 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 29 Nov 2012 00:26:11 +0000 (00:26 +0000)
commit89bea17af235ea3a69485e73e54e71053c1bd936
tree7750033b9209a378c02d8b1d94a688be5893c805
parent7b09b97bdf575e7d392435f931f767dfa6ab3c9e
Avoid rewriting instructions twice.

This could cause miscompilations in targets where sub-register
composition is not always idempotent (ARM).

<rdar://problem/12758887>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168837 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/ARM/coalesce-subregs.ll