[llvm-commits] [llvm] r55087 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Evan Cheng evan.cheng at apple.com
Wed Aug 20 16:36:50 PDT 2008


Author: evancheng
Date: Wed Aug 20 18:36:48 2008
New Revision: 55087

URL: http://llvm.org/viewvc/llvm-project?rev=55087&view=rev
Log:
Silence a compiler warning.

Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=55087&r1=55086&r2=55087&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Wed Aug 20 18:36:48 2008
@@ -3594,7 +3594,8 @@
     // where C is a power of 2
     Value *A, *B;
     ConstantInt *C1, *C2;
-    ICmpInst::Predicate LHSCC, RHSCC;
+    ICmpInst::Predicate LHSCC = ICmpInst::BAD_ICMP_PREDICATE;
+    ICmpInst::Predicate RHSCC = ICmpInst::BAD_ICMP_PREDICATE;
     if (match(&I, m_And(m_ICmp(LHSCC, m_Value(A), m_ConstantInt(C1)),
                         m_ICmp(RHSCC, m_Value(B), m_ConstantInt(C2)))))
       if (C1 == C2 && LHSCC == RHSCC && LHSCC == ICmpInst::ICMP_ULT &&





More information about the llvm-commits mailing list