[llvm-commits] [llvm] r115011 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Eric Christopher
echristo at apple.com
Tue Sep 28 17:50:57 PDT 2010
Author: echristo
Date: Tue Sep 28 19:50:57 2010
New Revision: 115011
URL: http://llvm.org/viewvc/llvm-project?rev=115011&view=rev
Log:
Remove unnecessary set ahead of time.
Modified:
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=115011&r1=115010&r2=115011&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Tue Sep 28 19:50:57 2010
@@ -784,12 +784,11 @@
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;
More information about the llvm-commits
mailing list