This is an archive of the discontinued LLVM Phabricator instance.

[X86][CostModel] Correct the costs for truncate to a mask register with avx512
ClosedPublic

Authored by craig.topper on Apr 27 2020, 5:23 PM.

Details

Summary

I've modified isTruncateFree to get an accurate cost for types that need to be split. I'm planning to look into fixing it for all vectors, but need more cost cleanups first.

Diff Detail

Event Timeline

craig.topper created this revision.Apr 27 2020, 5:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2020, 5:23 PM
Herald added a subscriber: hiraditya. · View Herald Transcript

Upload the complete patch.

RKSimon accepted this revision.Apr 28 2020, 3:49 AM

LGTM as a first step

This revision is now accepted and ready to land.Apr 28 2020, 3:49 AM
This revision was automatically updated to reflect the committed changes.