aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJirui Wu <jirui.wu@arm.com>2023-02-16 16:28:09 +0000
committerJirui Wu <jirui.wu@arm.com>2023-02-24 10:32:30 +0000
commitbb0403ae2e8f872369b1ce6f88d42d8bf02b922e (patch)
tree25fe15bc42446bf0f16119cc6bc8500bd6b334dd /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentee737ad30fa22256e609279184214f75441acefd (diff)
downloadllvm-bb0403ae2e8f872369b1ce6f88d42d8bf02b922e.zip
llvm-bb0403ae2e8f872369b1ce6f88d42d8bf02b922e.tar.gz
llvm-bb0403ae2e8f872369b1ce6f88d42d8bf02b922e.tar.bz2
[ARM] Remove redundant BTI instructions for table jumps
A BTI instruction was previously inserted at the beginning of each block that has its address stored in a jump table. Jump tables only emit indirect jumps in ARM or Thumb1 modes. However, PACBTI is not supported in these modes. As a result, BTI instructions emitted by jump tables are redundant. Removing redundant BTI instructions improves the code size and prevents potential gadgets. Differential Revision: https://reviews.llvm.org/D144470
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions