[PATCH] D48768: [X86] When have BMI2, prefer shifts to clear low/high bits, rather than variable mask.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 3 11:48:32 PDT 2018


lebedev.ri updated this revision to Diff 153948.
lebedev.ri added a comment.

- Rebased ontop of more tests
- Always transform for x86, unless vector, or 64-bit width non-64-bit target.


Repository:
  rL LLVM

https://reviews.llvm.org/D48768

Files:
  include/llvm/CodeGen/TargetLowering.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/CodeGen/X86/clear-highbits.ll
  test/CodeGen/X86/clear-lowbits.ll
  test/CodeGen/X86/extract-lowbits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48768.153948.patch
Type: text/x-patch
Size: 89955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180703/a447cde9/attachment.bin>


More information about the llvm-commits mailing list