From f8476e6742d22f97932409e79b59a693df6b5947 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 29 Sep 2010 00:50:57 +0000 Subject: [PATCH] Remove unnecessary set ahead of time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115011 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMFastISel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;