[LLVMdev] folding x * 0 = 0

Dustin Laurence dllaurence at dslextreme.com
Wed Mar 3 21:30:09 PST 2010


On 03/03/2010 09:25 PM, Paul Davey wrote:
> By the way:
>    x * 1 = 1
> is one optimisation I  never want to see in llvm please.

What about the well-known simplification

     log(x) = 10?

(Sorry, it's an order-of-magnitude physics joke.)

7x57



More information about the llvm-dev mailing list