[PATCH] D94355: [SimplifyCFG] Add relative switch lookup tables
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 29 01:38:10 PST 2021
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:5512-5525
+ // If not in x86 or aarch64 mode, do not generate a relative lookup table.
+ Triple TargetTriple(M.getTargetTriple());
+ if (!(TargetTriple.getArch() == Triple::x86_64 ||
+ TargetTriple.getArch() == Triple::aarch64))
+ return false;
+
+ // If not tiny or small code model, do not generate a relative lookup table.
----------------
This should be some TLI/TTI hook.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94355/new/
https://reviews.llvm.org/D94355
More information about the llvm-commits
mailing list