[PATCH] D62793: [X86] X86DAGToDAGISel::matchBitExtract(): pattern b: truncation awareness

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 2 10:37:57 PDT 2019


lebedev.ri updated this revision to Diff 202612.
lebedev.ri edited the summary of this revision.
lebedev.ri added a comment.

Rebased, extra test exposed an alternative way to still end up
with unrecognized pattern with truncation, so handle it too.

This resulted in inlining `isBitwiseNot()`, not sure if it would be better to extend it with all that instead?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62793/new/

https://reviews.llvm.org/D62793

Files:
  include/llvm/CodeGen/SelectionDAGNodes.h
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/Target/X86/X86ISelDAGToDAG.cpp
  test/CodeGen/X86/extract-bits.ll
  test/CodeGen/X86/extract-lowbits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62793.202612.patch
Type: text/x-patch
Size: 7912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190602/9f597b9c/attachment.bin>


More information about the llvm-commits mailing list