projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afcf571
)
SCCCaptured is trivially false on entry to this loop and not modified inside it.
author
Nick Lewycky
<nicholas@mxc.ca>
Thu, 5 Jan 2012 22:21:45 +0000
(22:21 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Thu, 5 Jan 2012 22:21:45 +0000
(22:21 +0000)
Eliminate the dead test for it on each loop iteration. No functionality change.
llvm-svn: 147616
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index
9e30c40
..
f3f6228
100644
(file)
--- a/
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@
-461,7
+461,7
@@
bool FunctionAttrs::AddNoCaptureAttrs(const CallGraphSCC &SCC) {
}
if (SCCCaptured) continue;
- for (unsigned i = 0, e = ArgumentSCC.size(); i != e
&& !SCCCaptured
; ++i) {
+ for (unsigned i = 0, e = ArgumentSCC.size(); i != e; ++i) {
Argument *A = ArgumentSCC[i]->Definition;
A->addAttr(Attribute::NoCapture);
++NumNoCapture;