[llvm-commits] [llvm] r56076 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/div-cmp-overflow.ll

Duncan Sands baldrick at free.fr
Thu Sep 11 01:25:11 PDT 2008


Hi Dan,

> +/// SubWithOverflow - Compute Result = In1-In2, returning true if the result
...
> +  Result = cast<ConstantInt>(Add(In1, In2));

are you sure you want to add In1 and In2, and not subtract them?

Ciao,

Duncan.



More information about the llvm-commits mailing list