Commit b53e794
authored
VT: teach isImpliedCondOperands about samesign (llvm#120263)
isImpliedCondICmps() and its callers in ValueTracking can greatly
benefit from being taught about samesign. As a first step, teach one
caller, namely isImpliedCondOperands(). Very minimal changes are
required for this, as CmpPredicate::getMatching() does most of the work.1 parent c39500f commit b53e794
File tree
2 files changed
+15
-33
lines changed- llvm
- lib/Analysis
- test/Analysis/ValueTracking
2 files changed
+15
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9405 | 9405 | | |
9406 | 9406 | | |
9407 | 9407 | | |
9408 | | - | |
9409 | | - | |
9410 | | - | |
9411 | | - | |
9412 | | - | |
| 9408 | + | |
| 9409 | + | |
| 9410 | + | |
9413 | 9411 | | |
9414 | 9412 | | |
9415 | 9413 | | |
9416 | 9414 | | |
9417 | 9415 | | |
9418 | | - | |
9419 | | - | |
| 9416 | + | |
| 9417 | + | |
9420 | 9418 | | |
9421 | 9419 | | |
9422 | 9420 | | |
9423 | 9421 | | |
9424 | 9422 | | |
9425 | | - | |
| 9423 | + | |
9426 | 9424 | | |
9427 | 9425 | | |
9428 | 9426 | | |
9429 | | - | |
| 9427 | + | |
9430 | 9428 | | |
9431 | 9429 | | |
9432 | 9430 | | |
9433 | 9431 | | |
9434 | 9432 | | |
9435 | | - | |
| 9433 | + | |
9436 | 9434 | | |
9437 | | - | |
| 9435 | + | |
9438 | 9436 | | |
9439 | 9437 | | |
9440 | 9438 | | |
| |||
9493 | 9491 | | |
9494 | 9492 | | |
9495 | 9493 | | |
9496 | | - | |
9497 | | - | |
| 9494 | + | |
| 9495 | + | |
9498 | 9496 | | |
9499 | 9497 | | |
9500 | 9498 | | |
| |||
Lines changed: 4 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| |||
36 | 32 | | |
37 | 33 | | |
38 | 34 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 35 | + | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
| |||
68 | 60 | | |
69 | 61 | | |
70 | 62 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 63 | + | |
76 | 64 | | |
77 | 65 | | |
78 | 66 | | |
| |||
100 | 88 | | |
101 | 89 | | |
102 | 90 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 91 | + | |
108 | 92 | | |
109 | 93 | | |
110 | 94 | | |
| |||
0 commit comments