This is an archive of the discontinued LLVM Phabricator instance.

[X86][AVX] Attempt to share broadcasts of different widths (PR39454)
ClosedPublic

Authored by RKSimon on Feb 3 2019, 12:00 PM.

Details

Summary

If we have broadcasts of different vector widths, keep the longest vector width and extract subvectors for the shorter vectors (which should be free).

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Feb 3 2019, 12:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2019, 12:00 PM
spatel added inline comments.Feb 4 2019, 8:52 AM
lib/Target/X86/X86ISelLowering.cpp
32075–32078 ↗(On Diff #184972)

Use range loop?

for (SDNode *Use : Src->uses())
RKSimon updated this revision to Diff 185072.Feb 4 2019, 9:26 AM

add for range loop

spatel accepted this revision.Feb 4 2019, 2:44 PM

LGTM

This revision is now accepted and ready to land.Feb 4 2019, 2:44 PM
This revision was automatically updated to reflect the committed changes.