summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-02-03 00:33:21 +0000
committerBob Wilson <bob.wilson@apple.com>2010-02-03 00:33:21 +0000
commit76e8c59509e2cacc03ed65eceece980745118fe5 (patch)
tree9e2bf4fadce58f80c4960c899f838182db91ab6e /llvm/lib
parente165191990735c98cd49e5056e7fdffb9c06d8f9 (diff)
downloadbcm5719-llvm-76e8c59509e2cacc03ed65eceece980745118fe5.tar.gz
bcm5719-llvm-76e8c59509e2cacc03ed65eceece980745118fe5.zip
Fix some comment typos.
llvm-svn: 95170
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/GVN.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index 421a930d067..80e0027a174 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -2102,7 +2102,7 @@ bool GVN::performPRE(Function &F) {
for (pred_iterator PI = pred_begin(CurrentBlock),
PE = pred_end(CurrentBlock); PI != PE; ++PI) {
// We're not interested in PRE where the block is its
- // own predecessor, on in blocks with predecessors
+ // own predecessor, or in blocks with predecessors
// that are not reachable.
if (*PI == CurrentBlock) {
NumWithout = 2;
@@ -2150,10 +2150,10 @@ bool GVN::performPRE(Function &F) {
continue;
}
- // Instantiate the expression the in predecessor that lacked it.
+ // Instantiate the expression in the predecessor that lacked it.
// Because we are going top-down through the block, all value numbers
// will be available in the predecessor by the time we need them. Any
- // that weren't original present will have been instantiated earlier
+ // that weren't originally present will have been instantiated earlier
// in this loop.
Instruction *PREInstr = CurInst->clone();
bool success = true;
OpenPOWER on IntegriCloud