Comments

Hi!
In some cases the operands of the comparison won't have the desired type,
e.g. if there were any (useless) differences in types of the operands.
Having a NOP_EXPR as gimple comparison's operand is invalid though.
Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux.
Ok for trunk?
2010-08-24 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/45059
* tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
type conversions from newop{1,2}. Assert t is a comparison and
newop{1,2} after the stripping are gimple vals.
* gcc.c-torture/compile/pr45059.c: New test.
Jakub