As a step towards removing getInstructionCost in D79483. Add the remaining cast instruction opcodes to the base implementation of getUserCost and directly return the result. This allows getInstructionThroughput to return getUserCost for the casts. This has required changes to PPC and SystemZ because they implement getUserCost and/or getCastInstrCost with adjustments for vector operations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I made a change before committing, so that all the backends that calculate the cost will do an adjustment for non-throughput costs. So, hopefully most backends won't be affected by this change other than finding free fp/int conversions.