Commit 455cd3f
Automerge: [TTI] Remove Args argument from getOperandsScalarizationOverhead (NFC). (#154126)
Remove the ArrayRef<const Value*> Args operand from
getOperandsScalarizationOverhead and require that the callers
de-duplicate arguments and filter constant operands.
Removing the Value * based Args argument enables callers where no Value
* operands are available to use the function in a follow-up: computing
the scalarization cost directly for a VPlan recipe.
It also allows more accurate cost-estimates in the future: for example,
when vectorizing a loop, we could also skip operands that are live-ins,
as those also do not require scalarization.
PR: llvm/llvm-project#154126File tree
5 files changed
+45
-32
lines changed- llvm
- include/llvm
- Analysis
- CodeGen
- lib
- Analysis
- Transforms/Vectorize
5 files changed
+45
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
965 | | - | |
966 | | - | |
| 964 | + | |
| 965 | + | |
967 | 966 | | |
968 | | - | |
969 | | - | |
| 967 | + | |
970 | 968 | | |
971 | 969 | | |
972 | 970 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
| 462 | + | |
464 | 463 | | |
465 | 464 | | |
466 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
347 | 348 | | |
348 | 349 | | |
349 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
350 | 366 | | |
351 | 367 | | |
352 | 368 | | |
| |||
935 | 951 | | |
936 | 952 | | |
937 | 953 | | |
938 | | - | |
939 | | - | |
| 954 | + | |
| 955 | + | |
940 | 956 | | |
941 | 957 | | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
| 958 | + | |
946 | 959 | | |
947 | | - | |
948 | | - | |
| 960 | + | |
949 | 961 | | |
950 | | - | |
951 | | - | |
952 | 962 | | |
953 | 963 | | |
954 | 964 | | |
955 | 965 | | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
961 | 969 | | |
962 | 970 | | |
963 | 971 | | |
| |||
974 | 982 | | |
975 | 983 | | |
976 | 984 | | |
977 | | - | |
| 985 | + | |
| 986 | + | |
978 | 987 | | |
979 | 988 | | |
980 | 989 | | |
| |||
2170 | 2179 | | |
2171 | 2180 | | |
2172 | 2181 | | |
2173 | | - | |
2174 | | - | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
2175 | 2185 | | |
2176 | 2186 | | |
2177 | 2187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
641 | | - | |
642 | | - | |
| 640 | + | |
| 641 | + | |
643 | 642 | | |
644 | 643 | | |
645 | 644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1697 | 1697 | | |
1698 | 1698 | | |
1699 | 1699 | | |
1700 | | - | |
1701 | | - | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
1702 | 1710 | | |
1703 | 1711 | | |
1704 | 1712 | | |
| |||
5610 | 5618 | | |
5611 | 5619 | | |
5612 | 5620 | | |
5613 | | - | |
5614 | | - | |
| 5621 | + | |
5615 | 5622 | | |
5616 | 5623 | | |
5617 | 5624 | | |
| |||
0 commit comments