[PATCH] D44709: [ARM] Fix "Constant pool entry out of range!" in Thumb1 mode

Ana Pazos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 20 15:02:11 PDT 2018


apazos created this revision.
apazos added reviewers: t.p.northover, eli.friedman.
Herald added subscribers: kristof.beyls, javed.absar.

This patch fixes PR36658, "Constant pool entry out of range!" in Thumb1 mode.

In ARMConstantIslands::optimizeThumb2JumpTables() in Thumb1 mode, adjustBBOffsetsAfter() is not calculating postOffset correctly by  properly accounting for the padding that is required for the constant pool that immediately follows the jump table branch  instruction.


https://reviews.llvm.org/D44709

Files:
  lib/Target/ARM/ARMComputeBlockSize.cpp
  test/CodeGen/Thumb/PR36658.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44709.139205.patch
Type: text/x-patch
Size: 12877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180320/97d7ba51/attachment.bin>


More information about the llvm-commits mailing list