[X86][BMI1]: X86DAGToDAGISel: select BEXTR from x & ((1 << nbits) + (-1)) pattern
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 22 Oct 2018 13:54:17 +0000 (13:54 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 22 Oct 2018 13:54:17 +0000 (13:54 +0000)
commit13c5ab2e27ad72a946be00adfc13f3ac310493f8
tree8283ed0863d42dbd1823d63c19a7ba88ce146e7b
parent7eae99999d42384b57dfdd6437032b7450dbc265
[X86][BMI1]: X86DAGToDAGISel: select BEXTR from  x & ((1 << nbits) + (-1))  pattern

Summary:
Trivial continuation of D52304.
While this pattern is not canonical, we do select it in the BZHI case,
so this should not be any different.

Reviewers: RKSimon, craig.topper, spatel

Reviewed By: RKSimon

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D52348

llvm-svn: 344902
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/test/CodeGen/X86/extract-bits.ll
llvm/test/CodeGen/X86/extract-lowbits.ll