]> granicus.if.org Git - llvm/commitdiff
[APInt] Use operator<<= where possible. NFC
authorCraig Topper <craig.topper@gmail.com>
Sun, 23 Apr 2017 05:43:02 +0000 (05:43 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 23 Apr 2017 05:43:02 +0000 (05:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/X86/X86ISelLowering.cpp

index cdff32b1c47af8aeeae972cc0a93219c97d1cb8d..eb0b0b92ffb735a60e7638d1c1776a93b8690dd1 100644 (file)
@@ -2323,8 +2323,8 @@ void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero,
     if (const APInt *ShAmt = getValidShiftAmountConstant(Op)) {
       computeKnownBits(Op.getOperand(0), KnownZero, KnownOne, DemandedElts,
                        Depth + 1);
-      KnownZero = KnownZero << *ShAmt;
-      KnownOne = KnownOne << *ShAmt;
+      KnownZero <<= *ShAmt;
+      KnownOne <<= *ShAmt;
       // Low bits are known zero.
       KnownZero.setLowBits(ShAmt->getZExtValue());
     }
index ac3934da907d3cca1640db2f034e54eeeb46ad72..16ad1a303e84cdf36a9ac320dafeaeef9aab7a77 100644 (file)
@@ -1714,7 +1714,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
               bestWidth = width;
               break;
             }
-            newMask = newMask << width;
+            newMask <<= width;
           }
         }
       }
index 5c2b1344e4f8553c574f532957800c1d88593cb4..d5bc4436f8eb97dc0a4476e0dc67b4c36744da48 100644 (file)
@@ -26717,8 +26717,8 @@ void X86TargetLowering::computeKnownBitsForTargetNode(const SDValue Op,
       DAG.computeKnownBits(Op.getOperand(0), KnownZero, KnownOne, Depth + 1);
       unsigned ShAmt = ShiftImm->getZExtValue();
       if (Opc == X86ISD::VSHLI) {
-        KnownZero = KnownZero << ShAmt;
-        KnownOne = KnownOne << ShAmt;
+        KnownZero <<= ShAmt;
+        KnownOne <<= ShAmt;
         // Low bits are known zero.
         KnownZero.setLowBits(ShAmt);
       } else {