This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add instruction schedule for Zbc extension and Zbs extension
ClosedPublic

Authored by Jimerlife on Jan 17 2022, 10:49 PM.

Details

Summary

Zbc extension:
CLMUL/CLMULR/CLMULH are grouped together, defined one schedule class.

Zbs extension:
BCLR/BSET/BINV/BEXT are grouped together, defined one schedule class.
BCLRI/BSETI/BINVI/BEXTI are grouped together, defined one schedule class.

Diff Detail

Event Timeline

Jimerlife created this revision.Jan 17 2022, 10:49 PM
Jimerlife requested review of this revision.Jan 17 2022, 10:49 PM
craig.topper added inline comments.Jan 17 2022, 10:52 PM
llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
369

There should only be one ReadSingleBitImm. There's only one source register.

update BCLRI/BSETI/BINVI/BEXTI schedule operand

Jimerlife marked an inline comment as done.Jan 17 2022, 11:02 PM
This revision is now accepted and ready to land.Jan 17 2022, 11:03 PM
This revision was landed with ongoing or failed builds.Jan 17 2022, 11:32 PM
This revision was automatically updated to reflect the committed changes.