summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/VectorUtils.cpp
diff options
context:
space:
mode:
authorManuel Jacob <me@manueljacob.de>2016-01-17 22:28:28 +0000
committerManuel Jacob <me@manueljacob.de>2016-01-17 22:28:28 +0000
commitda2c9baa0735bfa36b0346f87fc3f783815cbc9c (patch)
tree4f0558a4323bcbf45858566d71db9cd0de3863fd /llvm/lib/Analysis/VectorUtils.cpp
parentf7ebaf889adc95fe905f9503f4b21cb87dc5008d (diff)
downloadbcm5719-llvm-da2c9baa0735bfa36b0346f87fc3f783815cbc9c.tar.gz
bcm5719-llvm-da2c9baa0735bfa36b0346f87fc3f783815cbc9c.zip
[NFC] Remove one dead PointerType::getElementType() call.
Reviewers: dblaikie, mjacob Subscribers: llvm-commits, dblaikie Patch by Eduard Burtescu. Differential Revision: http://reviews.llvm.org/D16274 llvm-svn: 258022
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
-rw-r--r--llvm/lib/Analysis/VectorUtils.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp
index 4b244ec5e1f..ee347692b99 100644
--- a/llvm/lib/Analysis/VectorUtils.cpp
+++ b/llvm/lib/Analysis/VectorUtils.cpp
@@ -318,8 +318,6 @@ Value *llvm::getStrideFromPointer(Value *Ptr, ScalarEvolution *SE, Loop *Lp) {
// Strip off the size of access multiplication if we are still analyzing the
// pointer.
if (OrigPtr == Ptr) {
- const DataLayout &DL = Lp->getHeader()->getModule()->getDataLayout();
- DL.getTypeAllocSize(PtrTy->getElementType());
if (const SCEVMulExpr *M = dyn_cast<SCEVMulExpr>(V)) {
if (M->getOperand(0)->getSCEVType() != scConstant)
return nullptr;
OpenPOWER on IntegriCloud