Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backports for julia 1.9.0-beta3 #48075

Merged
merged 40 commits into from
Jan 17, 2023
Merged

Backports for julia 1.9.0-beta3 #48075

merged 40 commits into from
Jan 17, 2023

Commits on Jan 2, 2023

  1. Update the libuv checksums (#47763)

    (cherry picked from commit 293ab47)
    DilumAluthge authored and KristofferC committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    1365281 View commit details
    Browse the repository at this point in the history
  2. Don't double-count inference time (#48033)

    * Use the same timing reentrancy counter for both inference and codegen
    
    * Add some timing tests
    
    * Add macro-based timer test
    
    (cherry picked from commit 1fda4bb)
    pchintalapudi authored and KristofferC committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    c22bdcc View commit details
    Browse the repository at this point in the history
  3. [CompilerSupportLibraries_jll] Add libssp for more platforms (#48027)

    (cherry picked from commit 0f2665f)
    giordano authored and KristofferC committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    0ede754 View commit details
    Browse the repository at this point in the history
  4. Adjust assertion for pkgimage & code-coverage (#48036)

    (cherry picked from commit cc5bc87)
    vchuravy authored and KristofferC committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    106f5be View commit details
    Browse the repository at this point in the history
  5. use the correct env variable name to set default openblas num threads (

    …#48064)
    
    This was add to OpenBLAS in OpenMathLib/OpenBLAS#3773 and was supposed to be used in #46844 but was likely typod
    
    (cherry picked from commit 75bc5ee)
    KristofferC committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    05c8182 View commit details
    Browse the repository at this point in the history
  6. update Pkg

    KristofferC committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    14d3caf View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2023

  1. use invokelatest to prevent invalidations in TOML

    (cherry picked from commit 5c3646b)
    KristofferC committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    13c1435 View commit details
    Browse the repository at this point in the history
  2. bump Pkg

    KristofferC committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    149aa57 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. Configuration menu
    Copy the full SHA
    78bc9e0 View commit details
    Browse the repository at this point in the history
  2. Switch back to LLVM's IR linker (#48106)

    (cherry picked from commit 35d1840)
    
    Co-authored-by: Tim Besard <tim.besard@gmail.com>
    pchintalapudi and maleadt committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    08d4d81 View commit details
    Browse the repository at this point in the history
  3. Avoid a couple of InexactErrors in the IdDict code. (#48116)

    (cherry picked from commit 321c5f5)
    maleadt committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    8e88b1b View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2023

  1. 🤖 [backports-release-1.9] Bump the Pkg stdlib from d3883ad7b to 5ae86…

    …6151 (#48186)
    
    Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
    DilumAluthgeBot and DilumAluthge authored Jan 9, 2023
    Configuration menu
    Copy the full SHA
    6c5a4a5 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

  1. Merge pull request #48158 from JuliaLang/avi/inbounds

    effects: taint `:consistent`-cy on `:inbounds` and `:boundscheck` exprs
    aviatesk committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    bf8d4ed View commit details
    Browse the repository at this point in the history
  2. Avoid allocations in reduction over adjoints (#48120)

    (cherry picked from commit a9506f5)
    dkarrasch authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    46cd080 View commit details
    Browse the repository at this point in the history
  3. Don't perform extra inference during incremental image creation (#48054)

    As noted in #48047, we're currently attempting to infer extra
    methods during incremental image saving, which causes us to miss
    edges in the image. In particular, in the case of #48047, Cthulhu
    had the `compile=min` option set, which caused the code instance
    for `do_typeinf!` to not be infered. However, later it was
    nevertheless queued for precompilation, causing inference to
    occur at an inopportune time.
    
    This PR simply prevents code instances that don't explicitly have
    the `->precompile` flag set (e.g. the guard instance created for
    the interpreter) from being enqueued for precompilation. It is
    not clear that this is necessarily the correct behavior - we may
    in fact want to infer these method instances, just before we set
    up the serializer state, but for now this fixes #48047 for me.
    
    I also included an appropriate test and a warning message if
    we attempt to enter inference when this is not legal, so any
    revisit of what should be happening here can hopefully make
    use of those.
    
    (cherry picked from commit 80aeebe)
    Keno authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    a064027 View commit details
    Browse the repository at this point in the history
  4. Deprecate AMD's LWP extension (#48131)

    (cherry picked from commit dc2b4d9)
    vchuravy authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    6c0c8b3 View commit details
    Browse the repository at this point in the history
  5. Fix invalidations in finish_show_ir (#48134)

    The whole module is under `@nospecialize`, so inference
    needs us to annotate the argtypes.
    
    (cherry picked from commit 0913cbc)
    timholy authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    cb13bad View commit details
    Browse the repository at this point in the history
  6. Make QuickerSort efficient for non-homogonous eltype (#47973)

    * set `v[j] = pivot` in partition rather than returning pivot to caller to make partition! type stable for non-concrete eltype
    
    (cherry picked from commit 54aa57c)
    LilithHafner authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    fd788ad View commit details
    Browse the repository at this point in the history
  7. Math tests: if fma is not available, relax some tests from exact equa…

    …lity to approximate equality (#48102)
    
    * Math tests: if fma is not available, relax some tests from exact equality to approximate equality
    
    * Apply suggestions from code review
    
    Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
    
    * `has_fma` has no runtime support
    
    * Add `Rational{Int}`
    
    * Put the FMA support info in the testset context
    
    * Fix whitespace
    
    * Remove inaccurate testset name
    
    Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
    (cherry picked from commit 6d14b0f)
    DilumAluthge authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    3296f9b View commit details
    Browse the repository at this point in the history
  8. Make cache mismatch log more informative (#48168)

    (cherry picked from commit 0847a7f)
    IanButterworth authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    fdf89d8 View commit details
    Browse the repository at this point in the history
  9. Extend method root to support more than 16bit roots (#48185)

    (cherry picked from commit 53a0a69)
    vchuravy authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    acb7e09 View commit details
    Browse the repository at this point in the history
  10. ensure jl_compilation_sig does not narrow Vararg (#48152)

    Some code cleanup, and an early exit path that avoids trying to create a
    compilation signature from something that cannot be turned into one.
    Previously we might try a little too hard to make one, even if it meant
    we ignored that it was expected to be Varargs.
    
    Fix #48085
    
    (cherry picked from commit 45c81b1)
    vtjnash authored and KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    5547468 View commit details
    Browse the repository at this point in the history
  11. add a suffix to a new cache files in case of failure of renaming it t…

    …o an exisiting cache file already in use (#48137)
    
    * add a suffix to a new cache files in case of failure of renaming it to an exisiting file
    
    (cherry picked from commit ec437b7)
    KristofferC committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    d5fbff1 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2023

  1. 🤖 [backports-release-1.9] Bump the Pkg stdlib from 5ae866151 to 747c1…

    …0acc (#48253)
    
    Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
    DilumAluthgeBot and DilumAluthge authored Jan 13, 2023
    Configuration menu
    Copy the full SHA
    fed0c20 View commit details
    Browse the repository at this point in the history
  2. Stop using rand(lo:hi) for QuickerSort pivot selection (#48241)

    Co-authored-by: Fredrik Ekre <ekrefredrik@gmail.com>
    (cherry picked from commit 793eaa3)
    LilithHafner authored and KristofferC committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    8d14fc3 View commit details
    Browse the repository at this point in the history
  3. move some badly typed logging calls behind an invokelatest (#48254)

    (cherry picked from commit 1a94dab)
    KristofferC committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    979fd53 View commit details
    Browse the repository at this point in the history
  4. also cache identify_package and locate_package during package loa…

    …ding (#48247)
    
    (cherry picked from commit 29fbd1c)
    KristofferC committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    32cae57 View commit details
    Browse the repository at this point in the history
  5. docstring for @time_imports: explain what is shown (it's not cumula…

    …tive) (#48248)
    
    Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
    (cherry picked from commit eb5f6d6)
    tfiers authored and KristofferC committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    ba490ff View commit details
    Browse the repository at this point in the history
  6. rename QuickerSort to ScratchQuickSort (#48160)

    (cherry picked from commit 9707594)
    LilithHafner authored and KristofferC committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    cbc63ac View commit details
    Browse the repository at this point in the history
  7. Don't deprecate splat (#48038)

    Keep the splat function and mention in the documentation that it's the
    recommended way of constructing a Base.Splat object.
    
    (cherry picked from commit 670190c)
    knuesel authored and KristofferC committed Jan 13, 2023
    Configuration menu
    Copy the full SHA
    68f4230 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2023

  1. Configuration menu
    Copy the full SHA
    f5fbc2d View commit details
    Browse the repository at this point in the history
  2. 🤖 [master] Bump the Tar stdlib from 6bfc114 to ff55460 (#48268)

    Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
    (cherry picked from commit 4f34aa9)
    DilumAluthgeBot authored and KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    5d67bdc View commit details
    Browse the repository at this point in the history
  3. Add inline to cache flags (#48179)

    and fix the behavior of the check-bounds flag.
    
    Co-authored-by: Kristoffer Carlsson <kcarlsson89@gmail.com>
    (cherry picked from commit 0c3b950)
    vchuravy authored and KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    f053566 View commit details
    Browse the repository at this point in the history
  4. bump Pkg to latest v1.9

    KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    c615cdd View commit details
    Browse the repository at this point in the history
  5. Make LLVM Profiling robust for multithreaded programs (#47778)

    * Use stringsteam to atomically write LLVM opt timings
    
    * Add boolean to ensure we don't _only_ write the after block
    
    * Use ios_printf
    
    Co-authored-by: Nathan Daly <NHDaly@gmail.com>
    (cherry picked from commit 8985403)
    bachdavi authored and KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    c168996 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #48029 from N5N3/inter-fix3

    Avoid some stackoverflow during typeintersect.
    
    (cherry picked from commit a5ab48f)
    N5N3 authored and KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    36d9822 View commit details
    Browse the repository at this point in the history
  7. Make sure reachable_var not falls into infinite recusion. (#48135)

    (cherry picked from commit de73c26)
    N5N3 authored and KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    698aafe View commit details
    Browse the repository at this point in the history
  8. Rework :inbounds effects tainting (#48246)

    This works to fix #48243, by only tanting effects if an `@inbounds` statement
    is actually reached. Further, it refines the `noinbounds` effect to be
    IPO-cached and used to track whether a particular method read the inbounds state.
    A `:boundscheck` expression now does not immediately taint consistencty, but
    instead, taints `noinbounds` only. Then, if a method that has `:noinbounds`
    tainted is called within an `@inbounds` region, consistency is tainted.
    Similarly, a tainted `:noinbounds` disables constant propagation at
    `@inbounds` statements or if the method propagates inbounds.
    
    (cherry picked from commit d544e78)
    Keno authored and KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    6694375 View commit details
    Browse the repository at this point in the history
  9. Make DemoteFloat16 a conditional pass (#43327)

    * add TargetMachine check
    
    * Add initial float16 multiversioning stuff
    
    * make check more robust and remove x86 check
    
    * move check to inside the pass
    
    * C++ is hard
    
    * Comment out the ckeck because it won't work inside the pass
    
    * whitespace in the comment
    
    * Change the logic not to depend on a TM
    
    * Add preliminary support for x86 test
    
    * Cosmetic changes
    
    (cherry picked from commit d18fd47)
    gbaraldi authored and KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    829c5bf View commit details
    Browse the repository at this point in the history
  10. Fix small nits in multiversioning (#47675)

    (cherry picked from commit 4562cfa)
    gbaraldi authored and KristofferC committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    05d3871 View commit details
    Browse the repository at this point in the history