File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -782,8 +782,6 @@ bool RestrictionArgumentsPass::runOnModule(Module& M) {
782
782
783
783
for (auto & FInfo : RestrictFunctionsInfo) {
784
784
auto F = FInfo.first ;
785
- // auto& Args = FInfo.second;
786
- // std::set<int> orderedArgs(Args.begin(), Args.end());
787
785
for (auto ArgIdx : FInfo.second ) {
788
786
F->addParamAttr (ArgIdx, Attribute::NoAlias);
789
787
}
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ void addAfterFunctionInlineAnalysis(
172
172
173
173
void addAfterLoopRotateAnalysis (legacy::PassManager &Passes) {
174
174
Passes.add (createPassBarrier ());
175
+ Passes.add (createRestrictionArgumentsPass ());
175
176
Passes.add (
176
177
createProcessDIMemoryTraitPass (markIf<trait::Lock, trait::HeaderAccess>));
177
178
Passes.add (createLoopRotatePass ());
You can’t perform that action at this time.
0 commit comments