[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 02:54:52 PST 2023


simon_tatham added a comment.

> Nevermind, this doesn't actually help what you're doing; the Thumbv6m thunks are a different size.

And I was going to add that if you're in a v6-M environment then Thumb is all you have anyway – that architecture has no Arm state at all.

But now I write that, you've made me think of something else: architectures earlier still, like v5 and v4, support both Arm and Thumb but don't have `b.w`. In those, it's probably a better idea to use Arm-state jump tables unconditionally, precisely to avoid having to do this cumbersome stack-based branch!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143576/new/

https://reviews.llvm.org/D143576



More information about the llvm-commits mailing list