[llvm-commits] [llvm] r86668 - /llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
Nick Lewycky
nicholas at mxc.ca
Mon Nov 9 23:00:44 PST 2009
Author: nicholas
Date: Tue Nov 10 01:00:43 2009
New Revision: 86668
URL: http://llvm.org/viewvc/llvm-project?rev=86668&view=rev
Log:
Simplify.
Modified:
llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp?rev=86668&r1=86667&r2=86668&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp Tue Nov 10 01:00:43 2009
@@ -121,9 +121,7 @@
assert(doesClobberMemory(I));
if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
if (!TD) return -1u;
- const PointerType *PTy =
- cast<PointerType>(SI->getPointerOperand()->getType());
- return TD->getTypeStoreSize(PTy->getElementType());
+ return TD->getTypeStoreSize(SI->getOperand(0)->getType());
}
Value *Len;
More information about the llvm-commits
mailing list