[llvm] r258022 - [NFC] Remove one dead PointerType::getElementType() call.

Manuel Jacob via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 17 14:28:28 PST 2016


Author: mjacob
Date: Sun Jan 17 16:28:28 2016
New Revision: 258022

URL: http://llvm.org/viewvc/llvm-project?rev=258022&view=rev
Log:
[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

Modified:
    llvm/trunk/lib/Analysis/VectorUtils.cpp

Modified: llvm/trunk/lib/Analysis/VectorUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/VectorUtils.cpp?rev=258022&r1=258021&r2=258022&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/VectorUtils.cpp (original)
+++ llvm/trunk/lib/Analysis/VectorUtils.cpp Sun Jan 17 16:28:28 2016
@@ -318,8 +318,6 @@ Value *llvm::getStrideFromPointer(Value
   // 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;




More information about the llvm-commits mailing list