[PATCH GCC]Look into unnecessary conversion when checking mult_op in get_shiftadd_cost

Bin Cheng bin.cheng@arm.com
Wed Sep 2 03:50:00 GMT 2015

When calling get_shiftadd_cost, the mult_op is stripped at caller places.
We should look into unnecessary conversion in op1 before checking equality,
otherwise it computes wrong shiftadd cost.  This patch picks this small
issue up.

Bootstrap and test on x86_64 and aarch64 along with other patches.  Is it


2015-08-31  Bin Cheng  <bin.cheng@arm.com>

	* tree-ssa-loop-ivopts.c (get_shiftadd_cost): Look into
	unnecessary type conversion for OP1.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr66388_3-20150824.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150902/348745f1/attachment.txt>

More information about the Gcc-patches mailing list