diff options
author | Eric Christopher <echristo@apple.com> | 2010-09-29 00:50:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-09-29 00:50:57 +0000 |
commit | f8476e6742d22f97932409e79b59a693df6b5947 (patch) | |
tree | fc41098685a30cd61a19383d16279f2d434e17b5 | |
parent | 5d42c567c901508e80ab10ddba1bb30a5007d742 (diff) |
Remove unnecessary set ahead of time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115011 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 6e245c3281..cb9c8d5ed9 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<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; |