OSDN Git Service

2009-10-13 Martin Jambor <mjambor@suse.cz>
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Oct 2009 11:31:08 +0000 (11:31 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Oct 2009 11:31:08 +0000 (11:31 +0000)
commitdf017114b7c46d7cb9f6a51888a7939a5767047c
treec366eb26ee9527581ae826e651347c89c8a66cbd
parent37531c6560b357b092ff7a94f70b2cba985a8d0b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152702 138bc75d-0d04-0410-961f-82ee72b054a4
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]