re PR tree-optimization/37662 (ice: tree check: expected ssa_name, have integer_cst...
commit001003c265ed1f7d8ce6847a340e3141b64d72a7
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 1 Oct 2008 12:22:17 +0000 (1 12:22 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Wed, 1 Oct 2008 12:22:17 +0000 (1 12:22 +0000)
treeaddc07606e7868c2c10e5917c7b181b4897efeab
parent9e81dbc753bb36f496b3566ad5d80ccced070fc5
re PR tree-optimization/37662 (ice: tree check: expected ssa_name, have integer_cst in get_value_range, at tree-vrp.c:612)

2008-09-30  Paolo Bonzini  <bonzini@gnu.org>

PR tree-optimization/37662
* tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
commutative binary operation if they are in the wrong order and
fold_build2 produces non-GIMPLE.

From-SVN: r140809
gcc/ChangeLog
gcc/tree-ssa-ccp.c