Refactor the scheduling predicates based on MCInstPredicate. In this case, AArch64InstrInfo::hasShiftedReg().
Details
Diff Detail
Event Timeline
llvm/lib/Target/AArch64/AArch64SchedPredicates.td | ||
---|---|---|
74–79 | def RegShiftedPred : MCSchedPredicate<RegShiftedBody>; You are inlining the entire body of hasShiftedReg here. You should replace it with this: def RegShiftedPred : MCSchedPredicate<RegShiftedFn>; A TIIPredicate is a special kind of MCInstPredicate. See my other comment in D54777. You should also rewrite RegShiftedFn so that it uses a more readable MCOpcodeSwitchStatement. |
llvm/lib/Target/AArch64/AArch64SchedPredicates.td | ||
---|---|---|
74–79 | Again, I intend to reuse IsArithLogicShiftPred in another patch. |
Only a minor nit. Otherwise, it LGTM. Thanks!
llvm/lib/Target/AArch64/AArch64SchedPredicates.td | ||
---|---|---|
43–44 | Do you still need this? If not, then you can remove it. |
llvm/lib/Target/AArch64/AArch64SchedPredicates.td | ||
---|---|---|
43–44 | Will be using it shortly for Exynos. |
Do you still need this? If not, then you can remove it.