Fixed order of operands in comment to match code.
authorLang Hames <lhames@gmail.com>
Tue, 10 Jan 2012 22:53:20 +0000 (22:53 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 10 Jan 2012 22:53:20 +0000 (22:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147890 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index f153ef35cac4748deea9c7783ee0604f593f2740..07451a5e749086dc5c20758cf1e237a73e6f7c58 100644 (file)
@@ -13750,7 +13750,7 @@ static SDValue PerformOrCombine(SDNode *N, SelectionDAG &DAG,
     // Canonicalize pandn to RHS
     if (N0.getOpcode() == X86ISD::ANDNP)
       std::swap(N0, N1);
-    // or (and (m, x), (pandn m, y))
+    // or (and (m, y), (pandn m, x))
     if (N0.getOpcode() == ISD::AND && N1.getOpcode() == X86ISD::ANDNP) {
       SDValue Mask = N1.getOperand(0);
       SDValue X    = N1.getOperand(1);