-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Bump LLVM to v19.1.1+1 #56130
base: master
Are you sure you want to change the base?
Bump LLVM to v19.1.1+1 #56130
Conversation
c1900d0
to
adc7db4
Compare
The EDIT: gcc is giving a slightly different warning on CI but likely a bug as well |
In that case you can guard the offending line with something like #pragma GCC diagnostic push
#if defined(_COMPILER_GCC_) && __GNUC__ >= 12 // if this is version-dependent
// Explain why this is being ignored...
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
...
#pragma GCC diagnostic pop |
Also, all tests are passing already on aarch64-darwin 🥳 |
Looks like the only two issues are a incorrect warning during the build (mose's suggestion doesn't seem to work though |
Guessing the asan problem is |
Without the push-and-pop, that becomes closer to just adding Lines 23 to 25 in 80e60c8
|
5c3c307
to
24f4d93
Compare
Looks like remaining issue is some failures in |
Second analyzegc failure looks incorrect, it seems to incorrectly think |
@nanosoldier |
Need to rebase on master now that #56133 has been merged. |
f6b2376
to
e12026f
Compare
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. |
FWIW, the standard way to deal with this is to add an assert and a comment, as that will make both reviewers and bots happy |
The %12 = select i1 %exactly_isa.not, float -0.000000e+00, float %immutable_union.sroa.0.0.copyload, !dbg !77
%value_phi6 = fadd float %value_phi, %12, !dbg !77 to %12 = fadd float %value_phi, %immutable_union.sroa.0.0.copyload, !dbg !77
%value_phi6 = select i1 %exactly_isa.not, float %value_phi, float %12, !dbg !77 prevents the loopvectorize pass from SIMDing the code. I suspect the other regression for the union.array benchmarks are similar. |
I'll try rebasing on top of #52850 and see if that fixes the regressions. |
@nanosoldier |
The package evaluation job you requested has completed - possible new issues were detected. |
@nanosoldier |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. |
looks like there are a few 8x (vectorization probably) regressions here. |
PkgEval failure for McCormick is |
c537718
to
dfec0aa
Compare
Analyzegc is still failing:
|
`clang -print-runtime-dir` reports a non-existent directory as we build with `LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF`. See llvm/llvm-project#102834. I suspect llvm/llvm-project@b6a1473 caused the change by chaning the code in Driver.cpp to not check whether the printed directory existed.
Locally I get: ``` In file included from /home/rag/Documents/Code/julia/usr/include/llvm/Object/ObjectFile.h:18, from /home/rag/Documents/Code/julia/usr/include/llvm/DebugInfo/DIContext.h:18, from /home/rag/Documents/Code/julia/src/debuginfo.cpp:6: In function 'bool llvm::operator==(llvm::StringRef, llvm::StringRef)', inlined from 'bool llvm::operator!=(llvm::StringRef, llvm::StringRef)' at /home/rag/Documents/Code/julia/usr/include/llvm/ADT/StringRef.h:874:71, inlined from 'objfileentry_t find_object_file(uint64_t, llvm::StringRef)' at /home/rag/Documents/Code/julia/src/debuginfo.cpp:948:43, inlined from 'bool jl_dylib_DI_for_fptr(size_t, llvm::object::SectionRef*, int64_t*, llvm::DIContext**, bool, bool*, uint64_t*, void**, char**, char**)' at /home/rag/Documents/Code/julia/src/debuginfo.cpp:1135:34: /home/rag/Documents/Code/julia/usr/include/llvm/ADT/StringRef.h:871:20: warning: 'int __builtin_memcmp_eq(const void*, const void*, long unsigned int)' specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overread] 871 | return ::memcmp(LHS.data(), RHS.data(), LHS.size()) == 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/rag/Documents/Code/julia/src/debuginfo.cpp: In function 'bool jl_dylib_DI_for_fptr(size_t, llvm::object::SectionRef*, int64_t*, llvm::DIContext**, bool, bool*, uint64_t*, void**, char**, char**)': /home/rag/Documents/Code/julia/src/debuginfo.cpp:1133:11: note: source object allocated here 1133 | fname = dlinfo.dli_fname; ``` On CI: ``` In file included from /cache/build/builder-amdci4-2/julialang/julia-master/usr/include/llvm/Object/ObjectFile.h:18, from /cache/build/builder-amdci4-2/julialang/julia-master/usr/include/llvm/DebugInfo/DIContext.h:18, from /cache/build/builder-amdci4-2/julialang/julia-master/src/debuginfo.cpp:6: In function 'bool llvm::operator==(llvm::StringRef, llvm::StringRef)', inlined from 'bool llvm::operator!=(llvm::StringRef, llvm::StringRef)' at /cache/build/builder-amdci4-2/julialang/julia-master/usr/include/llvm/ADT/StringRef.h:874:71, inlined from 'objfileentry_t find_object_file(uint64_t, llvm::StringRef)' at /cache/build/builder-amdci4-2/julialang/julia-master/src/debuginfo.cpp:943:43, inlined from 'bool jl_dylib_DI_for_fptr(size_t, llvm::object::SectionRef*, int64_t*, llvm::DIContext**, bool, bool*, uint64_t*, void**, char**, char**)' at /cache/build/builder-amdci4-2/julialang/julia-master/src/debuginfo.cpp:1126:47: /cache/build/builder-amdci4-2/julialang/julia-master/usr/include/llvm/ADT/StringRef.h:871:20: error: 'int __builtin_memcmp_eq(const void*, const void*, long unsigned int)' specified size 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=] 871 | return ::memcmp(LHS.data(), RHS.data(), LHS.size()) == 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
The change to `GCChecker.cpp` is so the static analyzer doesn't see e.g. a call to a function pointer in llvm and then complain that it might be a safepoint.
e7698a13e319a9919af04d3d693a6f6ea7168a44 isn't in llvm 19
dd978af
to
71f9f18
Compare
@nanosoldier |
Including #55650 till that's merged.