This adds some basic MVE sadd_sat/ssub_sat/uadd_sat/usub_sat costs, based on when the instruction is legal. With smaller than legal types that are promoted we generate shr(qadd(shl, shl)), so the cost is 4 appropriately.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks reasonable.
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp | ||
---|---|---|
1532 | Nit: early break: if (!ST->hasMVEIntegerOps()) break; |
Nit: early break: