This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Add FP16 instructions to isAssociativeAndCommutative
ClosedPublic

Authored by kawashima-fj on Dec 11 2022, 11:04 PM.

Details

Summary

This is one of patch series split from D138107.

-mcpu= in llvm/test/CodeGen/AArch64/machine-combiner.ll is changed
to neoverse-n2 to use FP16 and SVE/SVE2 instructions. By this, the
register allocation and/or instruction scheduling are slightly changed
and some existing CHECK lines need to be updated.

Diff Detail

Event Timeline

kawashima-fj created this revision.Dec 11 2022, 11:04 PM
kawashima-fj requested review of this revision.Dec 11 2022, 11:04 PM
Matt added a subscriber: Matt.Dec 12 2022, 12:31 PM
dmgreen accepted this revision.Dec 16 2022, 8:52 AM
dmgreen added reviewers: SjoerdMeijer, labrinea.

Sorry for the delay. FP16 instructions sound good.

llvm/test/CodeGen/AArch64/machine-combiner.ll
2–3

It may be better to pick neoverse-n2, as that is the scheduling model that will be used for cortex-a710.

This revision is now accepted and ready to land.Dec 16 2022, 8:52 AM
kawashima-fj edited the summary of this revision. (Show Details)

As per @dmgreen's comment, change -mcpu=cortex-a710 to -mcpu=neoverse-n2.

kawashima-fj marked an inline comment as done.Dec 19 2022, 6:23 AM
This revision was landed with ongoing or failed builds.Dec 20 2022, 6:48 AM
This revision was automatically updated to reflect the committed changes.