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)
commit546e9e85f1f813fcd523671f947d9415dcb20988
tree368f1c60efbf7e9c219e566430e44d5ee0606fdf
parente8121098681d9fb9ebf28fd92bd4a60f89dca20c
Avoid rewriting instructions twice.

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

<rdar://problem/12758887>

llvm-svn: 168837
llvm/lib/CodeGen/RegisterCoalescer.cpp
llvm/test/CodeGen/ARM/coalesce-subregs.ll