summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-18 07:32:33 +0000
committerChris Lattner <sabre@nondot.org>2010-11-18 07:32:33 +0000
commit1e37bbafbb2b22072fb5f9141d1344ec61fede6a (patch)
treeca0bb9442f7e106d88fe89e682a275686f44884b /llvm/lib/Transforms
parent7e9b2ea3bfc68d3b8d057c3c69b5b520210aadd8 (diff)
downloadbcm5719-llvm-1e37bbafbb2b22072fb5f9141d1344ec61fede6a.tar.gz
bcm5719-llvm-1e37bbafbb2b22072fb5f9141d1344ec61fede6a.zip
finish a thought.
llvm-svn: 119690
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 1bec443513b..a20d769ba3f 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -1831,7 +1831,7 @@ static bool isOnlyCopiedFromConstantGlobal(Value *V, MemTransferInst *&TheCopy,
return false;
// If the transfer is using the alloca as a source of the transfer, then
- // it (unless the transfer is volatile).
+ // ignore it since it is a load (unless the transfer is volatile).
if (UI.getOperandNo() == 1) {
if (MI->isVolatile()) return false;
continue;
OpenPOWER on IntegriCloud