diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2021-07-20 01:58:44 -0500 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2021-07-26 21:26:07 -0500 |
commit | be2b569646984e4aac988afda3090c2225228752 (patch) | |
tree | a3c634c046ff497bc0b4389593a8526d7c6dc02b /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | e6f3e648c9caf84fca9d2039138b5b539b398f70 (diff) | |
download | llvm-be2b569646984e4aac988afda3090c2225228752.zip llvm-be2b569646984e4aac988afda3090c2225228752.tar.gz llvm-be2b569646984e4aac988afda3090c2225228752.tar.bz2 |
[OpenMP] Run rewriteDeviceCodeStateMachine in the Module not CGSCC pass
While rewriteDeviceCodeStateMachine should probably be folded into
buildCustomStateMachine, we at least need the optimization to happen.
This was not reliably the case in the CGSCC pass but in the Module pass
it seems to work reliably.
This also ports a test to the new kernel encoding (target_init/deinit),
and makes sure we cannot run the kernel in SPMD mode.
Differential Revision: https://reviews.llvm.org/D106345
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions