https://github.com/JuliaLang/julia
Revision 532125d51d23f22c3fd117fe8a37c158fe16ac62 authored by Keno Fischer on 15 October 2022, 14:53:43 UTC, committed by GitHub on 15 October 2022, 14:53:43 UTC
There's generally three reasons inference results end up uncached:
1. They come from typeinf_ext
2. We discover some validity limitation (generally due to recursion)
3. They are used for constant propagation

Currently, we convert all such inference results back to CodeInfo,
in case they come from 1. However, for inference results of kind 3,
the only thing we ever do with them is turn them back into IRCode
for inlining. This round-tripping through IRCode is quite wasteful.
Stop doing that. This PR is the minimal change to accomplish that
by marking those inference results that actually need to be converted
back (for case 1). This probably needs some tweaking for external
AbstractInterpreters, but let's make sure this works and has the
right performance first.

This commit just adds the capability, but doesn't turn it on
by default, since the performance for base didn't quite look
favorable yet.
1 parent 8552543
History
Tip revision: 532125d51d23f22c3fd117fe8a37c158fe16ac62 authored by Keno Fischer on 15 October 2022, 14:53:43 UTC
Add ability to not round-trip uncached inference results through IRCode (#47137)
Tip revision: 532125d
File Mode Size
TestPkg
clangsa
compiler
depot
embedding
gcext
llvmpasses
manifest
netload
project
strings
testhelpers
unicode
.gitignore -rw-r--r-- 47 bytes
Makefile -rw-r--r-- 1.6 KB
abstractarray.jl -rw-r--r-- 69.4 KB
ambiguous.jl -rw-r--r-- 14.6 KB
arrayops.jl -rw-r--r-- 103.3 KB
asyncmap.jl -rw-r--r-- 2.4 KB
atexit.jl -rw-r--r-- 5.8 KB
atomics.jl -rw-r--r-- 22.8 KB
backtrace.jl -rw-r--r-- 8.9 KB
binaryplatforms.jl -rw-r--r-- 20.0 KB
bitarray.jl -rw-r--r-- 70.2 KB
bitset.jl -rw-r--r-- 10.5 KB
boundscheck.jl -rw-r--r-- 785 bytes
boundscheck_exec.jl -rw-r--r-- 7.1 KB
broadcast.jl -rw-r--r-- 40.5 KB
cartesian.jl -rw-r--r-- 19.1 KB
ccall.jl -rw-r--r-- 64.6 KB
channels.jl -rw-r--r-- 17.7 KB
char.jl -rw-r--r-- 10.4 KB
checked.jl -rw-r--r-- 16.9 KB
choosetests.jl -rw-r--r-- 9.8 KB
client.jl -rw-r--r-- 1.5 KB
cmdlineargs.jl -rw-r--r-- 33.7 KB
combinatorics.jl -rw-r--r-- 4.4 KB
complex.jl -rw-r--r-- 54.7 KB
copy.jl -rw-r--r-- 7.5 KB
core.jl -rw-r--r-- 203.3 KB
corelogging.jl -rw-r--r-- 15.2 KB
deprecation_exec.jl -rw-r--r-- 6.2 KB
dict.jl -rw-r--r-- 42.6 KB
docs.jl -rw-r--r-- 31.6 KB
download.jl -rw-r--r-- 262 bytes
download_exec.jl -rw-r--r-- 1.0 KB
enums.jl -rw-r--r-- 7.4 KB
env.jl -rw-r--r-- 3.3 KB
error.jl -rw-r--r-- 3.8 KB
errorshow.jl -rw-r--r-- 36.4 KB
euler.jl -rw-r--r-- 16.9 KB
exceptions.jl -rw-r--r-- 10.8 KB
fastmath.jl -rw-r--r-- 9.2 KB
file.jl -rw-r--r-- 60.3 KB
filesystem.jl -rw-r--r-- 1.2 KB
float16.jl -rw-r--r-- 7.5 KB
floatapprox.jl -rw-r--r-- 2.3 KB
floatfuncs.jl -rw-r--r-- 7.4 KB
functional.jl -rw-r--r-- 7.1 KB
generic_map_tests.jl -rw-r--r-- 4.0 KB
gmp.jl -rw-r--r-- 22.5 KB
goto.jl -rw-r--r-- 3.0 KB
hashing.jl -rw-r--r-- 9.8 KB
int.jl -rw-r--r-- 14.9 KB
interpreter.jl -rw-r--r-- 919 bytes
intfuncs.jl -rw-r--r-- 20.3 KB
intrinsics.jl -rw-r--r-- 18.0 KB
iobuffer.jl -rw-r--r-- 10.2 KB
iostream.jl -rw-r--r-- 5.1 KB
iterators.jl -rw-r--r-- 34.5 KB
keywordargs.jl -rw-r--r-- 11.0 KB
llvmcall.jl -rw-r--r-- 8.1 KB
llvmcall2.jl -rw-r--r-- 2.7 KB
loading.jl -rw-r--r-- 34.1 KB
math.jl -rw-r--r-- 58.0 KB
meta.jl -rw-r--r-- 7.6 KB
misc.jl -rw-r--r-- 36.5 KB
missing.jl -rw-r--r-- 24.7 KB
mod2pi.jl -rw-r--r-- 12.8 KB
mpfr.jl -rw-r--r-- 35.7 KB
namedtuple.jl -rw-r--r-- 13.4 KB
numbers.jl -rw-r--r-- 109.4 KB
offsetarray.jl -rw-r--r-- 29.7 KB
opaque_closure.jl -rw-r--r-- 8.1 KB
operators.jl -rw-r--r-- 10.4 KB
ordering.jl -rw-r--r-- 1.6 KB
osutils.jl -rw-r--r-- 2.5 KB
parse.jl -rw-r--r-- 12.4 KB
path.jl -rw-r--r-- 17.3 KB
precompile.jl -rw-r--r-- 53.6 KB
print_process_affinity.jl -rw-r--r-- 896 bytes
profile_spawnmany_exec.jl -rw-r--r-- 300 bytes
ranges.jl -rw-r--r-- 91.7 KB
rational.jl -rw-r--r-- 30.6 KB
read.jl -rw-r--r-- 20.3 KB
reduce.jl -rw-r--r-- 24.4 KB
reducedim.jl -rw-r--r-- 30.9 KB
reflection.jl -rw-r--r-- 33.7 KB
regex.jl -rw-r--r-- 11.0 KB
reinterpretarray.jl -rw-r--r-- 20.3 KB
rounding.jl -rw-r--r-- 13.2 KB
runtests.jl -rw-r--r-- 17.9 KB
ryu.jl -rw-r--r-- 38.6 KB
secretbuffer.jl -rw-r--r-- 4.1 KB
sets.jl -rw-r--r-- 29.7 KB
show.jl -rw-r--r-- 96.2 KB
simdloop.jl -rw-r--r-- 4.5 KB
smallarrayshrink.jl -rw-r--r-- 1.4 KB
some.jl -rw-r--r-- 4.2 KB
sorting.jl -rw-r--r-- 34.4 KB
spawn.jl -rw-r--r-- 34.5 KB
specificity.jl -rw-r--r-- 12.3 KB
stack_overflow.jl -rw-r--r-- 619 bytes
stacktraces.jl -rw-r--r-- 5.7 KB
staged.jl -rw-r--r-- 7.7 KB
stress.jl -rw-r--r-- 2.6 KB
stress_fd_exec.jl -rw-r--r-- 675 bytes
subarray.jl -rw-r--r-- 24.3 KB
subtype.jl -rw-r--r-- 98.7 KB
syntax.jl -rw-r--r-- 101.7 KB
sysinfo.jl -rw-r--r-- 370 bytes
test_exec.jl -rw-r--r-- 157 bytes
test_sourcepath.jl -rw-r--r-- 601 bytes
testdefs.jl -rw-r--r-- 3.6 KB
testenv.jl -rw-r--r-- 2.2 KB
threadpool_latency.jl -rw-r--r-- 1.2 KB
threadpool_use.jl -rw-r--r-- 434 bytes
threads.jl -rw-r--r-- 10.3 KB
threads_exec.jl -rw-r--r-- 31.4 KB
triplequote.jl -rw-r--r-- 1.3 KB
tuple.jl -rw-r--r-- 26.7 KB
vecelement.jl -rw-r--r-- 3.4 KB
version.jl -rw-r--r-- 8.7 KB
worlds.jl -rw-r--r-- 14.0 KB

back to top