Remove unnecessary set ahead of time.

llvm-svn: 115011
This commit is contained in:
Eric Christopher 2010-09-29 00:50:57 +00:00
parent 2259d67a33
commit edd4b600f3
1 changed files with 1 additions and 2 deletions

View File

@ -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<CmpInst>(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;