This is an archive of the discontinued LLVM Phabricator instance.

[CostModel][X86][ARM] Teach getCastInstrCost to include the splitting factor when handling operations that type legalize to the same number of subvectors or scalar components
ClosedPublic

Authored by craig.topper on Apr 24 2020, 12:22 PM.

Details

Summary

Previously, we just always returned 1. But that ignores that we have to do the operation for each subvector or scalar component.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 24 2020, 12:22 PM
RKSimon accepted this revision.Apr 24 2020, 12:54 PM

LGTM - cheers

This revision is now accepted and ready to land.Apr 24 2020, 12:54 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2020, 2:06 PM