Add const_negate() which negates a Const node.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 13 Sep 2007 12:22:55 +0000 (12:22 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 13 Sep 2007 12:22:55 +0000 (12:22 +0000)
commit42b00d37c6c9b6c4c18b36eddac9438a95bf2680
tree56f40ecfbda6cd313cceb7b3250aba3c772fa2f5
parent2371b8fc6ac91c910f501c659871892d1f6d1d06
Add const_negate() which negates a Const node.
Implement
- const - (a - b) -> (b - a) + -const
- const1 - (a * const2) -> (a * -const2) + -const1

[r15779]
ir/ir/iropt.c