re PR tree-optimization/64183 (Complete unroll doesn't happen for a while-loop)
authorMarek Polacek <polacek@redhat.com>
Sat, 6 Dec 2014 13:10:31 +0000 (13:10 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sat, 6 Dec 2014 13:10:31 +0000 (13:10 +0000)
commit7fb66c15276446a48da02af39fb5d3e363ef8e32
tree14338b4c19e81b2d5f62b0e78a9d232cce2e975b
parentc7c816408314bd7e971543bfa91250d464e45540
re PR tree-optimization/64183 (Complete unroll doesn't happen for a while-loop)

PR tree-optimization/64183
* c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
shift-expression if it is integer_type_node.  Use types_compatible_p.

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

From-SVN: r218447
gcc/c-family/ChangeLog
gcc/c-family/c-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr64183.c [new file with mode: 0644]