Commit 6d02fa7
committed
VT: teach isImpliedCondMatchingOperands about samesign
Move isImplied{True,False}ByMatchingCmp from CmpInst to ICmpInst, so
that it can operate on CmpPredicate instead of CmpInst::Predicate, and
teach it about samesign. There are two callers of this function, and we
choose to migrate the one in ValueTracking, namely
isImpliedCondMatchingOperands to CmpPredicate, hence teaching it about
samesign, with visible test impact.1 parent c575a7d commit 6d02fa7
File tree
7 files changed
+39
-32
lines changed- llvm
- include/llvm
- IR
- SandboxIR
- lib
- Analysis
- IR
- Transforms/Scalar
- test/Analysis/ValueTracking
7 files changed
+39
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | 970 | | |
979 | 971 | | |
980 | 972 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1266 | 1266 | | |
1267 | 1267 | | |
1268 | 1268 | | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1269 | 1279 | | |
1270 | 1280 | | |
1271 | 1281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2511 | 2511 | | |
2512 | 2512 | | |
2513 | 2513 | | |
2514 | | - | |
2515 | | - | |
2516 | | - | |
2517 | | - | |
2518 | | - | |
2519 | | - | |
2520 | | - | |
2521 | 2514 | | |
2522 | 2515 | | |
2523 | 2516 | | |
| |||
2554 | 2547 | | |
2555 | 2548 | | |
2556 | 2549 | | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
2557 | 2559 | | |
2558 | 2560 | | |
2559 | 2561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9374 | 9374 | | |
9375 | 9375 | | |
9376 | 9376 | | |
9377 | | - | |
9378 | | - | |
9379 | | - | |
9380 | | - | |
| 9377 | + | |
| 9378 | + | |
| 9379 | + | |
9381 | 9380 | | |
9382 | | - | |
| 9381 | + | |
9383 | 9382 | | |
9384 | 9383 | | |
9385 | 9384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3886 | 3886 | | |
3887 | 3887 | | |
3888 | 3888 | | |
3889 | | - | |
| 3889 | + | |
| 3890 | + | |
3890 | 3891 | | |
3891 | 3892 | | |
3892 | | - | |
| 3893 | + | |
3893 | 3894 | | |
3894 | 3895 | | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
| 3899 | + | |
| 3900 | + | |
3895 | 3901 | | |
3896 | 3902 | | |
3897 | 3903 | | |
| |||
3911 | 3917 | | |
3912 | 3918 | | |
3913 | 3919 | | |
3914 | | - | |
| 3920 | + | |
| 3921 | + | |
3915 | 3922 | | |
3916 | 3923 | | |
3917 | 3924 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1964 | 1964 | | |
1965 | 1965 | | |
1966 | 1966 | | |
1967 | | - | |
1968 | | - | |
| 1967 | + | |
| 1968 | + | |
1969 | 1969 | | |
1970 | 1970 | | |
1971 | 1971 | | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | | - | |
1975 | | - | |
| 1974 | + | |
| 1975 | + | |
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
| |||
0 commit comments