This is an archive of the discontinued LLVM Phabricator instance.

[MI scheduler] Fix VADD and VSUB in cortex-a57 model
ClosedPublic

Authored by evgeny777 on Nov 20 2017, 7:39 AM.

Details

Summary

The "VADD" regex incorrectly captures VADDfq and other vector floating-point adds, which have 5 cycles latency instead of 3.

Diff Detail

Repository
rL LLVM

Event Timeline

evgeny777 created this revision.Nov 20 2017, 7:39 AM
javed.absar added inline comments.Nov 20 2017, 9:43 AM
test/CodeGen/ARM/cortex-a57-misched-vadd.ll
3 ↗(On Diff #123593)

Please add CHECK-LABEL to separate the tests for the two functions below

evgeny777 updated this revision to Diff 123740.Nov 21 2017, 1:59 AM
evgeny777 retitled this revision from [MI scheduler] Fix VADD in cortex-a57 model to [MI scheduler] Fix VADD and VSUB in cortex-a57 model.

Addressed review comments. Also added fix for VSUB, which was also broken.

javed.absar accepted this revision.Nov 21 2017, 2:24 AM

Thanks for this.

This revision is now accepted and ready to land.Nov 21 2017, 2:24 AM
This revision was automatically updated to reflect the committed changes.