forked from OSchip/llvm-project
[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.
This commit is contained in:
parent
0c82fa677f
commit
33125cffda
|
@ -71,6 +71,7 @@ IntrinsicCostAttributes::IntrinsicCostAttributes(Intrinsic::ID Id,
|
|||
if (const auto *FPMO = dyn_cast<FPMathOperator>(&CI))
|
||||
FMF = FPMO->getFastMathFlags();
|
||||
|
||||
Arguments.insert(Arguments.begin(), CI.arg_begin(), CI.arg_end());
|
||||
FunctionType *FTy =
|
||||
CI.getCalledFunction()->getFunctionType();
|
||||
ParamTys.insert(ParamTys.begin(), FTy->param_begin(), FTy->param_end());
|
||||
|
|
Loading…
Reference in New Issue