[PATCH] D143576: [LowerTypeTests] Support generating Armv6-M jump tables.
Simon Tatham via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 9 09:49:45 PST 2023
simon_tatham updated this revision to Diff 496161.
simon_tatham edited the summary of this revision.
simon_tatham added a comment.
Revised the patch to make the right decision on Armv6 and before, where Arm and Thumb-1 jump tables are both available, and we always want to pick Arm because it's smaller and faster. This also exposed a bug in which ``getJumpTableEntrySize`` was ignoring the fact that ``selectJumpTableArmEncoding`` might have swapped to the other one of Arm and Thumb (and until now it didn't matter because the table entries were always the same size for both).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143576/new/
https://reviews.llvm.org/D143576
Files:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.h
llvm/lib/Transforms/IPO/LowerTypeTests.cpp
llvm/test/Transforms/LowerTypeTests/function-arm-thumb.ll
llvm/test/Transforms/LowerTypeTests/function.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143576.496161.patch
Type: text/x-patch
Size: 19011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230209/3c7c1ee5/attachment.bin>
More information about the llvm-commits
mailing list