summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2015-11-19 21:33:07 +0000
committerChad Rosier <mcrosier@codeaurora.org>2015-11-19 21:33:07 +0000
commit1cd3da15e8f5af0665839c523069c8c85282b293 (patch)
tree21c298cd66ec25e787f1fea3c7f70cee1671f59b /llvm/lib/Transforms
parentf1c2370c48cd00ae0f35cc2dcd10c762414792d1 (diff)
downloadbcm5719-llvm-1cd3da15e8f5af0665839c523069c8c85282b293.tar.gz
bcm5719-llvm-1cd3da15e8f5af0665839c523069c8c85282b293.zip
[LIR] Update some comments. NFC.
llvm-svn: 253603
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index cbba6800a67..0fb224d42b5 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -361,9 +361,7 @@ bool LoopIdiomRecognize::processLoopStore(StoreInst *SI, const SCEV *BECount) {
StoredVal, SI, StoreEv, BECount, NegStride))
return true;
- // If the stored value is a strided load in the same loop with the same stride
- // this may be transformable into a memcpy. This kicks in for stuff like
- // for (i) A[i] = B[i];
+ // Optimize the store into a memcpy, if it feeds an similarly strided load.
return processLoopStoreOfLoopLoad(SI, StoreSize, StoreEv, BECount, NegStride);
}
@@ -607,8 +605,9 @@ bool LoopIdiomRecognize::processLoopStridedStore(
return true;
}
-/// processLoopStoreOfLoopLoad - We see a strided store whose value is a
-/// same-strided load.
+/// If the stored value is a strided load in the same loop with the same stride
+/// this may be transformable into a memcpy. This kicks in for stuff like
+/// for (i) A[i] = B[i];
bool LoopIdiomRecognize::processLoopStoreOfLoopLoad(
StoreInst *SI, unsigned StoreSize, const SCEVAddRecExpr *StoreEv,
const SCEV *BECount, bool NegStride) {
OpenPOWER on IntegriCloud