From f209649dfcfef475de740a4755a6c480db360a6f Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Thu, 14 Jun 2018 05:41:49 +0000 Subject: [NFC] fix trivial typos in comments llvm-svn: 334687 --- llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp') diff --git a/llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp b/llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp index 3b0971804e6..6743e19a7c9 100644 --- a/llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp +++ b/llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp @@ -266,7 +266,7 @@ static bool isSafeAndProfitableToSpeculateAroundPHI( // Assume we will commute the constant to the RHS to be canonical. Idx = 1; - // Get the intrinsic ID if this user is an instrinsic. + // Get the intrinsic ID if this user is an intrinsic. Intrinsic::ID IID = Intrinsic::not_intrinsic; if (auto *UserII = dyn_cast(UserI)) IID = UserII->getIntrinsicID(); @@ -609,7 +609,7 @@ static void speculatePHIs(ArrayRef SpecPNs, // Each predecessor is numbered by its index in `SpecPreds`, so for each // instruction we speculate, the speculated instruction is stored in that - // index of the vector asosciated with the original instruction. We also + // index of the vector associated with the original instruction. We also // store the incoming values for each predecessor from any PHIs used. SmallDenseMap, 16> SpeculatedValueMap; -- cgit v1.2.3