[llvm] r211869 - Rename getX86ConditonCode -> getX86ConditionCode

Craig Topper craig.topper at gmail.com
Thu Jun 26 22:18:21 PDT 2014


Author: ctopper
Date: Fri Jun 27 00:18:21 2014
New Revision: 211869

URL: http://llvm.org/viewvc/llvm-project?rev=211869&view=rev
Log:
Rename getX86ConditonCode -> getX86ConditionCode

Modified:
    llvm/trunk/lib/Target/X86/X86FastISel.cpp

Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=211869&r1=211868&r2=211869&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Fri Jun 27 00:18:21 2014
@@ -205,7 +205,7 @@ static CmpInst::Predicate optimizeCmpPre
 }
 
 static std::pair<X86::CondCode, bool>
-getX86ConditonCode(CmpInst::Predicate Predicate) {
+getX86ConditionCode(CmpInst::Predicate Predicate) {
   X86::CondCode CC = X86::COND_INVALID;
   bool NeedSwap = false;
   switch (Predicate) {
@@ -1259,7 +1259,7 @@ bool X86FastISel::X86SelectCmp(const Ins
 
   X86::CondCode CC;
   bool SwapArgs;
-  std::tie(CC, SwapArgs) = getX86ConditonCode(Predicate);
+  std::tie(CC, SwapArgs) = getX86ConditionCode(Predicate);
   assert(CC <= X86::LAST_VALID_COND && "Unexpected conditon code.");
   unsigned Opc = X86::getSETFromCond(CC);
 
@@ -1386,7 +1386,7 @@ bool X86FastISel::X86SelectBranch(const
 
       bool SwapArgs;
       unsigned BranchOpc;
-      std::tie(CC, SwapArgs) = getX86ConditonCode(Predicate);
+      std::tie(CC, SwapArgs) = getX86ConditionCode(Predicate);
       assert(CC <= X86::LAST_VALID_COND && "Unexpected conditon code.");
 
       BranchOpc = X86::GetCondBranchFromCond(CC);
@@ -1771,7 +1771,7 @@ bool X86FastISel::X86FastEmitCMoveSelect
     }
 
     bool NeedSwap;
-    std::tie(CC, NeedSwap) = getX86ConditonCode(Predicate);
+    std::tie(CC, NeedSwap) = getX86ConditionCode(Predicate);
     assert(CC <= X86::LAST_VALID_COND && "Unexpected condition code.");
 
     const Value *CmpLHS = CI->getOperand(0);
@@ -1954,7 +1954,7 @@ bool X86FastISel::X86FastEmitPseudoSelec
   const auto *CI = dyn_cast<CmpInst>(Cond);
   if (CI && (CI->getParent() == I->getParent())) {
     bool NeedSwap;
-    std::tie(CC, NeedSwap) = getX86ConditonCode(CI->getPredicate());
+    std::tie(CC, NeedSwap) = getX86ConditionCode(CI->getPredicate());
     if (CC > X86::LAST_VALID_COND)
       return false;
 





More information about the llvm-commits mailing list