Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit 588f39f

Browse files
Revert "[PowerPC] LSR tunings for PowerPC"
Revert the rest of the LST tune commit. It seems that the LSR tune commit breaks internal tests. Reverting the commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327143 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 0958240 commit 588f39f

File tree

3 files changed

+0
-73
lines changed

3 files changed

+0
-73
lines changed

lib/Target/PowerPC/PPCTargetTransformInfo.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -256,19 +256,6 @@ bool PPCTTIImpl::enableInterleavedAccessVectorization() {
256256
return true;
257257
}
258258

259-
bool PPCTTIImpl::isLSRCostLess(TargetTransformInfo::LSRCost &C1,
260-
TargetTransformInfo::LSRCost &C2) {
261-
// This is mainly the default cost calculation. The only difference
262-
// is that now the number of instructions is the most important
263-
// metric.
264-
return std::tie(C1.Insns, C1.NumRegs, C1.AddRecCost,
265-
C1.NumIVMuls, C1.NumBaseAdds,
266-
C1.ScaleCost, C1.ImmCost, C1.SetupCost) <
267-
std::tie(C2.Insns, C2.NumRegs, C2.AddRecCost,
268-
C2.NumIVMuls, C2.NumBaseAdds,
269-
C2.ScaleCost, C2.ImmCost, C2.SetupCost);
270-
}
271-
272259
unsigned PPCTTIImpl::getNumberOfRegisters(bool Vector) {
273260
if (Vector && !ST->hasAltivec() && !ST->hasQPX())
274261
return 0;

lib/Target/PowerPC/PPCTargetTransformInfo.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ class PPCTTIImpl : public BasicTTIImplBase<PPCTTIImpl> {
5757
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE,
5858
TTI::UnrollingPreferences &UP);
5959

60-
bool isLSRCostLess(TargetTransformInfo::LSRCost &C1,
61-
TargetTransformInfo::LSRCost &C2);
62-
6360
/// @}
6461

6562
/// \name Vector TTI Implementations

test/Transforms/LoopStrengthReduce/PowerPC/lsr-insns-3.ll

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)