Re: Fix simplify-rtx losing side effects in operand of IOR

2012-08-08 Thread Richard Sandiford
"Joseph S. Myers" writes: > 2012-08-08 Joseph Myers > > * simplify-rtx.c (simplify_binary_operation_1): Do not simplify > IOR to a constant if one operand has side effects. OK, thanks. Richard

Fix simplify-rtx losing side effects in operand of IOR

2012-08-08 Thread Joseph S. Myers
simplify-rtx.c:simplify_binary_operation_1 simplifies certain cases of IOR to constants, but fails to check when doing so that it hasn't lost side effects in the nonconstant operand. This can cause wrong code generation (when called from combine) in certain cases where the constant operand only be