[all-commits] [llvm/llvm-project] c29af3: [AArch64] Don't try to compress jump tables if the...

AE via All-commits all-commits at lists.llvm.org
Thu Dec 10 12:20:46 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c29af37c6c9d74ca330bd7f1d084f1f676ba2824
      https://github.com/llvm/llvm-project/commit/c29af37c6c9d74ca330bd7f1d084f1f676ba2824
  Author: Amara Emerson <amara at apple.com>
  Date:   2020-12-10 (Thu, 10 Dec 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64CompressJumpTables.cpp
    M llvm/test/CodeGen/AArch64/jump-table-compress.mir
    M llvm/test/CodeGen/AArch64/jump-table.ll

  Log Message:
  -----------
  [AArch64] Don't try to compress jump tables if there are any inline asm instructions.

Inline asm can contain constructs like .bytes which may have arbitrary size.
In some cases, this causes us to miscalculate the size of blocks and therefore
offsets, causing us to incorrectly compress a JT.

To be safe, just bail out of the whole thing if we find any inline asm.

Fixes PR48255

Differential Revision: https://reviews.llvm.org/D92865




More information about the All-commits mailing list