forked from OSchip/llvm-project
[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
This commit is contained in:
parent
f7ebaf889a
commit
da2c9baa07
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue