[all-commits] [llvm/llvm-project] e5a8af: [Passes] Fix relative lookup table converter pass
gulfemsavrun via All-commits
all-commits at lists.llvm.org
Sat Dec 11 20:40:50 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e5a8af7a90c6a9ac46293eb3600029d43d695b8e
https://github.com/llvm/llvm-project/commit/e5a8af7a90c6a9ac46293eb3600029d43d695b8e
Author: Gulfem Savrun Yeniceri <gulfem at google.com>
Date: 2021-12-12 (Sun, 12 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
More information about the All-commits
mailing list