This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add support for forming vXi16 PMULH instructions from shifts.
ClosedPublic

Authored by craig.topper on May 9 2020, 6:13 PM.

Details

Summary

We already form PMULH when the shift is truncated. But we can
also do it from just a shift by extending the result.

Unfortunately, I get regressions if I try to replace the truncate
combine with this as we turn the truncate into a more complicated
sequence first. Then we are unable to combine that sequence with
the extend produced at the end of this combine.

Diff Detail

Event Timeline

craig.topper created this revision.May 9 2020, 6:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2020, 6:13 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.May 14 2020, 5:02 AM

LGTM

This revision is now accepted and ready to land.May 14 2020, 5:02 AM
This revision was automatically updated to reflect the committed changes.