Commit 9a3f743
committed
ValueTracking: generalize isNonEqualPHIs
isNonEqualPHIs was originally added in 3fd64cc ([ValueTracking] Handle
two PHIs in isKnownNonEqual()), but as the new test case shows, it is
not powerful enough. Generalize it, removing the APInt-specific
comparison, and extend isKnownNonEqual to handle the case when one of
the operands is a constant.1 parent 3d34053 commit 9a3f743
File tree
2 files changed
+32
-15
lines changed- llvm
- lib/Analysis
- test/Analysis/ValueTracking
2 files changed
+32
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2697 | 2697 | | |
2698 | 2698 | | |
2699 | 2699 | | |
2700 | | - | |
2701 | | - | |
2702 | | - | |
2703 | | - | |
2704 | | - | |
2705 | 2700 | | |
2706 | 2701 | | |
2707 | 2702 | | |
| |||
3537 | 3532 | | |
3538 | 3533 | | |
3539 | 3534 | | |
3540 | | - | |
3541 | 3535 | | |
3542 | 3536 | | |
3543 | 3537 | | |
3544 | 3538 | | |
3545 | 3539 | | |
3546 | | - | |
3547 | | - | |
3548 | | - | |
3549 | | - | |
3550 | | - | |
3551 | | - | |
3552 | | - | |
3553 | | - | |
3554 | 3540 | | |
3555 | 3541 | | |
3556 | 3542 | | |
3557 | 3543 | | |
3558 | | - | |
3559 | 3544 | | |
3560 | 3545 | | |
3561 | 3546 | | |
| |||
3642 | 3627 | | |
3643 | 3628 | | |
3644 | 3629 | | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
| 3635 | + | |
3645 | 3636 | | |
3646 | 3637 | | |
3647 | 3638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
319 | 345 | | |
320 | 346 | | |
321 | 347 | | |
| |||
0 commit comments