Commit 5a9eeca
committed
VT: teach isImpliedCondOperands about samesign
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 fc6aa3d commit 5a9eeca
File tree
2 files changed
+17
-35
lines changed- llvm
- lib/Analysis
- test/Analysis/ValueTracking
2 files changed
+17
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9335 | 9335 | | |
9336 | 9336 | | |
9337 | 9337 | | |
9338 | | - | |
9339 | | - | |
| 9338 | + | |
| 9339 | + | |
9340 | 9340 | | |
9341 | 9341 | | |
9342 | 9342 | | |
| |||
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 | | |
| |||
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 19 | + | |
28 | 20 | | |
29 | 21 | | |
30 | 22 | | |
| |||
36 | 28 | | |
37 | 29 | | |
38 | 30 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 31 | + | |
44 | 32 | | |
45 | 33 | | |
46 | 34 | | |
| |||
52 | 40 | | |
53 | 41 | | |
54 | 42 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 43 | + | |
60 | 44 | | |
61 | 45 | | |
62 | 46 | | |
| |||
0 commit comments