Commit f0b2026
committed
[TTI] Remove Args argument from getOperandsScalarizationOverhead (NFC). (llvm#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#154126
(cherry picked from commit 4e6c88b)1 parent 6fddb71 commit f0b2026
File 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 | | |
| |||
2158 | 2167 | | |
2159 | 2168 | | |
2160 | 2169 | | |
2161 | | - | |
2162 | | - | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
2163 | 2173 | | |
2164 | 2174 | | |
2165 | 2175 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
1680 | 1680 | | |
1681 | 1681 | | |
1682 | 1682 | | |
1683 | | - | |
1684 | | - | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
1685 | 1693 | | |
1686 | 1694 | | |
1687 | 1695 | | |
| |||
5565 | 5573 | | |
5566 | 5574 | | |
5567 | 5575 | | |
5568 | | - | |
5569 | | - | |
| 5576 | + | |
5570 | 5577 | | |
5571 | 5578 | | |
5572 | 5579 | | |
| |||
0 commit comments