summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-09 00:41:49 +0000
committerChris Lattner <sabre@nondot.org>2009-11-09 00:41:49 +0000
commite7e63fe9650fc01043c96e2bf8a1ecc19e49c5b7 (patch)
tree8056b610672ac62c9b0ef383328a30414c382e65 /lib/Transforms/Scalar/JumpThreading.cpp
parente5165490b7ba24bb2f3043399e0d60e7f3bcf8a5 (diff)
downloadllvm-e7e63fe9650fc01043c96e2bf8a1ecc19e49c5b7.tar.gz
llvm-e7e63fe9650fc01043c96e2bf8a1ecc19e49c5b7.tar.bz2
llvm-e7e63fe9650fc01043c96e2bf8a1ecc19e49c5b7.tar.xz
comment typos pointed out by Duncan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r--lib/Transforms/Scalar/JumpThreading.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp
index c0fd45da1f..4c7e95933e 100644
--- a/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/lib/Transforms/Scalar/JumpThreading.cpp
@@ -226,7 +226,7 @@ static Constant *GetResultOfComparison(CmpInst::Predicate pred,
/// ComputeValueKnownInPredecessors - Given a basic block BB and a value V, see
/// if we can infer that the value is a known ConstantInt in any of our
-/// predecessors. If so, return the known the list of value and pred BB in the
+/// predecessors. If so, return the known list of value and pred BB in the
/// result vector. If a value is known to be undef, it is returned as null.
///
/// The BB basic block is known to start with a PHI node.
@@ -501,7 +501,7 @@ bool JumpThreading::ProcessBlock(BasicBlock *BB) {
//
// We only bother doing this if the current block has a PHI node and if the
// conditional instruction lives in the current block. If either condition
- // fail, this won't be a computable value anyway.
+ // fails, this won't be a computable value anyway.
if (CondInst->getParent() == BB && isa<PHINode>(BB->front()))
if (ProcessThreadableEdges(CondInst, BB))
return true;
@@ -890,7 +890,7 @@ bool JumpThreading::ProcessThreadableEdges(Instruction *CondInst,
// Decide what we want to thread through. Convert our list of known values to
// a list of known destinations for each pred. This also discards duplicate
// predecessors and keeps track of the undefined inputs (which are represented
- // as a null dest in the PredToDestList.
+ // as a null dest in the PredToDestList).
SmallPtrSet<BasicBlock*, 16> SeenPreds;
SmallVector<std::pair<BasicBlock*, BasicBlock*>, 16> PredToDestList;