summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-02 16:53:43 +0000
committerChris Lattner <sabre@nondot.org>2007-08-02 16:53:43 +0000
commit2740694450a25af2519a0ccb76854d085224b127 (patch)
treec2c599dd61be16f21197b2af29c93ce44d55ffe6 /llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
parenta882328e61f928e069a005218c0a967e8a10da7a (diff)
downloadbcm5719-llvm-2740694450a25af2519a0ccb76854d085224b127.tar.gz
bcm5719-llvm-2740694450a25af2519a0ccb76854d085224b127.zip
wrap some long lines. Major offenders that are left include
gvn, gvnpre, dse, and predsimplify. To see these, use: make check-line-length llvm-svn: 40738
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 5bea783ff61..fea3c420d9e 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -651,9 +651,10 @@ void BasedUser::RewriteInstructionToUseNewBase(const SCEVHandle &NewBase,
Instruction *InsertPt = PN->getIncomingBlock(i)->getTerminator();
Code = InsertCodeForBaseAtPosition(NewBase, Rewriter, InsertPt, L);
- // Adjust the type back to match the PHI. Note that we can't use InsertPt
- // here because the SCEVExpander may have inserted its instructions after
- // that point, in its efforts to avoid inserting redundant expressions.
+ // Adjust the type back to match the PHI. Note that we can't use
+ // InsertPt here because the SCEVExpander may have inserted its
+ // instructions after that point, in its efforts to avoid inserting
+ // redundant expressions.
if (isa<PointerType>(PN->getType())) {
Code = SCEVExpander::InsertCastOfTo(Instruction::IntToPtr,
Code,
OpenPOWER on IntegriCloud