[PATCH] D35577: Add -flookup-tables and -fno-lookup-tables flags
Sumanth Gundapaneni via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 21 07:45:34 PDT 2017
sgundapa added a comment.
The discussion is scattered across these patches https://reviews.llvm.org/D35578 and https://reviews.llvm.org/D35579.
I will provide a brief summary here:
The idea is to control the generation of data (lookup table) generated from a function, specifically when the user is not expecting it.
For hexagon, there is tightly coupled memory and the customers usually place "text" in it.
For functions, which generate lookup tables, it is very very expensive to read the table from a far away non-TCM data section.
This option will disable the generation of lookup tables at the expense of code bloat. This is really driven by the customers of hexagon backend.
More information about the cfe-commits