aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authoralx32 <103613512+alx32@users.noreply.github.com>2025-03-14 15:49:34 -0700
committerGitHub <noreply@github.com>2025-03-14 15:49:34 -0700
commit89889149cd21bb70c9a545fc18c1bfc1467b1b04 (patch)
tree0ddf6ca569ab7f006d7a49e69afdd28360f27ad7 /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parent4818623924a6846d17196a149b633b6bc3316b83 (diff)
downloadllvm-89889149cd21bb70c9a545fc18c1bfc1467b1b04.zip
llvm-89889149cd21bb70c9a545fc18c1bfc1467b1b04.tar.gz
llvm-89889149cd21bb70c9a545fc18c1bfc1467b1b04.tar.bz2
[lld-macho] Improve ICF thunk folding logic (#131186)
Refactor to add some early return logic to `applySafeThunksToRange` so that we completely skip irrelevant ranges. Also add a check for `isCodeSection` to ensure we only apply branch thunks to code section (they don't make sense for anything else). Currently this isn't an issue since there are no `keepUnique` non-code sections - but this is not a hard restriction and may be implemented in the future, so we should be able to handle (i.e. avoid) this scenario.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions