forked from synapticarbors/numba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TargetLibraryInfo pass to CPU LLVM pipeline.
The TLI pass makes sure that the optimisations that take place during call simplification are appropriate for the target, without this the target is assumed to be Linux and code will be optimised to produce e.g. math symbols that do not exit on Windows. This addresses numba#8898 in a more performant manner, it is almost a total revert of numba#8907 (original fix for numba#8898), only the test cases are kept.
- Loading branch information
1 parent
5240e79
commit d12f718
Showing
6 changed files
with
25 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Add ``TargetLibraryInfo`` pass to CPU LLVM pipeline. | ||
"""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
|
||
The ``TargetLibraryInfo`` pass makes sure that the optimisations that take place | ||
during call simplification are appropriate for the target, without this the | ||
target is assumed to be Linux and code will be optimised to produce e.g. math | ||
symbols that do not exit on Windows. Historically this issue has been avoided | ||
through the use of Numba internal libraries carrying wrapped symbols, but doing | ||
so potentially detriments performance. As a result of this change Numba internal | ||
libraries are smaller and there is an increase in optimisation opportunity in | ||
code using ``exp2`` and ``log2`` functions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters