[llvm] a28388f - [ARM][SchedModels] Move IsLDMBaseRegInListPred to ARMSchedule.td. NFC
Evgeny Leviant via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 12:32:17 PDT 2020
Author: Evgeny Leviant
Date: 2020-10-26T22:31:41+03:00
New Revision: a28388f95beb029241b4ab221b279698a5559f82
URL: https://github.com/llvm/llvm-project/commit/a28388f95beb029241b4ab221b279698a5559f82
DIFF: https://github.com/llvm/llvm-project/commit/a28388f95beb029241b4ab221b279698a5559f82.diff
LOG: [ARM][SchedModels] Move IsLDMBaseRegInListPred to ARMSchedule.td. NFC
This predicate is not specific to cortex-a57 and can be used in other processor
models as well.
Added:
Modified:
llvm/lib/Target/ARM/ARMSchedule.td
llvm/lib/Target/ARM/ARMScheduleA57.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMSchedule.td b/llvm/lib/Target/ARM/ARMSchedule.td
index 81fb6a3f0ea1..5838e7278c01 100644
--- a/llvm/lib/Target/ARM/ARMSchedule.td
+++ b/llvm/lib/Target/ARM/ARMSchedule.td
@@ -185,6 +185,10 @@ def IsLDMBaseRegInList : CheckFunctionPredicate<
let FunctionMapper = "ARM_AM::getAM3Op" in {
class CheckAM3OpSub<int n> : CheckImmOperand_s<n, "ARM_AM::sub"> {}
}
+
+// LDM, base reg in list
+def IsLDMBaseRegInListPred : MCSchedPredicate<IsLDMBaseRegInList>;
+
//===----------------------------------------------------------------------===//
// Instruction Itinerary classes used for ARM
//
diff --git a/llvm/lib/Target/ARM/ARMScheduleA57.td b/llvm/lib/Target/ARM/ARMScheduleA57.td
index 3485c7f51665..9a541e1c4331 100644
--- a/llvm/lib/Target/ARM/ARMScheduleA57.td
+++ b/llvm/lib/Target/ARM/ARMScheduleA57.td
@@ -63,9 +63,6 @@ def IsLdstsoMinusRegPredX0 : MCSchedPredicate<CheckAM2OpSub<2>>;
def IsLdstsoMinusRegPred : MCSchedPredicate<CheckAM2OpSub<3>>;
def IsLdstsoMinusRegPredX2 : MCSchedPredicate<CheckAM2OpSub<4>>;
-// LDM, base reg in list
-def IsLDMBaseRegInListPred : MCSchedPredicate<IsLDMBaseRegInList>;
-
class A57WriteLMOpsListType<list<SchedWriteRes> writes> {
list <SchedWriteRes> Writes = writes;
SchedMachineModel SchedModel = ?;
More information about the llvm-commits
mailing list