It's not safe to coalesce a move where src and dst registers have different subregist...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 10 Dec 2009 20:59:45 +0000 (20:59 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 10 Dec 2009 20:59:45 +0000 (20:59 +0000)
commit6fd78ec8a216f659ce7c0c9912bb81e29595fed9
tree29ed77c01d9572f6695922cc6d5251d03b2dc0b3
parente4a70cd19c41ac098d81bf2f8d8f9fee3efb3c49
It's not safe to coalesce a move where src and dst registers have different subregister indices. e.g.:
%reg16404:1<def> = MOV8rr %reg16412:2<kill>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91061 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp
test/CodeGen/X86/2009-12-12-CoalescerBug.ll [new file with mode: 0644]