[llvm] [llvm] Improve the RelLookupTableConverter pass (PR #93355)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 23:48:01 PDT 2024
https://github.com/nikic requested changes to this pull request.
In terms of high-level approach, the way to implement this is to use collectOffset() and ConstantFoldLoadFromConst(). Do not write complex code inspecting GEP or global structure.
You might want to split of the multi-use handling into a separate PR first, as that part of the generalization is a lot more straightforward.
https://github.com/llvm/llvm-project/pull/93355
More information about the llvm-commits
mailing list