Check-all + tested locally on fiji
Details
Diff Detail
Event Timeline
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h | ||
---|---|---|
60 | Would it be better to name this isEmitConstantsToTextSection or shouldEmitConstantsToTextSection since it does not actually do the emitting? |
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h | ||
---|---|---|
60 | Yes, shouldEmitConstantsToTextSection sounds a lot better and in the same naming spirit as shouldEmitFixup, shouldEmitGOTReloc, etc. Thanks. |
Rename emitConstantsToTextSection -> shouldEmitConstantsToTextSection. Make offset folding legal for constant address space.
test/CodeGen/AMDGPU/global-constant.ll | ||
---|---|---|
3–7 | 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. |
Would it be better to name this isEmitConstantsToTextSection or shouldEmitConstantsToTextSection since it does not actually do the emitting?