> One could even take this a step further and provide an interface
> to allow people to write optimizer in higher-level languages. I'm
> not sure how practical would that be, though.
(define-optimization "neg-neg"
[(set (match-operand:SI 0 "" "")
(neg:SI (neg:SI (match-operand:SI 1 "" ""))))]
"condition"
[(set (match-dup 0) (match-dup 1))]
"prep-statement"
)