Commit 4ec0377
committed
for signed overflowing remainder, delay comparing lhs with MIN
Since the wrapped remainder is going to be 0 for all cases when the rhs is -1,
there is no need to divide in this case. Comparing the lhs with MIN is only done
for the overflow bool. In particular, this results in better code generation for
wrapping remainder, which discards the overflow bool completely.1 parent 074f636 commit 4ec0377
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
| 1536 | + | |
| 1537 | + | |
1539 | 1538 | | |
1540 | 1539 | | |
1541 | 1540 | | |
| |||
1565 | 1564 | | |
1566 | 1565 | | |
1567 | 1566 | | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
| 1567 | + | |
| 1568 | + | |
1571 | 1569 | | |
1572 | 1570 | | |
1573 | 1571 | | |
| |||
0 commit comments