forked from OSchip/llvm-project
[ARMParallelDSP] Remove unnecessary wrapper function (NFC)
AreSequentialAccesses() forwards directly to isConsecutiveAccess() and has an unnecessary template parameter to boot.
This commit is contained in:
parent
fe63db25bc
commit
8c01deb8e6
|
@ -299,14 +299,6 @@ namespace {
|
|||
};
|
||||
}
|
||||
|
||||
template<typename MemInst>
|
||||
static bool AreSequentialAccesses(MemInst *MemOp0, MemInst *MemOp1,
|
||||
const DataLayout &DL, ScalarEvolution &SE) {
|
||||
if (isConsecutiveAccess(MemOp0, MemOp1, DL, SE))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ARMParallelDSP::AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1,
|
||||
MemInstList &VecMem) {
|
||||
if (!Ld0 || !Ld1)
|
||||
|
@ -414,7 +406,7 @@ bool ARMParallelDSP::RecordMemoryOps(BasicBlock *BB) {
|
|||
if (Base == Offset || OffsetLoads.count(Offset))
|
||||
continue;
|
||||
|
||||
if (AreSequentialAccesses<LoadInst>(Base, Offset, *DL, *SE) &&
|
||||
if (isConsecutiveAccess(Base, Offset, *DL, *SE) &&
|
||||
SafeToPair(Base, Offset)) {
|
||||
LoadPairs[Base] = Offset;
|
||||
OffsetLoads.insert(Offset);
|
||||
|
|
Loading…
Reference in New Issue