[PATCH] D37896: [DAGCombine] Resolving PR34474 by transforming mul(x, 2^c +/- 1) -> sub/add(shl(x, c) x) for any type including vector types
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 19 09:22:16 PDT 2018
spatel added a comment.
The x86 vector motivating examples for this patch are handled by https://reviews.llvm.org/rL342554. That adds a target hook, so targets can decide when they'd like to enable the transform. TODO comments note possible extensions that would handle what this patch was aiming to do, so I think this can be abandoned.
https://reviews.llvm.org/D37896
More information about the llvm-commits
mailing list