Displaying 2 results from an estimated 2 matches for "prodint".
Did you mean:
proding
2013 May 06
3
[LLVMdev] Do we abuse the "nsw" flag
...with reference input.
The root cause is that the compiler mistakenly optimizes expr "x * y
/ y" into x where the x*y is blindly
flagged with nsw without any analysis.
The preproceeded code is excerpted bellow:
cat -n integer.i
---------------------------------
2361 TypHandle ProdInt ( hdL, hdR )
2362 TypHandle hdL, hdR;
2363 {
....
2373 if ( (int)hdL & (int)hdR & 1 ) {
2374
2375
2376 i = ((int)hdL - 1) * ((int)hdR >> 1); /* !!! No barbaric
NSW, please !!! */
2377 if ( ((int)hdR >> 1) == 0 || i / ((int)hdR >> 1) ==
((int)hdL-...
2013 May 06
0
[LLVMdev] Do we abuse the "nsw" flag
...root cause is that the compiler mistakenly optimizes expr "x * y / y" into x where the x*y is blindly
> flagged with nsw without any analysis.
>
> The preproceeded code is excerpted bellow:
>
> cat -n integer.i
> ---------------------------------
> 2361 TypHandle ProdInt ( hdL, hdR )
> 2362 TypHandle hdL, hdR;
> 2363 {
> ....
> 2373 if ( (int)hdL & (int)hdR & 1 ) {
> 2374
> 2375
> 2376 i = ((int)hdL - 1) * ((int)hdR >> 1); /* !!! No barbaric NSW, please !!! */
> 2377 if ( ((int)hdR >> 1) == 0 || i...