Explorar o código

[X86] Fix some comments to refer to KORTEST not KTEST. NFC

KTEST is a different instruction. All of this code uses KORTEST.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340799 91177308-0d34-0410-b5e6-96231b3b80d8
Craig Topper %!s(int64=7) %!d(string=hai) anos
pai
achega
f17bde5ddc
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      lib/Target/X86/X86ISelLowering.cpp

+ 6 - 6
lib/Target/X86/X86ISelLowering.cpp

@@ -18843,10 +18843,10 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
   return Result;
   return Result;
 }
 }
 
 
-// Try to select this as a KTEST+SETCC if possible.
-static SDValue EmitKTEST(SDValue Op0, SDValue Op1, ISD::CondCode CC,
-                         const SDLoc &dl, SelectionDAG &DAG,
-                         const X86Subtarget &Subtarget) {
+// Try to select this as a KORTEST+SETCC if possible.
+static SDValue EmitKORTEST(SDValue Op0, SDValue Op1, ISD::CondCode CC,
+                           const SDLoc &dl, SelectionDAG &DAG,
+                           const X86Subtarget &Subtarget) {
   // Only support equality comparisons.
   // Only support equality comparisons.
   if (CC != ISD::SETEQ && CC != ISD::SETNE)
   if (CC != ISD::SETEQ && CC != ISD::SETNE)
     return SDValue();
     return SDValue();
@@ -18913,8 +18913,8 @@ SDValue X86TargetLowering::LowerSETCC(SDValue Op, SelectionDAG &DAG) const {
       return NewSetCC;
       return NewSetCC;
   }
   }
 
 
-  // Try to lower using KTEST.
-  if (SDValue NewSetCC = EmitKTEST(Op0, Op1, CC, dl, DAG, Subtarget))
+  // Try to lower using KORTEST.
+  if (SDValue NewSetCC = EmitKORTEST(Op0, Op1, CC, dl, DAG, Subtarget))
     return NewSetCC;
     return NewSetCC;
 
 
   // Look for X == 0, X == 1, X != 0, or X != 1.  We can simplify some forms of
   // Look for X == 0, X == 1, X != 0, or X != 1.  We can simplify some forms of