Fix typos encountered while working on pass pipeline for O1.
authorEric Christopher <echristo@gmail.com>
Tue, 12 May 2020 07:44:05 +0000 (00:44 -0700)
committerEric Christopher <echristo@gmail.com>
Tue, 12 May 2020 07:45:15 +0000 (00:45 -0700)
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
llvm/test/CodeGen/X86/2010-01-11-ExtraPHIArg.ll

index 58b2011..7549d4a 100644 (file)
@@ -857,7 +857,7 @@ ModulePassManager PassBuilder::buildModuleSimplificationPipeline(
   // constants.
   MPM.addPass(createModuleToFunctionPassAdaptor(PromotePass()));
 
-  // Remove any dead arguments exposed by cleanups and constand folding
+  // Remove any dead arguments exposed by cleanups and constant folding
   // globals.
   MPM.addPass(DeadArgumentEliminationPass());
 
index 21c6c32..1dafa17 100644 (file)
@@ -145,7 +145,7 @@ namespace {
 /// Legacy pass for lowering is.constant intrinsics out of the IR.
 ///
 /// When this pass is run over a function it converts is.constant intrinsics
-/// into 'true' or 'false'. This is completements the normal constand folding
+/// into 'true' or 'false'. This complements the normal constant folding
 /// to 'true' as part of Instruction Simplify passes.
 class LowerConstantIntrinsics : public FunctionPass {
 public:
index db98eef..06fdd8c 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llc -verify-machineinstrs < %s
 ;
-; The lowering of a switch combined with constand folding would leave spurious extra arguments on a PHI instruction.
+; The lowering of a switch combined with constant folding would leave spurious extra arguments on a PHI instruction.
 ;
 target triple = "x86_64-apple-darwin10"