llvm-project
29b5c18e - [NVPTX] Do not run the NVVMReflect pass as part of the normal pipeline (#121834)

Commit
343 days ago
[NVPTX] Do not run the NVVMReflect pass as part of the normal pipeline (#121834) Summary: This pass lowers the `__nvvm_reflect` builtin in the IR. However, this currently runs in the standard optimization pipeline, not just the backend pipeline. This means that if the user creates LLVM-IR without an architecture set, it will always delete the reflect code even if it is intended to be used later. Pushing this into the backend pipeline will ensure that this works as intended, allowing users to conditionally include code depending on which target architecture the user ended up using. This fixes a bug in OpenMP and missing code in `libc`.
Author
Parents
Loading