Skip to content

Commit

Permalink
[LSR] Drop support for typed pointers
Browse files Browse the repository at this point in the history
The opaque pointers are already "canonicalized". So remove the
redundant/obsolete code.
  • Loading branch information
bjope committed Sep 7, 2023
1 parent d6a2014 commit db456dc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,12 +943,6 @@ static MemAccessTy getAccessType(const TargetTransformInfo &TTI,
}
}

// All pointers have the same requirements, so canonicalize them to an
// arbitrary pointer type to minimize variation.
if (PointerType *PTy = dyn_cast<PointerType>(AccessTy.MemTy))
AccessTy.MemTy = PointerType::get(IntegerType::get(PTy->getContext(), 1),
PTy->getAddressSpace());

return AccessTy;
}

Expand Down

0 comments on commit db456dc

Please sign in to comment.