This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Refactor the scheduling predicates (3/3) (NFC)
ClosedPublic

Authored by evandro on Nov 21 2018, 5:05 PM.

Details

Summary

Refactor the scheduling predicates based on MCInstPredicate. In this case, AArch64InstrInfo::hasExtendedReg().

Diff Detail

Repository
rL LLVM

Event Timeline

evandro created this revision.Nov 21 2018, 5:05 PM
andreadb added inline comments.Nov 22 2018, 3:26 AM
llvm/lib/Target/AArch64/AArch64SchedPredicates.td
78–83 ↗(On Diff #174999)

You should just use a MCOpcodeSwitchStatement.

81 ↗(On Diff #174999)

This should be:

def RegExtendedPred : MCSchedPredicate<RegExtendedFn>;
evandro marked 4 inline comments as done.Nov 23 2018, 2:55 PM
evandro added inline comments.
llvm/lib/Target/AArch64/AArch64SchedPredicates.td
78–83 ↗(On Diff #174999)

Again, IsArithExtPred should be reused in an upcoming patch.

evandro updated this revision to Diff 175147.Nov 23 2018, 4:25 PM
evandro marked an inline comment as done.
andreadb accepted this revision.Nov 23 2018, 4:48 PM

LGTM. Thanks Evandro!

This revision is now accepted and ready to land.Nov 23 2018, 4:48 PM
This revision was automatically updated to reflect the committed changes.