This is an archive of the discontinued LLVM Phabricator instance.

[X86][AVX] Only share broadcasts of different widths from the same SDValue of the same SDNode (PR48215)
ClosedPublic

Authored by RKSimon on Nov 18 2020, 6:56 AM.

Details

Summary

D57663 allowed us to reuse broadcasts of the same scalar value by extracting low subvectors from the widest type.

Unfortunately we weren't ensuring the broadcasts were from the same SDValue, just the same SDNode - which failed on multiple-value nodes like ISD::SDIVREM

FYI: I intend to request this be merged into the 11.x release branch.

Diff Detail

Event Timeline

RKSimon created this revision.Nov 18 2020, 6:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2020, 6:56 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon requested review of this revision.Nov 18 2020, 6:56 AM
wristow accepted this revision.Nov 18 2020, 9:55 AM

LGTM

This revision is now accepted and ready to land.Nov 18 2020, 9:55 AM
This revision was landed with ongoing or failed builds.Nov 19 2020, 4:16 AM
This revision was automatically updated to reflect the committed changes.