Re: operand swapping in get_expr_operands.

2005-05-04 Thread Andrew MacLeod
On Wed, 2005-05-04 at 11:07, Jeffrey A Law wrote: > On Wed, 2005-05-04 at 10:28 -0400, Andrew MacLeod wrote: > > Why is it we try to swap operands in get_expr_operands, where we are > > otherwise simply parsing not modifying? > > > > /* If it would be profitable to swap the operands, then

Re: operand swapping in get_expr_operands.

2005-05-04 Thread Jeffrey A Law
On Wed, 2005-05-04 at 10:28 -0400, Andrew MacLeod wrote: > Why is it we try to swap operands in get_expr_operands, where we are > otherwise simply parsing not modifying? > > /* If it would be profitable to swap the operands, then do so to >canonicalize the statement, enabling b

operand swapping in get_expr_operands.

2005-05-04 Thread Andrew MacLeod
Why is it we try to swap operands in get_expr_operands, where we are otherwise simply parsing not modifying? /* If it would be profitable to swap the operands, then do so to canonicalize the statement, enabling better optimization. By placing canonicalization of such