diff options
author | Bin Cheng <bin.cheng@arm.com> | 2015-09-15 02:12:47 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2015-09-15 02:12:47 +0000 |
commit | f468efc59ba95f1e51f2537928caa71f130400ce (patch) | |
tree | a85653b47673daf35c951a786e15ed78c7a232d1 /gcc | |
parent | 23997c53b8f7696d6ba484913835b19287f96f82 (diff) | |
download | gcc-f468efc59ba95f1e51f2537928caa71f130400ce.zip gcc-f468efc59ba95f1e51f2537928caa71f130400ce.tar.gz gcc-f468efc59ba95f1e51f2537928caa71f130400ce.tar.bz2 |
tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip unnecessary type conversion in op1.
* tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
unnecessary type conversion in op1.
From-SVN: r227776
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 328675a..16862d0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-15 Bin Cheng <bin.cheng@arm.com> + + * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip + unnecessary type conversion in op1. + 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org> * shrink-wrap.c (requires_stack_frame_p): Fix formatting. diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 723a9f7..ae14e8b 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -3889,6 +3889,7 @@ get_shiftadd_cost (tree expr, machine_mode mode, comp_cost cost0, if (!(m >= 0 && m < maxm)) return false; + STRIP_NOPS (op1); mult_in_op1 = operand_equal_p (op1, mult, 0); as_cost = add_cost (speed, mode) + shift_cost (speed, mode, m); |