[PATCH] D75893: [OpenMP] Add !range metadata to loads from omp.(ub/lb)
Kaushik Kulkarni via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 26 13:02:52 PDT 2020
kaushikcfd updated this revision to Diff 252958.
kaushikcfd added a comment.
- Another attempt at making logic, for finding the right loads/stores, general enough to handle all the cases emitted by Clang.
- Now looks for loads/stores to omp.(ub.lb) only in the same basic block as '__kmpc_for_static_init_4'.
- Required slight changes in the OpenMP part of Clang to make sure that it fits this pattern.
- Included a test to check setting the ranges of an OpenMP for-directive that has compile-time constant bounds and is enclosed in an outer loop.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75893/new/
https://reviews.llvm.org/D75893
Files:
clang/lib/CodeGen/CGStmtOpenMP.cpp
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/set_bound_ranges.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75893.252958.patch
Type: text/x-patch
Size: 20701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200326/6fb22bc3/attachment.bin>
More information about the llvm-commits
mailing list