mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
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. llvm-svn: 147616
This commit is contained in:
parent
408112ede3
commit
b02dd59b35
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user