mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-21 16:25:23 +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:
@@ -217,9 +217,11 @@ bool PPCLoopDataPrefetch::runOnLoop(Loop *L) {
|
||||
Module *M = (*I)->getParent()->getParent();
|
||||
Type *I32 = Type::getInt32Ty((*I)->getContext());
|
||||
Value *PrefetchFunc = Intrinsic::getDeclaration(M, Intrinsic::prefetch);
|
||||
Builder.CreateCall4(PrefetchFunc, PrefPtrValue,
|
||||
ConstantInt::get(I32, MemI->mayReadFromMemory() ? 0 : 1),
|
||||
ConstantInt::get(I32, 3), ConstantInt::get(I32, 1));
|
||||
Builder.CreateCall(
|
||||
PrefetchFunc,
|
||||
{PrefPtrValue,
|
||||
ConstantInt::get(I32, MemI->mayReadFromMemory() ? 0 : 1),
|
||||
ConstantInt::get(I32, 3), ConstantInt::get(I32, 1)});
|
||||
|
||||
MadeChange = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user