[llvm-commits] [llvm] r47244 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/addnegneg.ll

Dale Johannesen dalej at apple.com
Mon Feb 18 09:44:00 PST 2008


On Feb 17, 2008, at 1:03 PM, Chris Lattner wrote:

> Author: lattner
> Date: Sun Feb 17 15:03:36 2008
> New Revision: 47244
>
> URL: http://llvm.org/viewvc/llvm-project?rev=47244&view=rev
> Log:
> Fold (-x + -y) -> -(x+y) which promotes better association, fixing
> the second half of PR2047

This is unsafe for IEEE floating point.  Try x=0, y= -0.




More information about the llvm-commits mailing list