mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix PR4034. Bug in LiveInterval::join when it's compacting new valno's.
llvm-svn: 70291
This commit is contained in:
parent
a900530bf2
commit
754a0d2f9e
@ -458,7 +458,7 @@ void LiveInterval::join(LiveInterval &Other, const int *LHSValNoAssignments,
|
||||
for (unsigned i = 0; i < NumNewVals; ++i) {
|
||||
VNInfo *VNI = NewVNInfo[i];
|
||||
if (VNI) {
|
||||
if (i >= NumVals)
|
||||
if (NumValNos >= NumVals)
|
||||
valnos.push_back(VNI);
|
||||
else
|
||||
valnos[NumValNos] = VNI;
|
||||
|
1457
test/CodeGen/X86/2009-04-27-CoalescerAssert.ll
Normal file
1457
test/CodeGen/X86/2009-04-27-CoalescerAssert.ll
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user