Skip to content

Commit 93c301b

Browse files
kumasentoivanradanov
authored andcommitted
[FoldSCFIf] won't apply for scop.ignored
1 parent fdf51f8 commit 93c301b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/polymer/lib/Transforms/FoldSCFIf.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ struct FoldSCFIfPass : PassWrapper<FoldSCFIfPass, OperationPass<FuncOp>> {
358358
FuncOp f = getOperation();
359359
OpBuilder b(f.getContext());
360360

361+
if (f->hasAttr("scop.ignored"))
362+
return;
361363
while (process(f, b))
362364
;
363365
}

0 commit comments

Comments
 (0)