mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[SimplifyLibCalls] Use range-based loop. No functional change.
llvm-svn: 251383
This commit is contained in:
parent
c143499136
commit
9c9c14352f
@ -1427,10 +1427,8 @@ LibCallSimplifier::classifyArgUse(Value *Val, BasicBlock *BB, bool IsFloat,
|
||||
|
||||
void LibCallSimplifier::replaceTrigInsts(SmallVectorImpl<CallInst *> &Calls,
|
||||
Value *Res) {
|
||||
for (SmallVectorImpl<CallInst *>::iterator I = Calls.begin(), E = Calls.end();
|
||||
I != E; ++I) {
|
||||
replaceAllUsesWith(*I, Res);
|
||||
}
|
||||
for (CallInst *C : Calls)
|
||||
replaceAllUsesWith(C, Res);
|
||||
}
|
||||
|
||||
void insertSinCosCall(IRBuilder<> &B, Function *OrigCallee, Value *Arg,
|
||||
|
Loading…
Reference in New Issue
Block a user