Displaying 2 results from an estimated 2 matches for "032ffc9f".
2011 Jun 22
0
[LLVMdev] ConstantRange::sub
...ewmax = max - min --> newupper - 1 = ((getUpper() - 1) -
> Other.getLower(). min = lower, while max = upper - 1.
> >
> > Nick
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110622/032ffc9f/attachment.html>
2011 Jun 22
2
[LLVMdev] ConstantRange::sub
Sure. I will submit a patch.
BTW, what's the difference between the bounds I was expecting
APInt NewLower = getLower() - Other.getUpper() + 1;
APInt NewUpper = getUpper() - Other.getLower();
and the two you mentioned
NewLower = Lower - (Upper-1)
NewUpper = (Upper-1) - Lower + 1
They look equivalent to me. Did I miss anything? Thanks.
- xi
On Jun 22, 2011, at 2:39 PM, Nick Lewycky