Details
Details
- Reviewers
• tstellarAMD nhaehnle
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Mostly looks good to me, but one question and I think there is a bug, see inline.
lib/Target/AMDGPU/SIShrinkInstructions.cpp | ||
---|---|---|
239–240 | Why isn't there similar treatment for SOPKOpc == AMDGPU::S_CMPK_EQ_U32 or ..._LG_U32? Are only the I32 variants selected previously? If so, that should probably be mentioned in the comment. | |
255–258 | I think you need a !TII->sopkIsZext test to go with the isKImmOperand test (consider what happens if you get s_cmp_lt_u32 op1, -1). | |
test/CodeGen/AMDGPU/sopk-compares.ll | ||
336–341 | This test looks wrong to me. -32768 is 0xffff8000, but s_cmpk_lt_u32 will not sign-extend. |
Why isn't there similar treatment for SOPKOpc == AMDGPU::S_CMPK_EQ_U32 or ..._LG_U32? Are only the I32 variants selected previously? If so, that should probably be mentioned in the comment.