Skip to content

Commit f59c027

Browse files
committed
Don't do codegen for tiling if it is an inner construct.
1 parent d462a6c commit f59c027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3894,8 +3894,8 @@ static void genOMP(lower::AbstractConverter &converter, lower::SymMap &symTable,
38943894
parser::omp::GetOmpDirectiveName(*ompNestedLoopCons).v;
38953895
switch (nestedDirective) {
38963896
case llvm::omp::Directive::OMPD_tile:
3897-
// Emit the omp.loop_nest with annotation for tiling
3898-
genOMP(converter, symTable, semaCtx, eval, ompNestedLoopCons->value());
3897+
// Skip OMPD_tile since the tile sizes will be retrieved when
3898+
// generating the omp.looop_nest op.
38993899
break;
39003900
default: {
39013901
unsigned version = semaCtx.langOptions().OpenMPVersion;

0 commit comments

Comments
 (0)