Commit 4a16816
committed
[ValueTracking] Fix bug of using wrong condition for deducing KnownBits
Fixes #124275
Bug was introduced by #114689
Now that computeKnownBits supports breaking out of recursive Phi
nodes, `IncValue` can be an operand of a different Phi than `P`. This
breaks the previous assumptions we had when using the possibly
condition at `CxtI` to constrain `IncValue`.1 parent be7ef32 commit 4a16816
File tree
2 files changed
+19
-7
lines changed- llvm
- lib/Analysis
- test/Analysis/ValueTracking
2 files changed
+19
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
| 597 | + | |
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
| 602 | + | |
| 603 | + | |
601 | 604 | | |
602 | 605 | | |
603 | 606 | | |
| |||
610 | 613 | | |
611 | 614 | | |
612 | 615 | | |
613 | | - | |
| 616 | + | |
614 | 617 | | |
615 | 618 | | |
616 | 619 | | |
617 | 620 | | |
| 621 | + | |
| 622 | + | |
618 | 623 | | |
619 | 624 | | |
620 | 625 | | |
| |||
1673 | 1678 | | |
1674 | 1679 | | |
1675 | 1680 | | |
| 1681 | + | |
1676 | 1682 | | |
1677 | | - | |
| 1683 | + | |
1678 | 1684 | | |
1679 | 1685 | | |
1680 | 1686 | | |
| |||
1705 | 1711 | | |
1706 | 1712 | | |
1707 | 1713 | | |
1708 | | - | |
| 1714 | + | |
| 1715 | + | |
1709 | 1716 | | |
1710 | | - | |
| 1717 | + | |
1711 | 1718 | | |
1712 | 1719 | | |
1713 | 1720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
1120 | | - | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1121 | 1123 | | |
1122 | 1124 | | |
| 1125 | + | |
1123 | 1126 | | |
1124 | 1127 | | |
1125 | | - | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1126 | 1131 | | |
1127 | 1132 | | |
1128 | 1133 | | |
| |||
0 commit comments