From: Eric Christopher Date: Wed, 29 Sep 2010 00:50:57 +0000 (+0000) Subject: Remove unnecessary set ahead of time. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f8476e6742d22f97932409e79b59a693df6b5947;p=oota-llvm.git Remove unnecessary set ahead of time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115011 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 6e245c32817..cb9c8d5ed95 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -784,12 +784,11 @@ bool ARMFastISel::SelectBranch(const Instruction *I) { unsigned CondReg = getRegForValue(Cond); if (CondReg == 0) return false; - ARMCC::CondCodes ARMPred = ARMCC::NE; CmpInst *CI = dyn_cast(Cond); if (!CI) return false; // Get the compare predicate. - ARMPred = getComparePred(CI->getPredicate()); + ARMCC::CondCodes ARMPred = getComparePred(CI->getPredicate()); // We may not handle every CC for now. if (ARMPred == ARMCC::AL) return false;