[PATCH] D70533: [AArch64] Fix a bug with jump table generation

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 05:02:35 PST 2019


david-arm created this revision.
david-arm added reviewers: t.p.northover, sdesmalen.
david-arm added a project: LLVM.
Herald added subscribers: llvm-commits, hiraditya, kristof.beyls.

When trying to calculate the offsets for the jump table entries
we fail to take into account the block alignment, which could be
greater than 4 bytes. This led to cases where the jump table
offset was too big to fit in a byte.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70533

Files:
  llvm/lib/Target/AArch64/AArch64CompressJumpTables.cpp
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
  llvm/test/CodeGen/AArch64/jti-correct-datatype.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70533.230419.patch
Type: text/x-patch
Size: 5688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191121/7f02e8f4/attachment.bin>


More information about the llvm-commits mailing list