The estimation uses AMDGPUTargetLowering::isFNegFree()
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp | ||
---|---|---|
553 | If you're putting in in target code, might as well just return 0 |
Comment Actions
Added comment, fixed typo
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp | ||
---|---|---|
553 | There are different cases when fneg is not free. E.g. neg modifier can make instruction bigger. Or even explicit xor will be generated. |
If you're putting in in target code, might as well just return 0