[PATCH] D47681: [DAGCombiner] Bug 31275- Extract a shift from a constant mul or udiv if a rotate can be formed

Sam Conrad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 17 18:24:53 PDT 2018


sameconrad updated this revision to Diff 151651.
sameconrad added a comment.

Update to also handle cases where we need to extract a smaller shift from a shl/srl.


https://reviews.llvm.org/D47681

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/rotate-extract.ll
  test/CodeGen/X86/rotate-extract.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47681.151651.patch
Type: text/x-patch
Size: 19024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180618/ba4aa12c/attachment.bin>


More information about the llvm-commits mailing list