Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp | ||
---|---|---|
93–94 | Not very necessarily. D76746 touched the upper bound. The point of the upper bound is actually quite weak: it is used as an assert in MCFixup::create to reject certain apparently invalid relocations. I want to keep the code as-is to be consistent with changes I made to ARM/AArch64/X86/PowerPC. |
I think this looks good, but I definitely feel out of my depth in evaluating it, not really knowing this part of the backend and any invariants that need to be preserved. For this reason I'm unwilling to give an explicit approval/rejection.
I do think the testing seems adequate, and this is a useful feature that we should enable.
Thanks! I have made very similar changes to x86/PPC/AArch64/ARM. I think I am well-versed in MC. Given no objection, I will push this.
Shouldn't this also check the upper bound?