[flang-commits] [flang] 0c76865 - [Flang][OpenMP][Lower] NFC: Combine two calls to ClauseProcessor::processTODO (#78451)

via flang-commits flang-commits at lists.llvm.org
Thu Jan 18 06:01:12 PST 2024


Author: Sergio Afonso
Date: 2024-01-18T14:01:08Z
New Revision: 0c76865da9635e3cc4266c7be943a8dfea8d7587

URL: https://github.com/llvm/llvm-project/commit/0c76865da9635e3cc4266c7be943a8dfea8d7587
DIFF: https://github.com/llvm/llvm-project/commit/0c76865da9635e3cc4266c7be943a8dfea8d7587.diff

LOG: [Flang][OpenMP][Lower] NFC: Combine two calls to ClauseProcessor::processTODO (#78451)

Just a minimal readability improvement that we overlooked during
refactoring.

Added: 
    

Modified: 
    flang/lib/Lower/OpenMP.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index f269155e451949..4b0582a6f129f9 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -3072,15 +3072,15 @@ createSimdLoop(Fortran::lower::AbstractConverter &converter,
                      loopVarTypeSize);
   cp.processScheduleChunk(stmtCtx, scheduleChunkClauseOperand);
   cp.processReduction(loc, reductionVars, reductionDeclSymbols);
-  cp.processTODO<Fortran::parser::OmpClause::Linear,
-                 Fortran::parser::OmpClause::Order>(loc, ompDirective);
   cp.processIf(Fortran::parser::OmpIfClause::DirectiveNameModifier::Simd,
                ifClauseOperand);
   cp.processSimdlen(simdlenClauseOperand);
   cp.processSafelen(safelenClauseOperand);
   cp.processTODO<Fortran::parser::OmpClause::Aligned,
                  Fortran::parser::OmpClause::Allocate,
-                 Fortran::parser::OmpClause::Nontemporal>(loc, ompDirective);
+                 Fortran::parser::OmpClause::Linear,
+                 Fortran::parser::OmpClause::Nontemporal,
+                 Fortran::parser::OmpClause::Order>(loc, ompDirective);
 
   convertLoopBounds(converter, loc, lowerBound, upperBound, step,
                     loopVarTypeSize);


        


More information about the flang-commits mailing list