[llvm-commits] [llvm] r60399 - in /llvm/trunk/lib: Target/README.txt Transforms/Scalar/InstructionCombining.cpp

Chris Lattner clattner at apple.com
Tue Dec 2 00:18:11 PST 2008


On Dec 2, 2008, at 12:11 AM, Duncan Sands wrote:

> Hi,
>
>> - Remove the buggy -X/C -> X/-C transform. This isn't valid when X  
>> isn't a
>>  constant. If X is a constant, then this is folded elsewhere.
>
> why isn't this valid if X isn't a constant?

It is valid, but if X is a constant, "-X/C" should and does already  
constant fold.

-Chris



More information about the llvm-commits mailing list