- Should use targetconstant instead of constant operand for clamp bit, which is expected as an immediate operand. Under certain conditions, such as a common i1 false constant is used in other place and selected before the instruction with clamp bit, register operand may be added instead of immediate one. Use targetcosntant to enforce that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks Michael; that is much better than my fix in D59556. Let's go with this one and I'll abandon my one.
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp | ||
---|---|---|
1124–1125 ↗ | (On Diff #191561) | This is missing a test case |
llvm/test/CodeGen/AMDGPU/uaddo.ll | ||
176 ↗ | (On Diff #191561) | This should really use VGPR inputs |
178 ↗ | (On Diff #191561) | Should also cover sub version |
Comment Actions
sorry, saw this too late, will address in another patch
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp | ||
---|---|---|
1124–1125 ↗ | (On Diff #191561) | Sorry, saw this too late, I will address this in a later patch. OK? |
llvm/test/CodeGen/AMDGPU/uaddo.ll | ||
178 ↗ | (On Diff #191561) | sure, will address that in a later patch |