OSDN Git Service

fix trivial typos in comments; NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 4 Jul 2017 16:35:26 +0000 (16:35 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 4 Jul 2017 16:35:26 +0000 (16:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307094 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/ARM/ARMCallLowering.cpp
lib/Target/NVPTX/NVPTXISelLowering.cpp

index 26164e6..e40788e 100644 (file)
@@ -11049,7 +11049,7 @@ bool DAGCombiner::CombineToPreIndexedLoadStore(SDNode *N) {
     //   x1 * offset1 + y1 * ptr0 = t1 (the indexed load/store)
     //
     // where x0, x1, y0 and y1 in {-1, 1} are given by the types of the
-    // indexed load/store and the expresion that needs to be re-written.
+    // indexed load/store and the expression that needs to be re-written.
     //
     // Therefore, we have:
     //   t0 = (x0 * offset0 - x1 * y0 * y1 *offset1) + (y0 * y1) * t1
index e498f70..051827a 100644 (file)
@@ -321,7 +321,7 @@ struct IncomingValueHandler : public CallLowering::ValueHandler {
     assert(VA.getValVT().getSizeInBits() <= 64 && "Unsupported value size");
     assert(VA.getLocVT().getSizeInBits() <= 64 && "Unsupported location size");
 
-    // The necesary extensions are handled on the other side of the ABI
+    // The necessary extensions are handled on the other side of the ABI
     // boundary.
     markPhysRegUsed(PhysReg);
     MIRBuilder.buildCopy(ValVReg, PhysReg);
index f26b9a7..54579d0 100644 (file)
@@ -2456,7 +2456,7 @@ SDValue NVPTXTargetLowering::LowerFormalArguments(
             // v2f16 was loaded as an i32. Now we must bitcast it back.\r
             else if (EltVT == MVT::v2f16)\r
               Elt = DAG.getNode(ISD::BITCAST, dl, MVT::v2f16, Elt);\r
-            // Extend the element if necesary (e.g. an i8 is loaded\r
+            // Extend the element if necessary (e.g. an i8 is loaded\r
             // into an i16 register)\r
             if (Ins[InsIdx].VT.isInteger() &&\r
                 Ins[InsIdx].VT.getSizeInBits() > LoadVT.getSizeInBits()) {\r