summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2018-06-14 05:41:49 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2018-06-14 05:41:49 +0000
commitf209649dfcfef475de740a4755a6c480db360a6f (patch)
treefedb62ca57604cfaf31b033d7666dc7e8449fc6a /llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
parent706ea47bdc9f72fdb1a00cec228ffe2fac9a7c1c (diff)
downloadbcm5719-llvm-f209649dfcfef475de740a4755a6c480db360a6f.tar.gz
bcm5719-llvm-f209649dfcfef475de740a4755a6c480db360a6f.zip
[NFC] fix trivial typos in comments
llvm-svn: 334687
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp4
1 files changed, 2 insertions, 2 deletions
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<IntrinsicInst>(UserI))
IID = UserII->getIntrinsicID();
@@ -609,7 +609,7 @@ static void speculatePHIs(ArrayRef<PHINode *> 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<Instruction *, SmallVector<Value *, 2>, 16> SpeculatedValueMap;
OpenPOWER on IntegriCloud