[llvm] dd4dd50 - [NFC] Fix typo in comment

Max Kazantsev via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 00:12:35 PST 2023


Author: Max Kazantsev
Date: 2023-03-06T15:11:56+07:00
New Revision: dd4dd501166627527302d8fa2bc172ba0258f92d

URL: https://github.com/llvm/llvm-project/commit/dd4dd501166627527302d8fa2bc172ba0258f92d
DIFF: https://github.com/llvm/llvm-project/commit/dd4dd501166627527302d8fa2bc172ba0258f92d.diff

LOG: [NFC] Fix typo in comment

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
index 40ea343cfa24f..dee14c034576b 100644
--- a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
+++ b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
@@ -3013,7 +3013,7 @@ injectPendingInvariantConditions(NonTrivialUnswitchCandidate Candidate, Loop &L,
   auto &Ctx = BB->getContext();
 
   assert(LHS->getType() == RHS->getType() && "Type mismatch!");
-  // Do not use builder here: CreateICmp may simplify this intro a constant and
+  // Do not use builder here: CreateICmp may simplify this into a constant and
   // unswitching will break. Better optimize it away later.
   auto *InjectedCond =
       ICmpInst::Create(Instruction::ICmp, Pred, LHS, RHS, "injected.cond",


        


More information about the llvm-commits mailing list