This builds on top of the target-independent cost model added in D124269 to add aarch64 specific costs for fptoui_sat and fptosi_sat intrinsics. For many common types they will be legal instructions as the AArch64 instructions will saturate naturally. For unsupported pairs of integer and floating point types, an additional min/max clamp is needed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/test/Analysis/CostModel/AArch64/fptoi_sat.ll | ||
|---|---|---|
| 325 | Any idea what's going on with this "400"? Even with our current terrible unrolled codegen, it's still only 50 instructions. | |
Any idea what's going on with this "400"? Even with our current terrible unrolled codegen, it's still only 50 instructions.