-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm] Enable optimizations for LLVM 9 JIT. (#34555)
Share more code between LLVM 6 and LLVM 9. Mangler::getNameWithPrefix takes a Twine, not a std::string, so use a StringRef to avoid an unnecessary allocation. InstructionCombiningPass grew a dependency on ProfileSummaryInfoWrapperPass in dotnet/llvm-project@09e539f, which depends on the enclosing FunctionPassManager having a valid reference to a module. This commit adds a dummy module to satisfy this, instead of recreating a new FunctionPassManager on every compilation. (See also http://lists.llvm.org/pipermail/llvm-dev/2019-March/130690.html.) Co-authored-by: imhameed <imhameed@users.noreply.github.com>
- Loading branch information
1 parent
6996928
commit 68625db
Showing
1 changed file
with
78 additions
and
61 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