[all-commits] [llvm/llvm-project] 6fb913: [RelLookupTableConverter] Drop unnamed_addr for GV...
dianqk via All-commits
all-commits at lists.llvm.org
Tue Jul 8 11:38:39 PDT 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 6fb913d3e2ec82ac3b351f9652c311cd12088a8f
https://github.com/llvm/llvm-project/commit/6fb913d3e2ec82ac3b351f9652c311cd12088a8f
Author: dianqk <dianqk at dianqk.net>
Date: 2025-07-08 (Tue, 08 Jul 2025)
Changed paths:
M llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
M llvm/test/Transforms/RelLookupTableConverter/unnamed_addr.ll
Log Message:
-----------
[RelLookupTableConverter] Drop unnamed_addr for GVs in entries to avoid generating GOTPCREL relocations (#146068)
The entry in a relative lookup table is a global variable with a
constant offset, such as `@gv`, `GEP @gv, 1`, and so on.
We cannot only consider the case of a trivial global variable. This PR
handles all cases using the existing `IsConstantOffsetFromGlobal`
function.
(cherry picked from commit c43282ab69d7ff1b64f8ef5c84eab46e57553075)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list