[PATCH] D120885: [OpenMPOpt] Avoid pointer element type access during region merging

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 02:59:17 PST 2022


nikic created this revision.
nikic added reviewers: jdoerfert, ggeorgakoudis.
Herald added subscribers: ormris, guansong, hiraditya, yaxunl.
Herald added a project: All.
nikic requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

Hardcode the function type as ParallelTask, which is the guaranteed pointee type of this runtime function argument (if pointee types exist). The elimination of the callee bitcast is left for InstCombine.


https://reviews.llvm.org/D120885

Files:
  llvm/lib/Transforms/IPO/OpenMPOpt.cpp
  llvm/test/Transforms/OpenMP/parallel_region_merging.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120885.412650.patch
Type: text/x-patch
Size: 40120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220303/d048ff87/attachment.bin>


More information about the llvm-commits mailing list