mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Make succ_iterator a real random access iterator and clean up a couple of users.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201088 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -437,12 +437,7 @@ struct NoTTI LLVM_FINAL : ImmutablePass, TargetTransformInfo {
|
||||
return TopTTI->getCallCost(cast<FunctionType>(FTy), CS.arg_size());
|
||||
}
|
||||
|
||||
SmallVector<const Value *, 8> Arguments;
|
||||
for (ImmutableCallSite::arg_iterator AI = CS.arg_begin(),
|
||||
AE = CS.arg_end();
|
||||
AI != AE; ++AI)
|
||||
Arguments.push_back(*AI);
|
||||
|
||||
SmallVector<const Value *, 8> Arguments(CS.arg_begin(), CS.arg_end());
|
||||
return TopTTI->getCallCost(F, Arguments);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user