Commit 6c7d102
committed
[AArch64] Tweak the costs of experimental_cttz_elts intrinsic
The experimental_cttz_elts intrinsic currently returns a cost
of 1 for all types, however we know that it currently requires
2 SVE instructions when lowering this - brkb and cntp. Both
of these instructions have a throughput that is half of a
basic vector instruction such as a vector add. This patch bumps
the cost of this intrinsic up to 4 to reflect two instructions
of lower throughput.1 parent 025541d commit 6c7d102
File tree
2 files changed
+74
-64
lines changed- llvm
- lib/Target/AArch64
- test/Analysis/CostModel/AArch64
2 files changed
+74
-64
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
943 | 953 | | |
944 | 954 | | |
945 | 955 | | |
| |||
0 commit comments