Skip to content

Commit 33125cf

Browse files
committed
[CostModel] fill in arguments as part of intrinsic attribute constructor
This appears to be an error of code duplication - instead of one constructor variant calling another, we have N similar but not identical versions. I think this is 'NFC' based on the current callers, but it's hard to tell or guess the intent in all cases.
1 parent 0c82fa6 commit 33125cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Analysis/TargetTransformInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ IntrinsicCostAttributes::IntrinsicCostAttributes(Intrinsic::ID Id,
7171
if (const auto *FPMO = dyn_cast<FPMathOperator>(&CI))
7272
FMF = FPMO->getFastMathFlags();
7373

74+
Arguments.insert(Arguments.begin(), CI.arg_begin(), CI.arg_end());
7475
FunctionType *FTy =
7576
CI.getCalledFunction()->getFunctionType();
7677
ParamTys.insert(ParamTys.begin(), FTy->param_begin(), FTy->param_end());

0 commit comments

Comments
 (0)