forked from OSchip/llvm-project
[LAA] Remove unused OrigPtr from replaceSymbolicStrideSCEV (NFC).
The OrigPtr argument is not used in tree.
This commit is contained in:
parent
40a89da65c
commit
f4726e7238
|
@ -664,12 +664,11 @@ Value *stripIntegerCast(Value *V);
|
|||
/// If necessary this method will version the stride of the pointer according
|
||||
/// to \p PtrToStride and therefore add further predicates to \p PSE.
|
||||
///
|
||||
/// If \p OrigPtr is not null, use it to look up the stride value instead of \p
|
||||
/// Ptr. \p PtrToStride provides the mapping between the pointer value and its
|
||||
/// \p PtrToStride provides the mapping between the pointer value and its
|
||||
/// stride as collected by LoopVectorizationLegality::collectStridedAccess.
|
||||
const SCEV *replaceSymbolicStrideSCEV(PredicatedScalarEvolution &PSE,
|
||||
const ValueToValueMap &PtrToStride,
|
||||
Value *Ptr, Value *OrigPtr = nullptr);
|
||||
Value *Ptr);
|
||||
|
||||
/// If the pointer has a constant stride return it in units of its
|
||||
/// element size. Otherwise return zero.
|
||||
|
|
|
@ -142,13 +142,12 @@ Value *llvm::stripIntegerCast(Value *V) {
|
|||
|
||||
const SCEV *llvm::replaceSymbolicStrideSCEV(PredicatedScalarEvolution &PSE,
|
||||
const ValueToValueMap &PtrToStride,
|
||||
Value *Ptr, Value *OrigPtr) {
|
||||
Value *Ptr) {
|
||||
const SCEV *OrigSCEV = PSE.getSCEV(Ptr);
|
||||
|
||||
// If there is an entry in the map return the SCEV of the pointer with the
|
||||
// symbolic stride replaced by one.
|
||||
ValueToValueMap::const_iterator SI =
|
||||
PtrToStride.find(OrigPtr ? OrigPtr : Ptr);
|
||||
ValueToValueMap::const_iterator SI = PtrToStride.find(Ptr);
|
||||
if (SI == PtrToStride.end())
|
||||
// For a non-symbolic stride, just return the original expression.
|
||||
return OrigSCEV;
|
||||
|
|
Loading…
Reference in New Issue