[PATCH] D54822: [AArch64] Refactor the scheduling predicates (3/3) (NFC)
Andrea Di Biagio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 22 03:26:52 PST 2018
andreadb added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64SchedPredicates.td:78-83
+// Identify arithmetic instructions with an extended register.
+def RegExtendedBody : CheckAll<[IsArithExtPred,
+ CheckNot<CheckZeroOperand<3>>]>;
+def RegExtendedPred : MCSchedPredicate<RegExtendedBody>;
+def RegExtendedFn : TIIPredicate<"hasExtendedReg",
+ MCReturnStatement<RegExtendedBody>>;
----------------
You should just use a MCOpcodeSwitchStatement.
Repository:
rL LLVM
https://reviews.llvm.org/D54822
More information about the llvm-commits
mailing list