Functions with jump tables need an alignment of 4 because they use the ADR
instruction, which aligns the PC to 4 bytes before adding an offset.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
With the comment, LGTM. Thanks!
test/CodeGen/ARM/thumb-alignment.ll | ||
---|---|---|
25 ↗ | (On Diff #24788) | Maybe add a check for ADR, to make sure you're not aligning for other reason (and to keep it clear why you're aligning to 4-bytes)? |
test/CodeGen/ARM/thumb-alignment.ll | ||
---|---|---|
25 ↗ | (On Diff #24788) | Done |