[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
Sat Jun 30 11:04:12 PDT 2018


lebedev.ri updated this revision to Diff 153630.
lebedev.ri marked an inline comment as done.
lebedev.ri added a comment.

As suggested, restrict transform of 64-bit case to 64-bit targets.


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
  lib/Target/X86/X86InstrInfo.td
  test/CodeGen/X86/clear-highbits.ll
  test/CodeGen/X86/clear-lowbits.ll

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


More information about the llvm-commits mailing list