[llvm-commits] llvm-gcc: sign matters for EXACT_DIV_EXPR
Chris Lattner
clattner at apple.com
Mon Jan 15 09:36:10 PST 2007
Applied, thanks!
On Jan 15, 2007, at 9:09 AM, Duncan Sands wrote:
> EXACT_DIV_EXPR can be used on signed operands, so it is wrong to
> always
> turn it into UDiv. Since EXACT_DIV_EXPR always gives the same
> result as
> TRUNC_DIV_EXPR (it exists in gcc because it might give that result
> faster
> on some targets, not because it gives a different result), it is
> pointless
> to distinguish between the two in LLVM.
More information about the llvm-commits
mailing list