Re: [PR71408] - Fix wrong code at -Os and above

2016-06-06 Thread Richard Biener
On Sun, Jun 5, 2016 at 12:54 PM, kugan wrote: > Hi All, > > For the testcase in PR71408 zero_one_operation seems still broken. In > handling NEGATE_EXPR, as part of undistribute_ops_list, in > zero_one_operation, we are doing propagate_op_to_single_use (op,

[PR71408] - Fix wrong code at -Os and above

2016-06-05 Thread kugan
Hi All, For the testcase in PR71408 zero_one_operation seems still broken. In handling NEGATE_EXPR, as part of undistribute_ops_list, in zero_one_operation, we are doing propagate_op_to_single_use (op, stmt, def); This results in: - _14 = _5 * _12; _15 = (int) _11; _16 = ~_15; _17