PR tree-optimization/45059
commitb2d33090f5c98fd727c577903a82869b8658d8b9
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Aug 2010 09:36:35 +0000 (25 09:36 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Aug 2010 09:36:35 +0000 (25 09:36 +0000)
tree7dc15e1ccdd513b47f3fd2d18beb61f0a3bf957d
parent6e4376d7a6a8b06f71794f6dc620dc3dcac9620d
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.

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