[Openmp-commits] [PATCH] D131443: [Libomptarget] Do not check for valid binaries twice.
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 8 14:32:49 PDT 2022
jhuber6 added inline comments.
================
Comment at: openmp/libomptarget/src/rtl.cpp:508
- if (R->is_valid_binary_info) {
- if (!R->is_valid_binary_info(Img, Info)) {
- DP("Image " DPxMOD " is NOT compatible with RTL %s!\n",
- DPxPTR(Img->ImageStart), R->RTLName.c_str());
- continue;
- }
- } else if (!R->is_valid_binary(Img)) {
- DP("Image " DPxMOD " is NOT compatible with RTL %s!\n",
- DPxPTR(Img->ImageStart), R->RTLName.c_str());
- continue;
- }
-
- DP("Image " DPxMOD " is compatible with RTL " DPxMOD "!\n",
- DPxPTR(Img->ImageStart), DPxPTR(R->LibraryHandler));
-
FoundRTL = R;
----------------
tianshilei1992 wrote:
> Is it necessary to still keep it?
It's only used for a debug print message at the end of the loop to say "No RTL's found for Image". We can get rid of that if necessary.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131443/new/
https://reviews.llvm.org/D131443
More information about the Openmp-commits
mailing list