Commit 6e4cea5
Zain Jaffal
[AArch64] Fix cost model for
Currently the model over estimates the cost of a udiv instruction with one constant. The correct cost for a udiv instruction is
insert_cost * extract_cost * num_elements
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D135991udiv instruction when one of the operands is a uniform constant1 parent f5dd9dd commit 6e4cea5
File tree
2 files changed
+57
-45
lines changed- llvm
- lib/Target/AArch64
- test/Analysis/CostModel/AArch64
2 files changed
+57
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2171 | 2171 | | |
2172 | 2172 | | |
2173 | 2173 | | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
2174 | 2186 | | |
2175 | 2187 | | |
2176 | 2188 | | |
| |||
0 commit comments