[llvm-commits] [llvm] r60014 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Duncan Sands
baldrick at free.fr
Tue Nov 25 01:00:53 PST 2008
Hi Bill,
> + SDValue LHSPos = DAG.getSetCC(OType, LHS, Zero, ISD::SETGE);
> + SDValue RHSPos = DAG.getSetCC(OType, RHS, Zero, ISD::SETGE);
> + SDValue And1 = DAG.getNode(ISD::AND, OType, LHSPos, RHSPos);
can't you just do: overflowed = (LHSPos == RHSPos) && (LHSPos != SumPos)?
(Positive means >= 0).
Ciao,
Duncan.
More information about the llvm-commits
mailing list