Diff Detail
Diff Detail
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | ||
---|---|---|
81 | With this change the following warnings pop up from gcc: lib/Target/AMDGPU/AMDGPUGenSubtargetInfo.inc:747:64: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (Bits[AMDGPU::FeatureLocalMemorySize0] && LocalMemorySize < 0) LocalMemorySize = 0; ~~~~~~~~~~~~~~~~^~~ and lib/Target/AMDGPU/R600GenSubtargetInfo.inc:280:62: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (Bits[R600::FeatureLocalMemorySize0] && LocalMemorySize < 0) LocalMemorySize = 0; ~~~~~~~~~~~~~~~~^~~ The generated code looks like if (Bits[AMDGPU::FeatureLocalMemorySize0] && LocalMemorySize < 0) LocalMemorySize = 0; Any easy way to get rid of it? |
With this change the following warnings pop up from gcc:
and
The generated code looks like
Any easy way to get rid of it?