Commit f4bfa4e
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 6529c3d commit f4bfa4e
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 | |
|---|---|---|---|
| |||
9223 | 9223 | | |
9224 | 9224 | | |
9225 | 9225 | | |
9226 | | - | |
9227 | | - | |
| 9226 | + | |
| 9227 | + | |
9228 | 9228 | | |
9229 | 9229 | | |
9230 | 9230 | | |
| |||
9293 | 9293 | | |
9294 | 9294 | | |
9295 | 9295 | | |
9296 | | - | |
9297 | | - | |
9298 | | - | |
9299 | | - | |
9300 | | - | |
| 9296 | + | |
| 9297 | + | |
| 9298 | + | |
9301 | 9299 | | |
9302 | 9300 | | |
9303 | 9301 | | |
9304 | 9302 | | |
9305 | 9303 | | |
9306 | | - | |
9307 | | - | |
| 9304 | + | |
| 9305 | + | |
9308 | 9306 | | |
9309 | 9307 | | |
9310 | 9308 | | |
9311 | 9309 | | |
9312 | 9310 | | |
9313 | | - | |
| 9311 | + | |
9314 | 9312 | | |
9315 | 9313 | | |
9316 | 9314 | | |
9317 | | - | |
| 9315 | + | |
9318 | 9316 | | |
9319 | 9317 | | |
9320 | 9318 | | |
9321 | 9319 | | |
9322 | 9320 | | |
9323 | | - | |
| 9321 | + | |
9324 | 9322 | | |
9325 | | - | |
| 9323 | + | |
9326 | 9324 | | |
9327 | 9325 | | |
9328 | 9326 | | |
| |||
9381 | 9379 | | |
9382 | 9380 | | |
9383 | 9381 | | |
9384 | | - | |
9385 | | - | |
| 9382 | + | |
| 9383 | + | |
9386 | 9384 | | |
9387 | 9385 | | |
9388 | 9386 | | |
| |||
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