summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-03 01:34:58 +0000
committerChris Lattner <sabre@nondot.org>2006-11-03 01:34:58 +0000
commit62e2cad6b83013241c8995dba42b521ea9be08ea (patch)
tree8baadb0105cce77ccf76a58a7f41088adc29c7a8 /llvm
parentcd7b92251d54979b67c6dd09c039e307aee53aba (diff)
downloadbcm5719-llvm-62e2cad6b83013241c8995dba42b521ea9be08ea.tar.gz
bcm5719-llvm-62e2cad6b83013241c8995dba42b521ea9be08ea.zip
remove dead code
llvm-svn: 31398
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
index 3ea67955fd5..347700792ab 100644
--- a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
+++ b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
@@ -1146,19 +1146,6 @@ Relation::KnownResult CEE::getSetCCResult(SetCondInst *SCI,
// Relation Implementation
//===----------------------------------------------------------------------===//
-// CheckCondition - Return true if the specified condition is false. Bound may
-// be null.
-static bool CheckCondition(Constant *Bound, Constant *C,
- Instruction::BinaryOps BO) {
- assert(C != 0 && "C is not specified!");
- if (Bound == 0) return false;
-
- Constant *Val = ConstantExpr::get(BO, Bound, C);
- if (ConstantBool *CB = dyn_cast<ConstantBool>(Val))
- return !CB->getValue(); // Return true if the condition is false...
- return false;
-}
-
// contradicts - Return true if the relationship specified by the operand
// contradicts already known information.
//
OpenPOWER on IntegriCloud