This is an archive of the discontinued LLVM Phabricator instance.

[TargetLowering] Add SimplifyDemandedBitsForTargetNode callback + add PMULDQ/PMULUDQ handling
ClosedPublic

Authored by RKSimon on Oct 24 2018, 6:47 AM.

Details

Summary

This patch is in 2 parts (which would be committed separately):

1 - Add the SimplifyDemandedBitsForTargetNode callback to handle target nodes.

2 - Add X86 SimplifyDemandedBitsForTargetNode and use it to simplify PMULDQ/PMULUDQ target nodes. This enables us to repeatedly simplify the node's arguments after the previous approach had to be reverted due to PR39398.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Oct 24 2018, 6:47 AM
This revision is now accepted and ready to land.Oct 24 2018, 10:31 AM
This revision was automatically updated to reflect the committed changes.