[llvm] r318685 - [AArch64] Adjust the cost model for Exynos M1 and M2
Evandro Menezes via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 20 11:11:56 PST 2017
Author: evandro
Date: Mon Nov 20 11:11:56 2017
New Revision: 318685
URL: http://llvm.org/viewvc/llvm-project?rev=318685&view=rev
Log:
[AArch64] Adjust the cost model for Exynos M1 and M2
Fix the modeling of test and branch.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64SchedM1.td
Modified: llvm/trunk/lib/Target/AArch64/AArch64SchedM1.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64SchedM1.td?rev=318685&r1=318684&r2=318685&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64SchedM1.td (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64SchedM1.td Mon Nov 20 11:11:56 2017
@@ -84,6 +84,9 @@ def M1WriteAC : SchedWriteRes<[M1UnitALU
M1UnitALU,
M1UnitC]> { let Latency = 2;
let NumMicroOps = 3; }
+def M1WriteAD : SchedWriteRes<[M1UnitALU,
+ M1UnitC]> { let Latency = 2;
+ let NumMicroOps = 2; }
def M1WriteAX : SchedWriteVariant<[SchedVar<M1ShiftLeftFastPred, [M1WriteA1]>,
SchedVar<NoSchedPred, [M1WriteAA]>]>;
def M1WriteC1 : SchedWriteRes<[M1UnitC]> { let Latency = 1; }
@@ -429,8 +432,7 @@ def : InstRW<[M1WriteB1], (instrs Bcc)>;
def : InstRW<[M1WriteA1], (instrs BL)>;
def : InstRW<[M1WriteBX], (instrs BLR)>;
def : InstRW<[M1WriteC1], (instregex "^CBN?Z[WX]")>;
-def : InstRW<[M1WriteC1,
- M1WriteA2], (instregex "^TBN?Z[WX]")>;
+def : InstRW<[M1WriteAD], (instregex "^TBN?Z[WX]")>;
// Arithmetic and logical integer instructions.
def : InstRW<[M1WriteA1], (instrs COPY)>;
More information about the llvm-commits
mailing list