diff options
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 5bea783ff6..fea3c420d9 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/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, |