https://github.com/JuliaLang/julia

sort by:
Revision Author Date Message Commit Date
9d007eb Avoid assertion 24 October 2022, 00:01:05 UTC
b557c4e Always mark codeinsts for fixup 24 October 2022, 00:01:05 UTC
6161285 Replace the `.ji` serialization with sysimage format - Support external linkage in {sys|pkg}images This takes the first steps towards saving native code in package precompilation: Co-authored-by: Valentin Churavy <v.churavy@gmail.com> Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Tim Holy <tim.holy@gmail.com> 24 October 2022, 00:01:05 UTC
54e6899 Don't attempt concrete eval if there's no information to be gained (#46774) If the effects are already maximized and the rt is already Const, there is nothing concrete evaluation could possibly tell us that we don't already know - just bail early in that case to save some inference time. 23 October 2022, 04:10:33 UTC
c97adbb optimizer: improve type stability of `OptimizationState` (#47244) 23 October 2022, 03:40:30 UTC
fa9c137 Test that internal constructor return type asserts are respected (#47227) On Julia 1.8, if the internal constructor's return value was typeasserted, this assertion could be violated without an error. For example, in this case: ```julia struct Foo x::Int Foo()::Nothing = new(1) end ``` Running `Foo()` would not throw. This was inadvertently fixed in a later PR, but not tested. This PR adds a test case similar to the example above. 22 October 2022, 16:17:51 UTC
8bef4a7 make libunwind substantially faster (#47272) Includes: https://github.com/JuliaPackaging/Yggdrasil/pull/5690 Fixes: https://github.com/JuliaLang/julia/issues/45983 22 October 2022, 16:16:43 UTC
f3ec87a Update test for change in CodeInstance const fields (#47284) 22 October 2022, 11:28:07 UTC
230576d inference: pass `𝕃::AbstractLattice` to more `nothrow`-tfuncs (#47266) 22 October 2022, 04:01:38 UTC
858223d Mark min_world and max_world as non-const (#47279) 22 October 2022, 02:01:48 UTC
ca3cd8b verify_ir: BBNumber is Int not Int64 (#47271) 21 October 2022, 14:02:08 UTC
ed786ba use more structs for `construct_ssa` datastructures (#47251) 21 October 2022, 09:54:30 UTC
b3ebc0a improve docstring of 'evalfile' and add doctest, fixes #45559 (#47130) 21 October 2022, 07:42:09 UTC
d5b1021 Merge pull request #47253 from JuliaLang/avi/47249 fix #47249, pass `𝕃::AbstractLattice` to `fieldtype_nothrow` 21 October 2022, 04:35:54 UTC
94aab83 irinterp: handle `gc_preserve_[begin|end]` (#47252) fix #47250 Also refines up `reprocess_instruction!`. 21 October 2022, 02:42:04 UTC
c52af4a inference: fix lattice for `abstract_invoke` 21 October 2022, 01:45:52 UTC
cfbfa1d fix #47249, pass `𝕃::AbstractLattice` to `fieldtype_nothrow` 21 October 2022, 01:13:07 UTC
ecf9e56 cfg_simplify: Fix more bugs (#47240) cfg_simplify still had issues with unreachable BBs, as well as BBs with try/catch in them. Additionally, it sometimes leaves unreachable BBs in the IR, which the verifier was upset about if there was a PhiNode that referenced it. I made that legal for now. The alternative is to make all unreachable BBs illegal, which I think would be reasonable, but is somewhat extreme for the time being. Let's see how this fares first. 20 October 2022, 19:04:29 UTC
7680f77 🤖 Bump the SparseArrays stdlib from 4694108 to 3c2b65f (#47242) Co-authored-by: Dilum Aluthge <dilum@aluthge.com> 20 October 2022, 16:54:52 UTC
f4c4c33 reword error when rng sampler is fed empty array (#47104) 20 October 2022, 13:14:25 UTC
82bd71b fix another incorrect quiescent finalizer detection (#47230) Missed in #47214 20 October 2022, 12:53:35 UTC
198e87d Merge pull request #47178 from JuliaLang/jn/47160.2 [REPL] tests: further improve IJulia IO ordering 20 October 2022, 12:48:55 UTC
87fd6d9 inference: clean up `getfield_tfunc` subroutines [NFC] (#47232) 20 October 2022, 08:33:32 UTC
3a8a9c6 optimize: parameterize `OptimizationState` with `InliningState` properly (#47224) Should improve the inlining pass performance a bit. External `AbstractInterpreter` has been required to recompile all inlining subroutines parameterized with `InliningState` anyway. 20 October 2022, 05:19:58 UTC
a311f4d Ensure port in listenany stays UInt16 (#47213) As reported [here](https://discourse.julialang.org/t/test-failures-for-sockets-base-runtests-sockets/88898). My guess on the original issue reported is that, for some reason, the host where the tests are run is unable to listen on any ports, so we end up cycling through the entire UInt16 range (the test starts at port 11011), but when we fail on port 65535, we do `addr.port + 1` and instead of wrapping around as I believe this function intends to happen (as noted by the `addr.port == default_port` check before we error), it gets promoted to `Int(65536)` which then throws an (unexpected) error in the `InetAddr` constructor. I'm not quite sure how to test this exactly though, because we'd need to simulate not being able to listen on any ports? If anyone has any ideas, I'm all ears. 20 October 2022, 02:44:43 UTC
0d52506 Optimized heap snapshot json writing (#47217) * Combined ios_printf calls in serialize_heap_snapshot. * Optimized print_str_escape_json() 19 October 2022, 17:24:13 UTC
e1cbd11 Ensure that we run late-lowering over ccallable funcs (#47226) 19 October 2022, 16:43:05 UTC
48facc8 [REPL] fix ipython_mode scope bug When writing macros, it is best to keep most of the work in functions, since otherwise it is hard to avoid scoping mistakes, and generates too much code. This made the test (and the REPL) crash if the user ever uses the `mod` function. 19 October 2022, 15:19:49 UTC
3d7347b [REPL] tests: further improve IJulia IO ordering Continuing from #47160, which seems to have been insufficient to fully resolve this problem on CI. 19 October 2022, 15:19:17 UTC
0aff6dd Add utility `IRCode()` constructor (#47218) Just to make it easy to get one. Right now, people tend to do `code_ircode` on something random and then strip it which is just silly. Should mostly be used in debug and utility code. Proper compile pipelines should still get it from the frontend or the cache, but it seems like a useful addition. 19 October 2022, 14:56:50 UTC
8181316 optimizer: simplify inlining algorithm (#47207) The main purpose of this commit is to try to simplify our inlining algorithm by removing the delayed callee resolving mechanism (i.e. `DelayedInliningSpec` stuff), since that kind of mechanism currently has no users and we provide more fine grained control with `inlining_policy` now. This commit also adds some more cleanups, changing argument ordering of some subroutines so that they are aligned with the other ones, and removing dead subroutines. 18 October 2022, 23:12:25 UTC
61ccb32 fix incorrect quiescent finalizer detection (#47214) We were checking and clearing the gc tag bits on a random memory location when running these quiescent finalizers (which do not point to julia memory, so they are not tag bits, but probably libc malloc metadata). Detected by ASAN (and also CI) Fixes #47171 Closes #47177 18 October 2022, 19:51:02 UTC
e8aacc8 fix linkage of libuv (#47203) Only libjulia-internal is supposed to be linked against this, since it is a static library. Fix #47198 18 October 2022, 17:06:32 UTC
94736a4 sysimg relocation lists now use LEB128 format (#47204) Appears to reduce the data size from about 165MB to 147MB! 18 October 2022, 16:14:39 UTC
bc7500b [Profile] Test heap snapshot in child process (#47205) Save memory (especially important for 32-bit) by running in a new process, and not one that has already run a lot of other test. This avoids a possible OOM situation. 18 October 2022, 15:30:36 UTC
b55c15e Fix insert_node! for insertion at pending nodes (#47189) We didn't handle this at all, now we at least handle insertions with `attach_after` an existing node. Attaching before is currently disallowed. We could have it attach before the node to which it is being attached, but it is not clear that this is what we want. We can revisit that if somebody has a usecase where they want that. Co-authored-by: Shuhei Kadowaki <aviatesk@gmail.com> 18 October 2022, 09:06:23 UTC
2ca8d44 Thread through lattice in more places (#47188) It was missing in irinterp's `tmeet` for PiNodes as well as the optimizer (which I knew about but had just punted on until I needed it, which is now). Co-authored-by: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> 18 October 2022, 09:06:01 UTC
dc3a2e8 fix spelling of :not_atomic symbol default value (#47187) 17 October 2022, 15:17:06 UTC
69f8a7b Products of `Givens` and `Rotations` (#47162) 17 October 2022, 08:33:35 UTC
c2dfe1d Also update phi counts in adce pass (#47181) The whole point of this pass is to compute and compare the counts of all SSA value uses vs those of only-phi uses to find SSA values that have no real uses. In #47080, I updated the code to properly account for removal of phi edges in the SSA count, but neglected to do the same in the phi-only count, leading to #47180. Fix that. Fixes #47180 17 October 2022, 00:16:41 UTC
392bc97 Revert "Add `jl_print_task_backtraces()`" (#47182) This reverts commit d89b96b3fc7ac13ed29ac1508ba302dc4f758d33. 16 October 2022, 17:39:53 UTC
e569459 [MozillaCACerts_jll] Update to 2022-10-11 (#47175) 16 October 2022, 11:17:20 UTC
ccb0a02 remove kwfuncs from Julia (#47157) * remove kwfuncs from Julia These kwsorter methods only exist for dispatch, which means they do not need to be unique. We can optionally have the primary MethodTable contain an extra kwtable::MethodTable field, if this turns out to be slow, since this already introduces the concept of `jl_kwmethod_table_for` (for better reflection and max_args). * remove jl_f_kwinvoke builtin, reimplement in Julia This instantly grants total inference and inlining support, where previously this was a completely opaque call! 16 October 2022, 08:00:40 UTC
97d86f8 Remove some bootstrapping hacks from sort.jl (#47173) 16 October 2022, 02:02:20 UTC
277b1a5 Check inlining policy before inlining semi concrete eval IR (#47139) `inlining_policy!` recently gained the `info` argument to allow external AbstractInterpreters to decline inlining for certain CallInfos. This is for example used by Diffractor to avoid inlining any calls with a customized AD rule in its early optimization pass. However, we were missing a call to `inlining_policy!` in the path that was inlining semi concrete results, causing us to inline things that should have been forbidden by the external AbstractInterpreter's policies. 15 October 2022, 21:50:05 UTC
d89b96b Add `jl_print_task_backtraces()` (#46845) Iterates through `jl_all_tls_states` and through all `live_tasks` in `ptls->heap`, printing backtraces. 15 October 2022, 20:43:05 UTC
532125d Add ability to not round-trip uncached inference results through IRCode (#47137) 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. 15 October 2022, 14:53:43 UTC
8552543 compiler: fix minor issues detected by JET (#47163) 15 October 2022, 09:52:19 UTC
35431bf Stabilize, optimize, and increase robustness of QuickSort (#45222) * Change partitioning scheme to use scratch space * Randomize pivot selection with a hash-based fallback for when `rand` is unavailable * remove an unnecessary sorting operation in typealias construction in base/show.jl * Seed rng before generating precompile statements * Add presorted check to avoid performance regressions * test invalid `lt` to close #11429 & #32675 * test that PartialQuickSort is stable * update radix sort dispatch heuristics because quicksort is now faster and the primary competition Co-authored-by: Petr Vana <petvana@centrum.cz> Co-authored-by: Oscar Smith <oscardssmith@gmail.com> 15 October 2022, 02:18:23 UTC
05cfe24 Fix various bugs in maybe-undef handling (#47167) We weren't accounting for the possiblity that a slot could be undef in our effect handling and the recently introduced shortcut in the type lifting pass wasn't quite correct. Ironically, the test case I have here compiles correctly on master, because the compiler miscompiles itself (due to this issue) to always make the `@isdefined(last_val)` check `false` in this test case. We can still look at the IR though, which this does. Fixes #47127 14 October 2022, 21:54:37 UTC
625aed1 disable `brotli` linkage (#47165) 14 October 2022, 20:58:37 UTC
3144a5b Implement `jl_rec_backtrace` for ASM/SETJMP on FreeBSD (#47156) This removes the message emitted while compiling on FreeBSD that says it isn't supported. 14 October 2022, 20:15:52 UTC
c63c1e4 Merge pull request #46609 from JuliaLang/jb/jn/mthreads support foreign threads 14 October 2022, 20:15:25 UTC
981f3d2 [REPL] tests: be better about correct IO ordering (#47160) Particularly relevant for COLUMNS being narrow for some cases, or the kernel being configured with small IO buffers, or both. Or someone setting a particularly long path for TMPDIR. Or so on. 14 October 2022, 16:33:59 UTC
f424431 make CodeInstance 1 word smaller by moving the trailing UInt8 field (#47146) 13 October 2022, 17:37:17 UTC
8bdd52d fix bug in --strip-ir when fields are replaced with NULL (#47145) 13 October 2022, 17:23:12 UTC
08d5b0d irshow: Fix CFG display with directly inserted new nodes (#47135) Slight fix to #47043 for the case where nodes where inserted using `insert_node_here!`. 13 October 2022, 15:04:47 UTC
40346e1 Improve the memory profiler documentation (#47144) - PProf is a package, not a library - mention PProf in the docstring and say how to invoke it - turn URLs into markdown links 13 October 2022, 15:04:02 UTC
01310a9 `map` of unequal length bitarray (#47013) * fix `bit_map!` with unequal length. * relax three-arg `bit_map!`. * add bit array test for unequal length. Co-authored-by: N5N3 <2642243996@qq.com> Co-authored-by: Cameron Bieganek <8310743+CameronBieganek@users.noreply.github.com> 13 October 2022, 13:35:11 UTC
186c0be 🤖 Bump the SparseArrays stdlib from 1bae96d to 4694108 (#47147) Co-authored-by: Dilum Aluthge <dilum@aluthge.com> 13 October 2022, 12:17:05 UTC
faa49a0 Avoid duplicating jl_datatype_layout_t (#46973) Co-authored-by: Jameson Nash <vtjnash@gmail.com> 13 October 2022, 03:23:43 UTC
b685edd Test system: Allow the "test set mutated ENV and did not restore..." check to be turned off (#47148) 13 October 2022, 01:34:20 UTC
b7201d6 threading: support more than nthreads at runtime Hook a couple functions (notably cfunction) to handle adopting foreign threads automatically when used. n.b. If returning an object pointer, we do not gc_unsafe_leave afterwards as that would render the pointer invalid. However, this means that it can be a long time before the next safepoint (if ever). We should look into ways of improving this bad situation, such as pinning only that specific object temporarily. n.b. There are some remaining issues to clean up. For example, we may trap pages in the ptls after GC to keep them "warm", and trap other pages in the unwind buffer, etc. 12 October 2022, 21:32:22 UTC
0b2a8a5 Update patch version in readme (#47140) Change the version to be checked out from v1.8.0 to v1.8.2 Co-authored-by: Jishnu Bhattacharya <jishnub@users.noreply.github.com> 12 October 2022, 13:06:56 UTC
015874c add Bidiagonal/Tridiagonal constructor from its own type (#47115) 12 October 2022, 10:04:19 UTC
a7d446b Do not use `Stateful` for `cmp` of `AbstractString` (#47125) PR #45924 fixed length of `Stateful`, but this change requires `Stateful` to call `length` on its wrapped iterator on instantiation. The current implementation of `cmp(::AbstractString, ::AbstractString)` wraps the strings in `Stateful` to efficiently check if one string is longer than the other without needing an O(N) call to `length`. However, with #45924 this length call is done anyway, which led to a performance regression. In this PR, the `cmp` method is changed so it no longer relies on `Stateful` to do the same thing. Fix #46719 12 October 2022, 06:33:38 UTC
9104c20 fix #46918, unstable `jl_binding_type` behavior (#46994) Now it will return `nothing` before the binding has been resolved, and afterward fully look up the binding as declared by the owner. 12 October 2022, 06:07:13 UTC
e304cd5 dump: make serialization gc-safe (#47086) 12 October 2022, 00:30:59 UTC
a68235c optimizer: fix alloc opt on unknown offset with references (#47076) Fixes issued mentioned in https://github.com/JuliaLang/julia/issues/47075#issuecomment-1269283426 10 October 2022, 18:09:38 UTC
1cb70ff type_lift_pass: Don't introduce unnecessary phi nodes (#47119) Try to avoid introducing phi nodes whos edges all have the same value. This cuts down the generated IR a bit and exposes more optimization opportunities. While we're at it, also allow IncrementalCompact to fold :throw_undef_if_not nodes with constant condition (which happen more frequently now, since a condition that is proven defined on all reachable paths now has some chance to end up as a constant condition rather than a PhiNode SSAValue). 10 October 2022, 17:40:27 UTC
233a37d Fix whitespace (#47120) 10 October 2022, 17:11:51 UTC
18cbaba clarify common confusion about allocations (#46383) 10 October 2022, 13:16:00 UTC
6f595e6 Explicitness on the ismutable(v) function. (#46466) 10 October 2022, 13:14:55 UTC
ea99174 Make print_sorted_stdlibs robust to stray files (#46697) 10 October 2022, 13:10:06 UTC
729cdb4 Test that *Error and *Exception types subtype Exception and fix cases where they don't (#47010) * Make PaddingError and UnwrapTaskFailedException subtype Exception and test that all such types do the same 10 October 2022, 11:34:10 UTC
abb1b2f Update manual heading for arrays (#47018) 10 October 2022, 11:33:27 UTC
0dada17 fix invalidations when loading ForwardDiff.jl (#47091) 10 October 2022, 11:30:58 UTC
1471cd9 lu should throw on matrix of NaNs (#47098) 10 October 2022, 11:20:25 UTC
1c1dfa2 warn against `@irrational` (#47103) 10 October 2022, 11:18:51 UTC
cf44223 Remove unused `issorted` function from compiler (#46691) 10 October 2022, 11:05:14 UTC
7beeaf7 make REPL completions robust against `expanduser` throwing (#47058) 10 October 2022, 10:58:11 UTC
7bd8311 Add example for broadcasted ∘ (#47007) and update the last example so that order of application is relevant 10 October 2022, 10:34:56 UTC
6904559 tidy test cases added by #47066 (#47118) 10 October 2022, 08:05:48 UTC
d0b15c2 lattice: Thread through lattice argument for getfield_tfunc (#47097) Like `tuple`, `getfield` needs some lattice awareness to give the correct answer in the presence of extended lattices. Refactor to split and thread through the lattice argument through _getfield_tfunc so external lattices can provide `getfield` tfuncs for their custom elements. 10 October 2022, 03:46:08 UTC
25e3809 Check sizes in 3-arg diagonal (dot-)product (#47114) 10 October 2022, 02:10:21 UTC
b67adb1 Make @specialize actually work if the module was @nospecialize'd (#47106) In compiler/tfuncs.jl, we're assuming that after a `@nospecialize` at top level, a subsequent `@specialize` on the argument will override the toplevel `@nospecialize` (just like an argument-level `@nospecialize` overrides a toplevel `@specialize`). However, it turns out we never implemented that support, so the annotation was silently ignored. Fix that and add a test. 09 October 2022, 22:02:10 UTC
17afb66 Make Compiler use separate sorting algorithm. (#47066) * add Compiler sorting algorithm. Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com> Co-authored-by: Lilith Hafner <Lilith.Hafner@gmail.com> Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com> 08 October 2022, 20:15:41 UTC
2590712 make pending_perm a heap instead of sorted (#46586) Co-authored-by: Lilith Hafner <Lilith.Hafner@gmail.com> 08 October 2022, 15:37:27 UTC
60adc24 Replace Sorted Vector with BitSet in optimization passes (#46587) Co-authored-by: Jameson Nash <vtjnash@gmail.com> 08 October 2022, 13:23:24 UTC
0d90a0a Don't export `axp(b)y!` from `LinearAlgebra.BLAS` (#46851) 08 October 2022, 08:30:25 UTC
95cfd62 improve performance issue of `@nospecialize`-d keyword func call (#47059) This commit tries to fix and improve performance for calling keyword funcs whose arguments types are not fully known but `@nospecialize`-d. The final result would look like (this particular example is taken from our Julia-level compiler implementation): ```julia abstract type CallInfo end struct NoCallInfo <: CallInfo end struct NewInstruction stmt::Any type::Any info::CallInfo line::Int32 flag::UInt8 function NewInstruction(@nospecialize(stmt), @nospecialize(type), @nospecialize(info::CallInfo), line::Int32, flag::UInt8) return new(stmt, type, info, line, flag) end end @nospecialize function NewInstruction(newinst::NewInstruction; stmt=newinst.stmt, type=newinst.type, info::CallInfo=newinst.info, line::Int32=newinst.line, flag::UInt8=newinst.flag) return NewInstruction(stmt, type, info, line, flag) end @specialize using BenchmarkTools struct VirtualKwargs stmt::Any type::Any info::CallInfo end vkws = VirtualKwargs(nothing, Any, NoCallInfo()) newinst = NewInstruction(nothing, Any, NoCallInfo(), zero(Int32), zero(UInt8)) runner(newinst, vkws) = NewInstruction(newinst; vkws.stmt, vkws.type, vkws.info) @benchmark runner($newinst, $vkws) ``` > on master ``` BenchmarkTools.Trial: 10000 samples with 186 evaluations. Range (min … max): 559.898 ns … 4.173 μs ┊ GC (min … max): 0.00% … 85.29% Time (median): 605.608 ns ┊ GC (median): 0.00% Time (mean ± σ): 638.170 ns ± 125.080 ns ┊ GC (mean ± σ): 0.06% ± 0.85% █▇▂▆▄ ▁█▇▄▂ ▂ ██████▅██████▇▇▇██████▇▇▇▆▆▅▄▅▄▂▄▄▅▇▆▆▆▆▆▅▆▆▄▄▅▅▄▃▄▄▄▅▃▅▅▆▅▆▆ █ 560 ns Histogram: log(frequency) by time 1.23 μs < Memory estimate: 32 bytes, allocs estimate: 2. ``` > on this commit ```julia BenchmarkTools.Trial: 10000 samples with 1000 evaluations. Range (min … max): 3.080 ns … 83.177 ns ┊ GC (min … max): 0.00% … 0.00% Time (median): 3.098 ns ┊ GC (median): 0.00% Time (mean ± σ): 3.118 ns ± 0.885 ns ┊ GC (mean ± σ): 0.00% ± 0.00% ▂▅▇█▆▅▄▂ ▂▄▆▆▇████████▆▃▃▃▃▃▃▃▃▃▃▂▂▂▂▂▂▂▂▂▁▁▂▂▂▁▂▂▂▂▂▂▁▁▂▁▂▂▂▂▂▂▂▂▂ ▃ 3.08 ns Histogram: frequency by time 3.19 ns < Memory estimate: 0 bytes, allocs estimate: 0. ``` So for this particular case it achieves roughly 200x speed up. This is because this commit allows inlining of a call to keyword sorter as well as removal of `NamedTuple` call. Especially this commit is composed of the following improvements: - Add early return case for `structdiff`: This change improves the return type inference for a case when compared `NamedTuple`s are type unstable but there is no difference in their names, e.g. given two `NamedTuple{(:a,:b),T} where T<:Tuple{Any,Any}`s. And in such case the optimizer will remove `structdiff` and succeeding `pairs` calls, letting the keyword sorter to be inlined. - Tweak the core `NamedTuple{names}(args::Tuple)` constructor so that it directly forms `:splatnew` allocation rather than redirects to the general `NamedTuple` constructor, that could be confused for abstract input tuple type. - Improve `nfields_tfunc` accuracy as for abstract `NamedTuple` types. This improvement lets `inline_splatnew` to handle more abstract `NamedTuple`s, especially whose names are fully known but its fields tuple type is abstract. Those improvements are combined to allow our SROA pass to optimize away `NamedTuple` and `tuple` calls generated for keyword argument handling. E.g. the IR for the example `NewInstruction` constructor is now fairly optimized, like: ```julia julia> Base.code_ircode((NewInstruction,Any,Any,CallInfo)) do newinst, stmt, type, info NewInstruction(newinst; stmt, type, info) end |> only 2 1 ─ %1 = Base.getfield(_2, :line)::Int32 │╻╷ Type##kw │ %2 = Base.getfield(_2, :flag)::UInt8 ││┃ getproperty │ %3 = %new(Main.NewInstruction, _3, _4, _5, %1, %2)::NewInstructionstruction └── return %3 │ => NewInstruction ``` 08 October 2022, 06:39:39 UTC
df5b081 Special purpose inliner for Core.ifelse (#47096) This function isn't used as much anymore now that Base.ifelse is an actual generic function, but it's still used in a few places across the ecosystem, and there currently isn't anything that would fold it for constant conditions, so add a special case inliner for it. This probably doesn't have a huge impact, but I happened to run into a case where it was causing annoying suboptimialities and it's a quick fix. 08 October 2022, 03:57:32 UTC
4c0f8de Fix display of new after-attach IR nodes. (#47092) 07 October 2022, 21:12:22 UTC
f927d25 audit `copymutable_oftype` usage (#47063) 07 October 2022, 10:13:06 UTC
d498d36 Update eachsplit example, fixes #46751 (#47070) 07 October 2022, 07:11:51 UTC
f1b05c1 doc: fix incorrect wordings on sentence (#47054) 07 October 2022, 07:10:06 UTC
8d783ef Merge pull request #47051 from JuliaLang/avi/ircleanup optimizer: refactors on SSAIR 07 October 2022, 03:41:17 UTC
5334fa8 Tests for bunchkaufman and cholesky of AbstractMatrix (#47081) 07 October 2022, 03:30:12 UTC
9e53f51 Fix IR corruption in cfg_simplify! (#47073) There were two issues here: 1. The code was assuming that any negative index in the BB rename array meant to skip the array, but the IncrementalCompact code was only processing -1. Adjust that to match the assumption. 2. A statement that was expected to be skipped was not properly erased. cfg_simplify overrode the `IncrementalCompact`-or's decision to skip a node, but didn't properly erase it. Since skipped nodes were not renamed, this would result in invalid IR. 07 October 2022, 03:21:48 UTC
0620361 Fix oracle check failure in adce_pass (#47080) This is probably a real issue, though I did not see it cause an actual issue, only an oracle check failure if the verification is turned on. The issue was that we were failing to count the removal of phi node edges during the adce pass, so we were left with excessive counts at completion. 07 October 2022, 03:21:33 UTC
back to top