[all-commits] [llvm/llvm-project] 5fd001: [Passes] Add relative lookup table converter pass
gulfemsavrun via All-commits
all-commits at lists.llvm.org
Wed Mar 24 10:31:54 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5fd001a5ffbad403053c4a06bf4b2b76dc52bba8
https://github.com/llvm/llvm-project/commit/5fd001a5ffbad403053c4a06bf4b2b76dc52bba8
Author: Gulfem Savrun Yeniceri <gulfem at google.com>
Date: 2021-03-24 (Wed, 24 Mar 2021)
Changed paths:
M llvm/docs/Passes.rst
M llvm/include/llvm/Analysis/TargetTransformInfo.h
M llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
M llvm/include/llvm/CodeGen/BasicTTIImpl.h
M llvm/include/llvm/InitializePasses.h
M llvm/include/llvm/Transforms/Scalar.h
A llvm/include/llvm/Transforms/Utils/RelLookupTableConverter.h
M llvm/lib/Analysis/TargetTransformInfo.cpp
M llvm/lib/Passes/PassBuilder.cpp
M llvm/lib/Passes/PassRegistry.def
M llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
M llvm/lib/Transforms/Utils/CMakeLists.txt
A llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
M llvm/lib/Transforms/Utils/Utils.cpp
M llvm/test/CodeGen/AMDGPU/opt-pipeline.ll
M llvm/test/Other/new-pm-defaults.ll
M llvm/test/Other/new-pm-thinlto-defaults.ll
M llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
M llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
M llvm/test/Other/opt-O2-pipeline.ll
M llvm/test/Other/opt-O3-pipeline-enable-matrix.ll
M llvm/test/Other/opt-O3-pipeline.ll
M llvm/test/Other/opt-Os-pipeline.ll
M llvm/test/Other/pass-pipelines.ll
A llvm/test/Transforms/RelLookupTableConverter/X86/no_relative_lookup_table.ll
A llvm/test/Transforms/RelLookupTableConverter/X86/relative_lookup_table.ll
Log Message:
-----------
[Passes] Add relative lookup table converter pass
Lookup tables generate non PIC-friendly code, which requires dynamic relocation as described in:
https://bugs.llvm.org/show_bug.cgi?id=45244
This patch adds a new pass that converts lookup tables to relative lookup tables to make them PIC-friendly.
Differential Revision: https://reviews.llvm.org/D94355
More information about the All-commits
mailing list