aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-01-10 16:47:50 -0600
committerJoseph Huber <jhuber6@vols.utk.edu>2023-01-11 10:31:47 -0600
commit0d9afee3d159f5b7cdac7637808f3e25ff16a536 (patch)
tree022bdaadfb0a33b2766ba44feb3d4ba7fdc942fe /llvm/lib/CodeGen/CodeGenPrepare.cpp
parenta17ab7aa3be0b2b2adf992e3754a58f17802491f (diff)
downloadllvm-0d9afee3d159f5b7cdac7637808f3e25ff16a536.zip
llvm-0d9afee3d159f5b7cdac7637808f3e25ff16a536.tar.gz
llvm-0d9afee3d159f5b7cdac7637808f3e25ff16a536.tar.bz2
[OpenMP] Adjust phases for AMDGPU offloading for OpenMP in save-temps mode
Currently, the behaviour of `-save-temps` changes the generated output when offloading to AMDGPU. This is because we only have a single phase and it contains the `-disable-llvm-passes` flags which results in unoptimized bitcode. We need to make sure we generate another phase that produces both the optimized and unoptimized bitcode. There used to be a check that turned these phases into a no-op. But I believe it is more correct to not generate them this way in the first place. Doing this requires a bit of a hack, replacing an already generated phase action, but it should be fine. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D141440
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions