From 1e37bbafbb2b22072fb5f9141d1344ec61fede6a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Nov 2010 07:32:33 +0000 Subject: finish a thought. llvm-svn: 119690 --- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') 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; -- cgit v1.2.3