- Aug 04, 2023
-
-
Podchishchaeva, Mariya authored
Just exit instead. Fixes https://github.com/llvm/llvm-project/issues/42535 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D156244
-
Ben Shi authored
These tests will be optimzied with BTSTI16/BTSTI32 in the future. Reviewed By: zixuan-wu Differential Revision: https://reviews.llvm.org/D154767
-
Ben Shi authored
Reviewed By: zixuan-wu Differential Revision: https://reviews.llvm.org/D153614
-
David Green authored
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D156987
-
Jay Foad authored
All targets that require register scavenging now use backwards frame index elimination. Differential Revision: https://reviews.llvm.org/D156986
-
Nikolas Klauser authored
These are changes to allow GCC 13 to successfully compile the runtimes stack. Reviewed By: ldionne, #libc, #libunwind, MaskRay Spies: MaskRay, zibi, SeanP, power-llvm-team, mstorsjo, arichardson, libcxx-commits Differential Revision: https://reviews.llvm.org/D151387
-
Piyou Chen authored
Here is the proposal https://github.com/riscv-non-isa/riscv-c-api-doc/pull/47. The version that omit the domain argument imply domain=__RISCV_NTLH_ALL. ``` type __riscv_ntl_load (type *ptr); void __riscv_ntl_store (type *ptr, type val); ``` Reviewed By: kito-cheng, craig.topper Differential Revision: https://reviews.llvm.org/D156221
-
ManuelJBrito authored
This patch restricts the argument of performSymbolicEvaluation to an Instruction and simplifies the code accordingly. Differential Revision: https://reviews.llvm.org/D156994
-
Konstantin Varlamov authored
`print` functions require `FILE` and `stdout` to be available and cause compilation errors on platforms that don't support the file system. Differential Revision: https://reviews.llvm.org/D156585
-
Konstantin Varlamov authored
Make it a multichoice string to closer mirror the CMake variable. This allows writing `UNSUPPORTED: libcpp-hardening-mode=unchecked` rather than `UNSUPPORTED: !libcpp-has-hardened-mode && !libcpp-has-debug-mode`. Differential Revision: https://reviews.llvm.org/D155906
-
Adrian Kuegel authored
Remove redundant returns at end of function.
-
Kazu Hirata authored
The last use was removed by: commit b1f41685 Author: Alexandros Lamprineas <alexandros.lamprineas@arm.com> Date: Thu Jun 1 15:09:08 2023 +0100
-
Justin Bogner authored
-
Justin Bogner authored
These flags are redundant since everything in the `cl_Group` explicitly sets flags anyway. Remove the Flags because they're confusing and will cause problems with some later refactorings.
-
Raghu Maddhipatla authored
[OpenMP] [Semantics] [Flang] Adding more semantic checks for USE_DEVICE_PTR and USE_DEVICE_ADDR clauses. The following restrictions for USE_DEVICE_PTR and USE_DEVICE_ADDR clauses on OMP TARGET DATA directive are implemented in this patch. - A list item may not be specified more than once in use_device_ptr clauses that appear on the directive. - A list item may not be specified more than once in use_device_addr clauses that appear on the directive. - A list item may not be specified in both a use_device_addr clause and a use_device_ptr clause on the directive. - A list item that appears in a use_device_ptr or use_device_addr clause must not be a structure element. - A list item that appears in a use_device_ptr must be of type C_PTR. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D155133
-
Jan Svoboda authored
This patch makes use of the infrastructure established in D157046 to speed up computation of the canonical context hash in the dependency scanner. This is somewhat hot code, since it's ran for all modules in the dependency graph of every TU. I also tried an alternative approach that tried to avoid allocations as much as possible (essentially doing `HashBuilder.add(Arg.toStringRef(ArgVec))`), but that turned out to be slower than approach in this patch. Note that this is not problematic in the same way command-line hashing used to be prior D143027. The lambda is now being called even for constant strings. Depends on D157046. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D157052
-
Jan Svoboda authored
This patch makes use of the infrastructure established in D157046 to avoid needless allocations via `StringSaver`. Depends on D157046. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D157048
-
Jan Svoboda authored
This patch abstracts away the string allocation and vector push-back from command line generation. Instead, **all** generated arguments are passed into `ArgumentConsumer`, which may choose to do the string allocation and vector push-back, or something else entirely. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D157046
-
Kai Luo authored
Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D156982
-
Freddy Ye authored
Reviewed By: skan Differential Revision: https://reviews.llvm.org/D155662
-
Fangrui Song authored
so that they lead to an error when compiled for non-x86 targets. Follow-up to D151590. ``` % aarch64-linux-gnu-gcc -c -mavx a.c aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-mavx’ % clang --target=aarch64-unknown-linux-gnu -c -mavx a.c # without this patch clang: warning: argument unused during compilation: '-mavx' [-Wunused-command-line-argument] ... % clang --target=aarch64-unknown-linux-gnu -c -mavx a.c # with this patch clang: error: unsupported option '-mavx' for target 'aarch64-unknown-linux-gnu' ``` As a workaround for https://github.com/llvm/llvm-project/issues/63270, we don't report an error for -msse4.2. Reviewed By: pengfei, skan Differential Revision: https://reviews.llvm.org/D156962
-
Shilei Tian authored
There is no `threadDim` in CUDA. Instead, it is `blockDim`. Then the current `blockDim` is `gridDim` in CUDA. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D157051
-
Shilei Tian authored
This patch fixes the issue that multiple definition of kernel environment global variables can occur because of wrong linkage. Fixes #64284. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D156955
-
Zhongyunde authored
Fixes https://github.com/llvm/llvm-project/issues/64339 proofs: https://alive2.llvm.org/ce/z/yZ_I2a Reviewed By: goldstein.w.n Differential Revision: https://reviews.llvm.org/D156881
-
Zhongyunde authored
this PR tries to match the following pattern, seperate from D156881 ``` %vscale = call i64 @llvm.vscale.i64() %shift = shl nuw nsw i64 %vscale, 11 ``` Now, we only check the shl recursively when the OrZero is true. Reviewed By: goldstein.w.n Differential Revision: https://reviews.llvm.org/D157062 -
Alex Langford authored
Differential Revision: https://reviews.llvm.org/D156934
-
Alexey Bataev authored
Use O(nlogn) instead of O(N2) (N <= 32) sorting approach and do not try to revectorize all possible combinations of stores, if they definitely cannot be combined because of mem/data dependencies. Compile time (O3 + lto, skylake_avx512): External/SPEC/CINT2006/483.xalancbmk/483.xalancbmk.test 117.15 120.11 2.5% External/SPEC/CINT2017speed/623.xalancbmk_s/623.xalancbmk_s.test 203.67 207.42 1.8% External/SPEC/CFP2017rate/526.blender_r/526.blender_r.test 232.43 235.01 1.1% External/SPEC/CINT2017rate/523.xalancbmk_r/523.xalancbmk_r.test 205.49 207.25 0.9% External/SPEC/CFP2017rate/510.parest_r/510.parest_r.test 310.46 306.23 -1.4% Link time (O3+lto, skylake_avx512): External/SPEC/CFP2017rate/526.blender_r/526.blender_r.test 1383.69 1475.94 6.7% Other changes are too small, cannot rely on them. size..text Program size..text results results0 diff test-suite :: SingleSource/Regression/C/Regression-C-sumarray.test 392.00 1439.00 267.1% test-suite :: MultiSource/Applications/JM/ldecod/ldecod.test 394258.00 394818.00 0.1% test-suite :: MultiSource/Applications/JM/lencod/lencod.test 846355.00 847075.00 0.1% test-suite :: External/SPEC/CINT2006/464.h264ref/464.h264ref.test 782816.00 783360.00 0.1% test-suite :: External/SPEC/CFP2017rate/508.namd_r/508.namd_r.test 779667.00 779923.00 0.0% test-suite :: MultiSource/Benchmarks/mafft/pairlocalalign.test 224398.00 224446.00 0.0% test-suite :: MultiSource/Applications/oggenc/oggenc.test 185019.00 185035.00 0.0% test-suite :: External/SPEC/CFP2017rate/526.blender_r/526.blender_r.test 12487610.00 12488010.00 0.0% test-suite :: MultiSource/Benchmarks/7zip/7zip-benchmark.test 1051772.00 1051804.00 0.0% test-suite :: MultiSource/Applications/SPASS/SPASS.test 529586.00 529602.00 0.0% test-suite :: External/SPEC/CINT2006/400.perlbench/400.perlbench.test 1084684.00 1084716.00 0.0% test-suite :: MultiSource/Benchmarks/tramp3d-v4/tramp3d-v4.test 1014245.00 1014261.00 0.0% test-suite :: MultiSource/Benchmarks/MallocBench/espresso/espresso.test 223494.00 223478.00 -0.0% test-suite :: External/SPEC/CINT2017speed/625.x264_s/625.x264_s.test 660843.00 660795.00 -0.0% test-suite :: External/SPEC/CINT2017rate/525.x264_r/525.x264_r.test 660843.00 660795.00 -0.0% test-suite :: MultiSource/Applications/ClamAV/clamscan.test 568824.00 568760.00 -0.0% espresso - 2 more stores vectorized x264 - small number of changes in 3-4 functions, generated a bit more vector stores (2 4x zeroinitializer stores + some other small variations). clamscan - emitted 32xi8 store instead of several scalar stores + several 4x-8x stores. Differential Revision: https://reviews.llvm.org/D155246 -
Alex Voicu authored
`__dynamic_cast` relies on `type_info`, which its signature assumed to be in the generic / default address space. This patch corrects the oversight (we know that `type_info` resides in the GlobalVar address space) and adds an associated test. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D155870
-
Chia-hung Duan authored
`atomic_compare_exchange` was using `_strong` and `memory_order_acquire` by default. This is not aligned with general use, for example, in C++, the default is `memory_order_seq_cst`. To reduce the ambiguity, make the version and ordering explicitly. Reviewed By: cferris Differential Revision: https://reviews.llvm.org/D156952
-
Jan Svoboda authored
This will make it possible to accept the spelling as `StringLiteral` in D157029 and avoid some unnecessary allocations in a later patch. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D157035
-
Zhen Wang authored
-
Bjorn Pettersson authored
Differential Revision: https://reviews.llvm.org/D157016
-
Bjorn Pettersson authored
Differential Revision: https://reviews.llvm.org/D156911
-
Florian Hahn authored
The last dependency of code defined in LoopVectorize.cpp has been removed a while ago. Move VPTransformState::get() to VPlan.cpp where other members are also defined.
-
Andrzej Warzynski authored
Differential Revision: https://reviews.llvm.org/D156823
-
Andrew Lenharth authored
OpInterface inheritance will duplicate base interfaces, causing compilation failure. Unique the set of base interfaces. Reviewed By: rriddle, jdd Differential Revision: https://reviews.llvm.org/D156964
-
Tom Yang authored
Summary: In cases where the PC has no function name, lldb-vscode crashes. `lldb::SBFrame::GetDisplayFunctionName()` returns a `nullptr`, and when we attempt to construct an `std::string`, it raises an exception. Test plan: This can be observed with creating a test file (credit to @clayborg for the example): ``` int main() { typedef void (*FooCallback)(); FooCallback foo_callback = (FooCallback)0; foo_callback(); // Crash at zero! return 0; } ``` and attempting to debug the file through VSCode. I add a test case in D156732 which should cover this. Differential Revision: https://reviews.llvm.org/D156970 -
Emilio Cota authored
-