[PATCH] D53643: [TargetLowering] Add SimplifyDemandedBitsForTargetNode callback + add PMULDQ/PMULUDQ handling

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 24 06:47:56 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, efriedma, andreadb, mkazantsev.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D53643

Files:
  include/llvm/CodeGen/TargetLowering.h
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/CodeGen/X86/combine-pmuldq.ll
  test/CodeGen/X86/urem-seteq-vec-nonsplat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53643.170872.patch
Type: text/x-patch
Size: 14317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181024/dd32368d/attachment-0001.bin>


More information about the llvm-commits mailing list