[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
Thu Sep 28 03:15:25 PDT 2017


pacxx planned changes to this revision.
pacxx added a comment.

I submitted the (old) code generation for vector-mul.ll in https://reviews.llvm.org/D38350

VT can also be a scalar type. Because of that I opt out on non-vector types since some backends including x86 already handle those multiplications.

I will polish the code as requested.


https://reviews.llvm.org/D37896





More information about the llvm-commits mailing list