Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp | ||
---|---|---|
140–143 ↗ | (On Diff #56750) | I don't see why this would be an error, particularly a backend error. Talking about -g here doesn't make sense |
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp | ||
---|---|---|
140–143 ↗ | (On Diff #56750) | We want to restrict additional debugger features (register reservation, nops insertion, etc.) to be only used with debug info present and -O0 opt level. I can change the error message to say "only allowed with debug info present". Should we use assert instead? What are your thoughts? |
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp | ||
---|---|---|
140–143 ↗ | (On Diff #56750) | There should be no error. It should proceed and emit the program. There's no reason the registers can't be reserved with optimizations. The nop insertion will be less useful with optimizations, but should still work. Telling the user that they want to disable optimizations with debugging is a frontend question |