]> granicus.if.org Git - llvm/commitdiff
fix typos in comments; NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 11 Jul 2017 06:04:59 +0000 (06:04 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 11 Jul 2017 06:04:59 +0000 (06:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307626 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/InlineCost.h
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/InstCombine/InstCombinePHI.cpp
test/Other/pass-pipelines.ll
tools/lli/lli.cpp
unittests/Support/ErrorTest.cpp

index ce0b7895f253c8259f9a2c8fc7973057fe722dc4..f33a2de5a5f4ac76ba3be51c0ba7801fbb7e153e 100644 (file)
@@ -160,7 +160,7 @@ InlineParams getInlineParams(int Threshold);
 /// the -Oz flag.
 InlineParams getInlineParams(unsigned OptLevel, unsigned SizeOptLevel);
 
-/// Return the cost associated with a callsite, including paramater passing
+/// Return the cost associated with a callsite, including parameter passing
 /// and the call/return instruction.
 int getCallsiteCost(CallSite CS, const DataLayout &DL);
 
index 0d6c9f80f28395d7e42de72cf70699f6399c6cfb..391c430dab75ded2479eb7c88897c48f18748803 100644 (file)
@@ -1762,7 +1762,7 @@ static Instruction *SimplifyNVVMIntrinsic(IntrinsicInst *II, InstCombiner &IC) {
     // The remainder of cases are NVVM intrinsics that map to LLVM idioms, but
     // need special handling.
     //
-    // We seem to be mising intrinsics for rcp.approx.{ftz.}f32, which is just
+    // We seem to be missing intrinsics for rcp.approx.{ftz.}f32, which is just
     // as well.
     case Intrinsic::nvvm_rcp_rn_d:
       return {SPC_Reciprocal, FTZ_Any};
index 7fb4a914fe5c29eb3f85139badae3bfffbc0c11c..0011412c2bf47291d42eb99a41f07bca495ee824 100644 (file)
@@ -636,7 +636,7 @@ static bool PHIsEqualValue(PHINode *PN, Value *NonPhiInVal,
 /// Return an existing non-zero constant if this phi node has one, otherwise
 /// return constant 1.
 static ConstantInt *GetAnyNonZeroConstInt(PHINode &PN) {
-  assert(isa<IntegerType>(PN.getType()) && "Expect only intger type phi");
+  assert(isa<IntegerType>(PN.getType()) && "Expect only integer type phi");
   for (Value *V : PN.operands())
     if (auto *ConstVA = dyn_cast<ConstantInt>(V))
       if (!ConstVA->isZero())
index 971ed2c094730f4f53197985be0ffb9682105d67..d47c02ee7a4691c9b71074742eed2b08ede9dc48 100644 (file)
@@ -24,7 +24,7 @@
 ; CHECK-O2: Dead Argument Elimination
 ; CHECK-O2-NEXT: FunctionPass Manager
 ; CHECK-O2-NOT: Manager
-; Very carefully asert the CGSCC pass pipeline as it is fragile and unusually
+; Very carefully assert the CGSCC pass pipeline as it is fragile and unusually
 ; susceptible to phase ordering issues.
 ; CHECK-O2: CallGraph Construction
 ; CHECK-O2-NEXT: Globals Alias Analysis
index f228a36194573bc0971d70e609acabaa48ae1dec..091ca22b4e82c52a5505ab93c870747ec5557e57 100644 (file)
@@ -646,7 +646,7 @@ int main(int argc, char **argv, char * const *envp) {
     // else == "if (RemoteMCJIT)"
 
     // Remote target MCJIT doesn't (yet) support static constructors. No reason
-    // it couldn't. This is a limitation of the LLI implemantation, not the
+    // it couldn't. This is a limitation of the LLI implementation, not the
     // MCJIT itself. FIXME.
 
     // Lanch the remote process and get a channel to it.
index 299fc50b469790209d32135efda46368d8f05afd..a762cf023f9cc0c06b1b17115ea674df516e7922 100644 (file)
@@ -360,7 +360,7 @@ TEST(Error, CheckJoinErrors) {
         [&](const CustomError &CE) {
           Sum += CE.getInfo();
         });
-    EXPECT_EQ(Sum, 28) << "Failed to correctly concatenate erorr lists.";
+    EXPECT_EQ(Sum, 28) << "Failed to correctly concatenate error lists.";
   }
 }