[PATCH] D48789: [X86] Replace (32/64 - n) shift amounts with (neg n) since the shift amount is masked in hardware

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 22 12:18:34 PDT 2018


craig.topper updated this revision to Diff 162025.
craig.topper added a comment.

Rebase and fix the CSE handling.


https://reviews.llvm.org/D48789

Files:
  lib/Target/X86/X86ISelDAGToDAG.cpp
  test/CodeGen/X86/clear-lowbits.ll
  test/CodeGen/X86/extract-lowbits.ll
  test/CodeGen/X86/schedule-x86-64-shld.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48789.162025.patch
Type: text/x-patch
Size: 34058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180822/53cb2bf6/attachment.bin>


More information about the llvm-commits mailing list