[all-commits] [llvm/llvm-project] c446ac: [Passes] Fix relative lookup table converter pass

gulfemsavrun via All-commits all-commits at lists.llvm.org
Fri Dec 17 08:50:22 PST 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: c446ac46746edcffab57d22c42c249a3954698c9
      https://github.com/llvm/llvm-project/commit/c446ac46746edcffab57d22c42c249a3954698c9
  Author: Gulfem Savrun Yeniceri <gulfem at google.com>
  Date:   2021-12-17 (Fri, 17 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
    M llvm/test/Transforms/RelLookupTableConverter/X86/relative_lookup_table.ll

  Log Message:
  -----------
  [Passes] Fix relative lookup table converter pass

This patch fixes the relative table converter pass for the lookup table
accesses that are resulted in an instruction sequence, where gep is not
immediately followed by a load, such as gep being hoisted outside the loop
or another instruction is inserted in between them. The fix inserts the
call to load.relative.instrinsic in the original place of load instead of gep.
Issue is reported by FreeBSD via https://bugs.freebsd.org/259921.

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

(cherry picked from commit e5a8af7a90c6a9ac46293eb3600029d43d695b8e)




More information about the All-commits mailing list