[Openmp-commits] [PATCH] D103090: [libomptarget][nfc][amdgpu] Factor out setting upper bounds
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed May 26 11:18:29 PDT 2021
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/plugins/amdgpu/src/rtl.cpp:716
+ return true;
+ } else {
+ return false;
----------------
dhruvachak wrote:
> How about making the change that clang-tidy is suggesting here?
>
> Another question: Any specific reason why you are not using std::min? Is it because emitting the DP becomes a bit cumbersome?
Pretty much. min doesn't say whether it made a change or not, and we've tied debug printing to whether a change was made.
I can't think of a reason why else after a return would be considered bad. Will try google on that term.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103090/new/
https://reviews.llvm.org/D103090
More information about the Openmp-commits
mailing list