[Beignet] [PATCH 1/2] Backend: Add optimization for negtive modifier

Matt Turner mattst88 at gmail.com
Mon May 22 18:46:14 UTC 2017


On Wed, May 17, 2017 at 1:20 AM, rander.wang <rander.wang at intel.com> wrote:
>          LLVM transform Mad(a, -b, c) to
>          Add b, -b, 0
>          Mad val, a, b, c

I think you mean that LLVM translates

>          Add b, -b, 0
>          Mad val, a, b, c

to

> Mad(a, -b, c)

As it is written in your summary, it says that LLVM makes the inverse
transformation.


More information about the Beignet mailing list