As the TODO said, we can just use generated uncompressInst to
relax instructions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
LGTM with a nit, seems like it also improve the debug info (loc).
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp | ||
---|---|---|
182 | nit: Assert check return value of uncompressInst. |
Comment Actions
Can we do this in a way that doesn't replicate the uncompressInst function in two different cpp files.
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp | ||
---|---|---|
183 | Another nit, you need add (void)Success; to suppress unused variable warning for disable assertion build. |
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp | ||
---|---|---|
182 | Where is RISCRVC defined? |
llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp | ||
---|---|---|
182 | Never mind I didn’t see the other patch |
Comment Actions
I've posted https://reviews.llvm.org/D141951 to removed the uncompressInst's dependency on MCRegisterInfo which should simplify this patch.
nit: Assert check return value of uncompressInst.