diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-01-05 22:21:45 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-01-05 22:21:45 +0000 |
commit | 720ac9196997e856c5fed7a23fdfe144425222b1 (patch) | |
tree | 65c0cd803f782956ae9e04c96b99e3775f94add7 /lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | 611caf5f91c4abe934480259043fcbb30ea07e3a (diff) |
SCCCaptured is trivially false on entry to this loop and not modified inside it.
Eliminate the dead test for it on each loop iteration. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 9e30c40e20..f3f6228433 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/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; |