This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add support for matching paddus patterns where one of the vectors is a constant.
ClosedPublic

Authored by craig.topper on Aug 19 2018, 6:24 PM.

Details

Summary

InstCombine mucks these up a bit. So we need to do some additional pattern matching to fix it. There are a still a few special cases not handled, but this covers the general case.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Aug 19 2018, 6:24 PM

Please can you commit paddusb.ll with current codegen and rebase?

Rebase after committing test cases

RKSimon accepted this revision.Aug 27 2018, 5:42 AM

LGTM - cheers

This revision is now accepted and ready to land.Aug 27 2018, 5:42 AM
This revision was automatically updated to reflect the committed changes.