[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
Sat Jun 2 18:17:55 PDT 2018


sameconrad created this revision.
sameconrad added reviewers: RKSimon, craig.topper.

Attempt to extract a shrl from a udiv or a shl from a mul if this allows a rotate to be formed.  This targets cases where the input to a rotate pattern was a mul or udiv by a constant and InstCombine merged one of the shifts with the op.


Repository:
  rL LLVM

https://reviews.llvm.org/D47681

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

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


More information about the llvm-commits mailing list