This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: List of simplifications we should perform



> 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"
  )


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]