- cg and HasCancel in WorkDescr were never read and can be removed.
- This eliminates the last use of priv in ThreadPrivateContext.
- CounterGroup is unused afterwards.
- Remove duplicate external declares in omptarget-nvptx.cu that are already in the header omptarget-nvptx.h.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu | ||
---|---|---|
24–42 ↗ | (On Diff #163791) | Are you sure that you want to delete these variables? |
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu | ||
---|---|---|
24–42 ↗ | (On Diff #163791) | Yes, they are also declared in omptarget-nvptx.h (I added an inline comment). I've been criticizing these duplicated declarations in a few reviews, time to get rid of them. Note that omptarget_nvptx_device_State and omptarget_nvptx_device_simpleState are not in the header because they are only used in this file. |
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h | ||
431–446 ↗ | (On Diff #163791) | Here. |
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h | ||
---|---|---|
182 ↗ | (On Diff #163791) | Also remove this dead code? |
libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h | ||
---|---|---|
182 ↗ | (On Diff #163791) | Yes, will do on commit. |