diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-03 01:34:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-03 01:34:58 +0000 |
commit | ffa0a9b7ea27ee3de30bb6279a3673373d2832ee (patch) | |
tree | ac40ba591253d17e5c4fc293dad2c446c3ce302d /lib/Transforms | |
parent | 02cb49ee679f60662220fca4e26df4f9f16db5e0 (diff) | |
download | external_llvm-ffa0a9b7ea27ee3de30bb6279a3673373d2832ee.zip external_llvm-ffa0a9b7ea27ee3de30bb6279a3673373d2832ee.tar.gz external_llvm-ffa0a9b7ea27ee3de30bb6279a3673373d2832ee.tar.bz2 |
remove dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/CorrelatedExprs.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Transforms/Scalar/CorrelatedExprs.cpp b/lib/Transforms/Scalar/CorrelatedExprs.cpp index 3ea6795..3477007 100644 --- a/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/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. // |