summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2013-04-18 17:42:14 +0000
committerChris Lattner <sabre@nondot.org>2013-04-18 17:42:14 +0000
commit8cf09416eaecfca3c0f3f78b9eb3387962aafc8b (patch)
tree2d7ca71fa39550b5d51c31e3be05223bb7a25dec /llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
parenta403d243d11693a6409f0c52196f3f38c3de76e2 (diff)
downloadbcm5719-llvm-8cf09416eaecfca3c0f3f78b9eb3387962aafc8b.tar.gz
bcm5719-llvm-8cf09416eaecfca3c0f3f78b9eb3387962aafc8b.zip
Fix a comment, PR15777.
llvm-svn: 179775
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 8a8fbd3c4e8..bfde334c36c 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -1462,8 +1462,8 @@ bool SROA::ShouldAttemptScalarRepl(AllocaInst *AI) {
}
// performScalarRepl - This algorithm is a simple worklist driven algorithm,
-// which runs on all of the alloca instructions in the function, removing them
-// if they are only used by getelementptr instructions.
+// which runs on all of the alloca instructions in the entry block, removing
+// them if they are only used by getelementptr instructions.
//
bool SROA::performScalarRepl(Function &F) {
std::vector<AllocaInst*> WorkList;
OpenPOWER on IntegriCloud