[flang-commits] [flang] [Flang][OpenMP][Lower] NFC: Combine two calls to ClauseProcessor::processTODO (PR #78451)
via flang-commits
flang-commits at lists.llvm.org
Wed Jan 17 06:24:17 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-fir-hlfir
@llvm/pr-subscribers-flang-openmp
Author: Sergio Afonso (skatrak)
<details>
<summary>Changes</summary>
Just a minimal readability improvement that we overlooked during refactoring.
---
Full diff: https://github.com/llvm/llvm-project/pull/78451.diff
1 Files Affected:
- (modified) flang/lib/Lower/OpenMP.cpp (+3-3)
``````````diff
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index c770d1c60718c35..8f0149bc1ab375b 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -3052,15 +3052,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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/78451
More information about the flang-commits
mailing list