This is an archive of the discontinued LLVM Phabricator instance.

[SLP][X86]Fix the cost of reused gathers/buildvectors and floats insert.
ClosedPublic

Authored by ABataev on Apr 20 2023, 6:47 AM.

Details

Summary

There are 2 problems in the cost estimation for buildvector/gather.

  1. If the buildvector/gather node is the same as another one node, need to estimate the cost of this node as 0.
  2. The cost of inserting float point register to non-poison vector is not 0, it should not be considered free.

Diff Detail

Event Timeline

ABataev created this revision.Apr 20 2023, 6:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2023, 6:47 AM
ABataev requested review of this revision.Apr 20 2023, 6:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2023, 6:47 AM
RKSimon accepted this revision.Apr 20 2023, 8:11 AM

LGTM

This revision is now accepted and ready to land.Apr 20 2023, 8:11 AM