projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5476e44
)
[SimplifyLibCalls] Use range-based loop. NFC.
author
Davide Italiano
<davide@freebsd.org>
Fri, 27 Nov 2015 08:05:40 +0000
(08:05 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Fri, 27 Nov 2015 08:05:40 +0000
(08:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254193
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyLibCalls.cpp
b/lib/Transforms/Utils/SimplifyLibCalls.cpp
index da852526f5095c79675116f72a203d7974e6e428..67e1697c7da5900db07baba5e3dbad91ea3a1180 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/
lib/Transforms/Utils/SimplifyLibCalls.cpp
@@
-86,11
+86,9
@@
static bool isOnlyUsedInEqualityComparison(Value *V, Value *With) {
}
static bool callHasFloatingPointArgument(const CallInst *CI) {
- for (CallInst::const_op_iterator it = CI->op_begin(), e = CI->op_end();
- it != e; ++it) {
- if ((*it)->getType()->isFloatingPointTy())
+ for (const Use &OI : CI->operands())
+ if (OI->getType()->isFloatingPointTy())
return true;
- }
return false;
}