[llvm-commits] [llvm] r151644 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Benjamin Kramer benny.kra at googlemail.com
Tue Feb 28 10:37:06 PST 2012


Author: d0k
Date: Tue Feb 28 12:37:06 2012
New Revision: 151644

URL: http://llvm.org/viewvc/llvm-project?rev=151644&view=rev
Log:
Fix off-by one in comment.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp?rev=151644&r1=151643&r2=151644&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp Tue Feb 28 12:37:06 2012
@@ -1402,7 +1402,7 @@
   if ((KnownZero & HighBitMask) == HighBitMask) {
     // Calculate 31-x. 31 is used instead of 32 to avoid creating an undefined
     // shift if x is zero.  We can use XOR here because x is known to be smaller
-    // than 31.
+    // than 32.
     SDValue Amt2 = DAG.getNode(ISD::XOR, dl, ShTy, Amt,
                                DAG.getConstant(NVTBits-1, ShTy));
 





More information about the llvm-commits mailing list