re PR tree-optimization/41661 (ICE due to IPCP trying to create/fold a REAL typed...
authorMartin Jambor <mjambor@suse.cz>
Tue, 13 Oct 2009 11:31:08 +0000 (13:31 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 13 Oct 2009 11:31:08 +0000 (13:31 +0200)
commitc4e5fe4b51a5228f734ddf76e680dd9088d59a55
treec366eb26ee9527581ae826e651347c89c8a66cbd
parent3525f49b5a8794cd0b553a53f6d1617cbb6b8c55
re PR tree-optimization/41661 (ICE due to IPCP trying to create/fold a REAL typed comparision)

2009-10-13  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/41661
* ipa-prop.c (compute_complex_pass_through): Allow only operations
that are tcc_comparisons or do not change the type in any
un-usleless way.
* ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
folding tcc_comparison operations.

* testsuite/gcc.c-torture/compile/pr41661.c: New test.

From-SVN: r152702
gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr41661.c [new file with mode: 0644]