llvm-project
603b625b - [Analysis] Add Intrinsics::CLMUL case to cost calculations to getIntrinsicInstrCost / getTypeBasedIntrinsicInstrCost (#176552)

Commit
117 days ago
[Analysis] Add Intrinsics::CLMUL case to cost calculations to getIntrinsicInstrCost / getTypeBasedIntrinsicInstrCost (#176552) This patch adds a case in getIntrinsicInstrCost and getTypeBasedIntrinsicInstrCost in llvm/include/llvm/CodeGen/BasicTTIImpl.h for Intrinsic::clmul. This patch uses TLI->isOperationLegalOrCustom to check if the instruction is cheap. If not cheap, it sums up the cost of the arithmetic operations (AND, SHIFT, XOR) multiplied by the bit width. Fixes #176354
Parents
Loading