[regcoalescing] bug fix for RegistersDefinedFromSameValue.
authorAndrew Trick <atrick@apple.com>
Thu, 15 Sep 2011 01:09:33 +0000 (01:09 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 15 Sep 2011 01:09:33 +0000 (01:09 +0000)
commitb1afbac64b7c4c06959350acc175fb3552012f57
tree20d54cdd0eba1c8071a9625fb4236f1eccdfa834
parent322ea080ada5608de41f82127f053f754e459910
[regcoalescing] bug fix for RegistersDefinedFromSameValue.

An improper SlotIndex->VNInfo lookup was leading to unsafe copy removal.
Fixes PR10920 401.bzip2 miscompile with no IV rewrite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139765 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveInterval.h
lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/X86/2011-09-14-valcoalesce.ll [new file with mode: 0644]