re PR middle-end/15825 (if-cvt optimisation patch noce_try_sign_mask breaks apple...
authorRoger Sayle <roger@eyesopen.com>
Fri, 25 Jun 2004 18:40:07 +0000 (18:40 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 25 Jun 2004 18:40:07 +0000 (18:40 +0000)
commit0fe0c61499096286867bcee0df3dfbba3d3f7cba
treef5b099c90d08d909541a996d27adf8816b06dfcd
parent71f85957b6ec652431ca32b7de602167180b7fe0
re PR middle-end/15825 (if-cvt optimisation patch noce_try_sign_mask breaks apple-ppc-darwin port)

PR middle-end/15825
* ifcvt.c (unshare_ifcvt_sequence): Rename to end_ifcvt_sequence.
Use get_isns and end_sequence instead of accepting a seq argument.
Scan the instruction sequence for unrecognizable or jump insns.
(noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
noce_try_sign_mask): Use end_ifcvt_sequence to factor common code.

* gcc.dg/pr15825-1.c: New test case.

From-SVN: r83671
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr15825-1.c [new file with mode: 0644]