PR tree-optimization/69615
commitccf8d652a7aea15b35ec743efc60b77d35a6a8ae
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jun 2018 07:41:18 +0000 (7 07:41 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jun 2018 07:41:18 +0000 (7 07:41 +0000)
treed71f8f027abe5bec0af61bcbb8445227c585517f
parent7839597861fce8251356fb086df7e718030ab26c
PR tree-optimization/69615
* tree-ssa-reassoc.c (optimize_range_tests_var_bound): If rhs2 is lhs
of a cast from a same precision integral SSA_NAME in a bb dominated
by first_bb, retry with rhs2 set to the rhs1 of the cast.  Don't emit
cast to utype if rhs2 has already a compatible type.

* gcc.dg/tree-ssa/pr69615.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261264 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr69615.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c