[PATCH] D53521: [X86][BMI1] X86DAGToDAGISel: select BEXTR from x << (32 - y) >> (32 - y) pattern

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 22 12:43:34 PDT 2018


lebedev.ri created this revision.
lebedev.ri added reviewers: RKSimon, craig.topper.
lebedev.ri added dependencies: D52348: [X86][BMI1]: X86DAGToDAGISel: select BEXTR from  x & ((1 << nbits) + (-1))  pattern, D48491: [X86] Select BEXTR when there is only BMI1..

Continuation of https://reviews.llvm.org/D52348.

We also get the `c) x &  (-1 >> (32 - y))` pattern here, because of the https://reviews.llvm.org/D48768.
I will add extra-uses into those tests and follow-up with a patch to handle those patterns too.


Repository:
  rL LLVM

https://reviews.llvm.org/D53521

Files:
  lib/Target/X86/X86ISelDAGToDAG.cpp
  lib/Target/X86/X86InstrInfo.td
  test/CodeGen/X86/extract-bits.ll
  test/CodeGen/X86/extract-lowbits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53521.170477.patch
Type: text/x-patch
Size: 47338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/863521ed/attachment.bin>


More information about the llvm-commits mailing list