[PATCH] D115571: [Passes] Fix relative lookup table converter pass
Gulfem Savrun Yeniceri via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 10 19:35:33 PST 2021
gulfem created this revision.
Herald added subscribers: hiraditya, krytarowski, arichardson, emaste.
gulfem requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115571
Files:
llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
llvm/test/Transforms/RelLookupTableConverter/X86/relative_lookup_table.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115571.393655.patch
Type: text/x-patch
Size: 6167 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211211/6a6acb98/attachment.bin>
More information about the llvm-commits
mailing list