Change lower atomic pass to use IntrinsicInst to simplify it a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113114 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-09-05 20:10:47 +00:00
parent 906a675db8
commit bdabacdcca
2 changed files with 30 additions and 41 deletions

View File

@ -726,10 +726,9 @@ bool JumpThreading::ProcessBlock(BasicBlock *BB) {
if (Baseline != LazyValueInfo::Unknown) {
// Check that all remaining incoming values match the first one.
while (++PI != PE) {
LazyValueInfo::Tristate Ret = LVI->getPredicateOnEdge(
CondCmp->getPredicate(),
CondCmp->getOperand(0),
CondConst, *PI, BB);
LazyValueInfo::Tristate Ret =
LVI->getPredicateOnEdge(CondCmp->getPredicate(),
CondCmp->getOperand(0), CondConst, *PI, BB);
if (Ret != Baseline) break;
}