[llvm-commits] [llvm] r107000 - /llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
Gabor Greif
ggreif at gmail.com
Mon Jun 28 04:20:43 PDT 2010
Author: ggreif
Date: Mon Jun 28 06:20:42 2010
New Revision: 107000
URL: http://llvm.org/viewvc/llvm-project?rev=107000&view=rev
Log:
use cached value
Modified:
llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp?rev=107000&r1=106999&r2=107000&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp Mon Jun 28 06:20:42 2010
@@ -965,7 +965,7 @@
isSafeGEP(GEPI, AI, GEPOffset, Info);
if (!Info.isUnsafe)
isSafeForScalarRepl(GEPI, AI, GEPOffset, Info);
- } else if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(UI)) {
+ } else if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(User)) {
ConstantInt *Length = dyn_cast<ConstantInt>(MI->getLength());
if (Length)
isSafeMemAccess(AI, Offset, Length->getZExtValue(), 0,
More information about the llvm-commits
mailing list