[llvm] [CostModel] Mark ssa_copy as free (PR #75294)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 03:04:58 PST 2023
================
@@ -1510,6 +1510,8 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
Intrinsic::ID IID = ICA.getID();
if (Function::isTargetIntrinsic(IID))
return TargetTransformInfo::TCC_Basic;
+ if (IID == Intrinsic::ssa_copy)
+ return TargetTransformInfo::TCC_Free;
----------------
davemgreen wrote:
Ah I see. That is better, thanks.
https://github.com/llvm/llvm-project/pull/75294
More information about the llvm-commits
mailing list