llvm-project
6957e44d - [LoongArch][MC] Refine conditions for emitting ALIGN relocations (#153365)

Commit
287 days ago
[LoongArch][MC] Refine conditions for emitting ALIGN relocations (#153365) According to the suggestions in https://github.com/llvm/llvm-project/pull/150816, this commit refine the conditions for emitting R_LARCH_ALIGN relocations. Some existing tests are updated to avoid being affected by this optimization. New tests are added to verify: removal of redundant ALIGN relocations, ALIGN emitted after the first linker-relaxable instruction, and conservatively emitted ALIGN in lower-numbered subsections.
Author
Parents
Loading