[PATCH] D56413: [OpenMP] Avoid remainder operations for loop index values on a collapsed loop nest.

Gheorghe-Teodor Bercea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 7 14:09:54 PST 2019


gtbercea created this revision.
gtbercea added reviewers: ABataev, caomhin.
Herald added subscribers: cfe-commits, arphaman, guansong.

Change the strategy for computing loop index variables after collapsing a loop nest via the collapse clause by replacing the expensive remainder operation with multiplications and additions.


Repository:
  rC Clang

https://reviews.llvm.org/D56413

Files:
  lib/Sema/SemaOpenMP.cpp
  test/OpenMP/for_codegen.cpp
  test/OpenMP/for_simd_codegen.cpp
  test/OpenMP/parallel_for_simd_codegen.cpp
  test/OpenMP/simd_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56413.180560.patch
Type: text/x-patch
Size: 21408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190107/e98ab785/attachment-0001.bin>


More information about the cfe-commits mailing list