[PATCH] D37896: [DAGCombine] Resolving PR34474 by transforming mul(x, 2^c +/- 1) -> sub/add(shl(x, c) x) for any type including vector types

Michael Haidl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 1 07:14:22 PDT 2017


pacxx updated this revision to Diff 117281.
pacxx added a comment.

diff with context


https://reviews.llvm.org/D37896

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/aarch64-smull.ll
  test/CodeGen/ARM/2012-08-23-legalize-vmull.ll
  test/CodeGen/ARM/vmul.ll
  test/CodeGen/Hexagon/vect/vect-cst-v4i32.ll
  test/CodeGen/Hexagon/vect/vect-vsplatb.ll
  test/CodeGen/Hexagon/vect/vect-vsplath.ll
  test/CodeGen/X86/combine-shl.ll
  test/CodeGen/X86/masked_gather_scatter.ll
  test/CodeGen/X86/vector-idiv-sdiv-128.ll
  test/CodeGen/X86/vector-idiv-sdiv-256.ll
  test/CodeGen/X86/vector-idiv-sdiv-512.ll
  test/CodeGen/X86/vector-idiv-udiv-128.ll
  test/CodeGen/X86/vector-idiv-udiv-256.ll
  test/CodeGen/X86/vector-idiv-udiv-512.ll
  test/CodeGen/X86/vector-mul.ll
  test/CodeGen/X86/vselect-avx.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37896.117281.patch
Type: text/x-patch
Size: 107017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171001/e2d0a3ac/attachment-0001.bin>


More information about the llvm-commits mailing list