This adds some sext costs for MVE, taken from the approximate length of assembly sequences that we generate.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp | ||
---|---|---|
346 ↗ | (On Diff #214360) | I think this could do with a comment explaining where the numbers come from. If it's based on the current assembly we generate, are we already generating the optimal sequences, or would these numbers need to change as our code-gen improves? |
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp | ||
---|---|---|
346 ↗ | (On Diff #214360) | I will add a comment, that sounds like a good idea. These all came from the codegen tests, mostly in Codegen/Thumb2/mve-sext.ll. I believe the normal code is optimal (I'd be interested if anyone knows of a way to do a v4i8->v4i32 in one instruction. From what I understand you have to use 2). |