mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-29 07:53:31 +00:00
Fix a problem discovered on self host.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90b9247377
commit
82114b98c9
@ -267,7 +267,7 @@ ComputeValueKnownInPredecessors(Value *V, BasicBlock *BB,PredValueInfo &Result){
|
||||
ConstantInt *CI = dyn_cast<ConstantInt>(V);
|
||||
Result.resize(TheFirstPHI->getNumIncomingValues());
|
||||
for (unsigned i = 0, e = Result.size(); i != e; ++i)
|
||||
Result.push_back(std::make_pair(CI, TheFirstPHI->getIncomingBlock(i)));
|
||||
Result[i] = std::make_pair(CI, TheFirstPHI->getIncomingBlock(i));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -170,3 +170,25 @@ bb32.i:
|
||||
ret i32 1
|
||||
}
|
||||
|
||||
|
||||
define fastcc void @test5(i1 %tmp, i32 %tmp1) nounwind ssp {
|
||||
entry:
|
||||
br i1 %tmp, label %bb12, label %bb13
|
||||
|
||||
|
||||
bb12:
|
||||
br label %bb13
|
||||
|
||||
bb13:
|
||||
%.lcssa31 = phi i32 [ undef, %bb12 ], [ %tmp1, %entry ]
|
||||
%A = and i1 undef, undef
|
||||
br i1 %A, label %bb15, label %bb61
|
||||
|
||||
bb15:
|
||||
ret void
|
||||
|
||||
|
||||
bb61:
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user