Commit 0e73e55
[TableGen] Avoid evaluating RHS of a BinOp until short-circuit is complete (llvm#144021)
This patch adds an even more aggressive short-circuit on `!and` and
`!or` that completely avoids the evaluation of RHS operand until short
circuiting decisions are made.1 parent 6c8055d commit 0e73e55
2 files changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1557 | 1557 | | |
1558 | 1558 | | |
1559 | 1559 | | |
1560 | | - | |
1561 | | - | |
| 1560 | + | |
1562 | 1561 | | |
1563 | 1562 | | |
1564 | 1563 | | |
| |||
1570 | 1569 | | |
1571 | 1570 | | |
1572 | 1571 | | |
1573 | | - | |
| 1572 | + | |
1574 | 1573 | | |
1575 | 1574 | | |
1576 | 1575 | | |
1577 | 1576 | | |
1578 | 1577 | | |
1579 | 1578 | | |
1580 | | - | |
1581 | | - | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
1582 | 1583 | | |
1583 | 1584 | | |
1584 | 1585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
0 commit comments