Add a rule to transform x .op. (x .op. y) into y .op. (x .op. x) for commutative...
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 18 Jan 2010 01:05:41 +0000 (01:05 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 18 Jan 2010 01:05:41 +0000 (01:05 +0000)
commit73ed3cd4afb2cf0b54a3285cb1e2f6ad3048f8b5
treebe340eb7c829ba776877ac7ff58f5ba18fd039f3
parent802484dd3f5047d512b2496e1647aaed127a1a8c
Add a rule to transform x .op. (x .op. y) into y .op. (x .op. x) for commutative nodes. This finally "fixes" codegen/lea.c and might be usefull for and,or,xor as well.

[r26980]
ir/opt/reassoc.c