Stay classy (and legal) LLVM. Remove links to 3rd party SMT solver whose links may not be permanent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197713 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kay Tiong Khoo 2013-12-19 18:35:54 +00:00
parent f847657767
commit 75c84130c1

View File

@ -1210,8 +1210,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
// We can also fold a signed comparison if the mask value and // We can also fold a signed comparison if the mask value and
// comparison value are not negative. These constraints may not be // comparison value are not negative. These constraints may not be
// obvious, but we can prove that they are correct using an SMT // obvious, but we can prove that they are correct using an SMT
// solver such as "Z3" : // solver.
// http://rise4fun.com/Z3/DyMp
if (!ICI.isSigned() || (!AndCst->isNegative() && !RHS->isNegative())) if (!ICI.isSigned() || (!AndCst->isNegative() && !RHS->isNegative()))
CanFold = true; CanFold = true;
} else if (ShiftOpcode == Instruction::LShr) { } else if (ShiftOpcode == Instruction::LShr) {
@ -1219,8 +1218,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
// signed. We can also fold a signed comparison if the shifted mask // signed. We can also fold a signed comparison if the shifted mask
// value and the shifted comparison value are not negative. // value and the shifted comparison value are not negative.
// These constraints may not be obvious, but we can prove that they // These constraints may not be obvious, but we can prove that they
// are correct using an SMT solver such as "Z3" : // are correct using an SMT solver.
// http://rise4fun.com/Z3/Tslfh
if (!ICI.isSigned()) if (!ICI.isSigned())
CanFold = true; CanFold = true;
else { else {