1
0
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:
Davide Italiano 2015-10-27 04:17:51 +00:00
parent c143499136
commit 9c9c14352f

View File

@ -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,