Diff Detail
Diff Detail
Event Timeline
Comment Actions
I'm not entirely sure it's correct to preserve the high part of the range, since nothing is guaranteed about the high bits
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp | ||
---|---|---|
489 | Range is [a, b). I.e. upper bound is not included in the range. But range can wrap around so 0 should work. |
Range is [a, b). I.e. upper bound is not included in the range. But range can wrap around so 0 should work.
At the same time you will need to check that lower bound is not zero then because it is required that a != b.