Deduplication in OpenMPOpt finds redundant OpenMP runtime calls and replaces them with a single call placed in the earliest safe location in the IR. When deduplication happens in a target region this patch makes sure replacement calls are put after target_init.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/IPO/OpenMPOpt.cpp | ||
---|---|---|
1586 | Yeah, I decided that it wasn't really important for the user to know that the call was moved anywhere and just cluttered up the existing remarks. Mostly because the user has no clue where the beginning of the OpenMP region truly exists in their code and it's not really an optimization per-se. If you want to add it in you'd also need to give it an OMPxxx number and write some documentation for it. |
llvm/lib/Transforms/IPO/OpenMPOpt.cpp | ||
---|---|---|
1593 | It could happen that this is empty, in the CGSCC pass for example. |
llvm/lib/Transforms/IPO/OpenMPOpt.cpp | ||
---|---|---|
1586 | Makes sense, removed. |
@jhuber6 suggested to not emit a remark here and removed it earlier.