summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-04-14 18:26:16 +0000
committerDan Gohman <gohman@apple.com>2008-04-14 18:26:16 +0000
commite36714c0b4a13953a99101091b4e5fdd2b910782 (patch)
tree40152eb0ed968966f740c107a91311e495f67481 /llvm/lib/Transforms
parent5e6ce7bb33c2f37572a7f5adc2895d293b379f64 (diff)
downloadbcm5719-llvm-e36714c0b4a13953a99101091b4e5fdd2b910782.tar.gz
bcm5719-llvm-e36714c0b4a13953a99101091b4e5fdd2b910782.zip
Minor whitespace and comment cleanups.
llvm-svn: 49671
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index fbed3b3e38d..4dc7d60b0cb 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -430,7 +430,7 @@ static bool IVUseShouldUsePostIncValue(Instruction *User, Instruction *IV,
bool LoopStrengthReduce::AddUsersIfInteresting(Instruction *I, Loop *L,
SmallPtrSet<Instruction*,16> &Processed) {
if (!I->getType()->isInteger() && !isa<PointerType>(I->getType()))
- return false; // Void and FP expressions cannot be reduced.
+ return false; // Void and FP expressions cannot be reduced.
if (!Processed.insert(I))
return true; // Instruction already handled.
@@ -1072,7 +1072,7 @@ static bool PartitionByIsUseOfPostIncrementedValue(const BasedUser &Val) {
return Val.isUseOfPostIncrementedValue;
}
-/// isNonConstantNegative - REturn true if the specified scev is negated, but
+/// isNonConstantNegative - Return true if the specified scev is negated, but
/// not a constant.
static bool isNonConstantNegative(const SCEVHandle &Expr) {
SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(Expr);
@@ -1367,7 +1367,7 @@ void LoopStrengthReduce::StrengthReduceStridedIVUsers(const SCEVHandle &Stride,
// We want this constant emitted into the preheader! This is just
// using cast as a copy so BitCast (no-op cast) is appropriate
BaseV = new BitCastInst(BaseV, BaseV->getType(), "preheaderinsert",
- PreInsertPt);
+ PreInsertPt);
}
}
OpenPOWER on IntegriCloud