mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Simplify IRBuilder::CreateCall* by using ArrayRef+initializer_list/braced init only
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1150,7 +1150,7 @@ Value *LibCallSimplifier::optimizeExp2(CallInst *CI, IRBuilder<> &B) {
|
||||
Value *Callee =
|
||||
M->getOrInsertFunction(TLI->getName(LdExp), Op->getType(),
|
||||
Op->getType(), B.getInt32Ty(), nullptr);
|
||||
CallInst *CI = B.CreateCall2(Callee, One, LdExpArg);
|
||||
CallInst *CI = B.CreateCall(Callee, {One, LdExpArg});
|
||||
if (const Function *F = dyn_cast<Function>(Callee->stripPointerCasts()))
|
||||
CI->setCallingConv(F->getCallingConv());
|
||||
|
||||
@ -1436,7 +1436,7 @@ Value *LibCallSimplifier::optimizeFFS(CallInst *CI, IRBuilder<> &B) {
|
||||
Type *ArgType = Op->getType();
|
||||
Value *F =
|
||||
Intrinsic::getDeclaration(Callee->getParent(), Intrinsic::cttz, ArgType);
|
||||
Value *V = B.CreateCall2(F, Op, B.getFalse(), "cttz");
|
||||
Value *V = B.CreateCall(F, {Op, B.getFalse()}, "cttz");
|
||||
V = B.CreateAdd(V, ConstantInt::get(V->getType(), 1));
|
||||
V = B.CreateIntCast(V, B.getInt32Ty(), false);
|
||||
|
||||
|
Reference in New Issue
Block a user