On 07/06/2015 02:28 PM, Prathamesh Kulkarni wrote:
Hi,
The attached patch moves pattern a * (1 << b) -> a << b.
Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
OK for trunk if testing passes ?
Thank you,
Prathamesh
ChangeLog.txt
2015-07-06 Prathamesh Kulkarni<prathamesh.kulka...@linaro.org>
* fold-const.c (fold_binary_loc): Remove pattern a * 1 << b -> a << b.
* match.pd (a * 1 << b -> a << b): New pattern.
testsuite/
* gcc.dg/tree-ssa/fold-shiftmult.c: New test-case.
OK assuming testing passes.
jeff