Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
a5df1099
Commit
a5df1099
authored
Apr 27, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Object cache: hash IR as bitcode instead of as text string
cuts down time to JIT 'pip' from 115ms to 65ms
parent
6d392ba7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
Makefile
Makefile
+1
-1
src/codegen/entry.cpp
src/codegen/entry.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
a5df1099
...
...
@@ -93,7 +93,7 @@ endif()
add_subdirectory
(
${
DEPS_DIR
}
/llvm-trunk
${
CMAKE_BINARY_DIR
}
/llvm EXCLUDE_FROM_ALL
)
set
(
CMAKE_MODULE_PATH
"
${
CMAKE_BINARY_DIR
}
/llvm/share/llvm/cmake/"
)
include
(
LLVMConfig
)
llvm_map_components_to_libnames
(
LLVM_LIBS core mcjit native bitreader ipo irreader debuginfodwarf instrumentation
${
INTEL_JIT_EVENTS_LIB
}
)
llvm_map_components_to_libnames
(
LLVM_LIBS core mcjit native bitreader
bitwriter
ipo irreader debuginfodwarf instrumentation
${
INTEL_JIT_EVENTS_LIB
}
)
# libunwind
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Debug"
)
...
...
Makefile
View file @
a5df1099
...
...
@@ -97,7 +97,7 @@ else
LLVM_BIN
:=
$(LLVM_BUILD)
/Release/bin
endif
LLVM_LINK_LIBS
:=
core mcjit native bitreader ipo irreader debuginfodwarf instrumentation
LLVM_LINK_LIBS
:=
core mcjit native bitreader
bitwriter
ipo irreader debuginfodwarf instrumentation
ifneq
($(ENABLE_INTEL_JIT_EVENTS),0)
LLVM_LINK_LIBS
+=
inteljitevents
endif
...
...
src/codegen/entry.cpp
View file @
a5df1099
...
...
@@ -281,7 +281,7 @@ public:
// Generate a hash for the module
HashOStream
hash_stream
;
M
->
print
(
hash_stream
,
0
);
llvm
::
WriteBitcodeToFile
(
M
,
hash_stream
);
hash_before_codegen
=
hash_stream
.
getHash
();
llvm
::
SmallString
<
128
>
cache_file
=
cache_dir
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment