[PATCH] D115571: [Passes] Fix relative lookup table converter pass
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 11 00:24:55 PST 2021
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
LGTM, thank you, the fix is straight-forward.
================
Comment at: llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp:149
+ // GEP might not be immediately followed by a LOAD, like it can be hoisted
+ // outside the loop or another instruction might be inserted them in between.
+ Builder.SetInsertPoint(Load);
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115571/new/
https://reviews.llvm.org/D115571
More information about the llvm-commits
mailing list