[PATCH] D53575: [X86][BMI1] X86DAGToDAGISel: select BEXTR from x & (-1 >> (32 - y)) pattern

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 23 07:46:47 PDT 2018


lebedev.ri created this revision.
lebedev.ri added reviewers: craig.topper, RKSimon.

The final pattern.
There is no test changes:

- We are looking for the pattern with one-use of it's mask,
- If the mask is one-use, https://reviews.llvm.org/D48768 will unfold it into pattern d.
- Thus, the tests have extra-use on the mask.
- Thus, only the BMI2 BZHI can be tested, and it already worked.
- So there is no BMI1 test coverage, we just assume it works since it uses the same codepath.


Repository:
  rL LLVM

https://reviews.llvm.org/D53575

Files:
  lib/Target/X86/X86ISelDAGToDAG.cpp
  lib/Target/X86/X86InstrInfo.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53575.170642.patch
Type: text/x-patch
Size: 5427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181023/08d3caf4/attachment.bin>


More information about the llvm-commits mailing list