Check-all + tested locally on fiji
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h | ||
---|---|---|
59 ↗ | (On Diff #74886) | Would it be better to name this isEmitConstantsToTextSection or shouldEmitConstantsToTextSection since it does not actually do the emitting? |
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h | ||
---|---|---|
59 ↗ | (On Diff #74886) | Yes, shouldEmitConstantsToTextSection sounds a lot better and in the same naming spirit as shouldEmitFixup, shouldEmitGOTReloc, etc. Thanks. |
Comment Actions
Rename emitConstantsToTextSection -> shouldEmitConstantsToTextSection. Make offset folding legal for constant address space.
test/CodeGen/AMDGPU/global-constant.ll | ||
---|---|---|
4–6 ↗ | (On Diff #75001) | I think this patch also fixes the case where we have an external variable in address space 2. I would add a test for that here. If I'm wrong and this patch doesn't fix this, then we can add the test case along with the fix for it in a follow-up patch. |