diff options
Diffstat (limited to 'llvm/lib/Target/ARM/ARMParallelDSP.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMParallelDSP.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/Target/ARM/ARMParallelDSP.cpp b/llvm/lib/Target/ARM/ARMParallelDSP.cpp index 9a7c1f541aa2..46baf8930939 100644 --- a/llvm/lib/Target/ARM/ARMParallelDSP.cpp +++ b/llvm/lib/Target/ARM/ARMParallelDSP.cpp @@ -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); |
