- Sep 08, 2022
-
-
Djordje Todorovic authored
This reverts commit f8799391.
-
Krzysztof Parzyszek authored
-
Eric Wang authored
This patch introduces the priority analysis and the priority advisor, the default implementation, and the scaffolding for introducing the other implementations of the advisor. Reviewed By: mtrofin Differential Revision: https://reviews.llvm.org/D132835
-
Sanjay Patel authored
(trunc (1 << Y) to iN) == 0 --> Y u>= N (trunc (1 << Y) to iN) != 0 --> Y u< N These can be generalized in several ways as noted by the TODO items, but this handles the pattern in the motivating bug report. Fixes #51889 Differential Revision: https://reviews.llvm.org/D115480
-
Florian Hahn authored
-
Djordje Todorovic authored
-
Ivan Kosarev authored
Reviewed By: nhaehnle Differential Revision: https://reviews.llvm.org/D124671
-
Jay Foad authored
-
Florian Hahn authored
VPReplicateRecipe::isUniform actually means uniform-per-parts, hence a scalar instruction is generated per-part. This is a potential alternative D132892. For now the current patch only catches cases where the address is trivially invariant (defined outside VPlan), while D132892 catches any address that is considered invariant by SCEV AFAICT. It should be possible to hoist fully invariant recipes feeding loads out of the vector loop region as well, but in practice LICM should do that already. This version of the patch artificially limits this to loads to make it easier to compare, but this restriction should be easily liftable. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D133019
-
Florian Hahn authored
Add extra tests where shuffle (tbl2, tbl2) can be folded to tbl4. Regenerate check lines automatically as well.
-
Nikita Popov authored
-
Christian Sigg authored
These non-functional changes will make it easier to add the lit tests to the bazel build (see utils/bazel). Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D133416
-
Matt Devereau authored
Add calling convention test for callee functions that have SVE parameters outside of the z0-z7 range
-
liqinweng authored
Update the comments for reverse shuffles and add tests Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D132730
-
liqinweng authored
Reviewed By: jacquesguan Differential Revision: https://reviews.llvm.org/D132992
-
Manuel Brito authored
Replacing UndefValue with PoisonValue in this test where it's use as dummy value in light of the efforts to remove undef from llvm. Differential Revision: https://reviews.llvm.org/D133481
-
Nico Weber authored
-
David Spickett authored
Fixes #57486 These pre v4 architectures are not specifically supported by codegen. As demonstrated in the linked issue. GCC has not supported 3M since GCC 9 and presumably 2 and 2A earlier than that. So we are aligned in that sense. (see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2abd6e34fcf3bd9f9ffafcaa47cdc3ed443f9add) This removes the options and associated testing. The Pre_v4 build attribute remains mainly because its absence would be more confusing. It will not be used other than to complete the list of build attributes as shown in the ABI. https://github.com/ARM-software/abi-aa/blob/main/addenda32/addenda32.rst#3352the-target-related-attributes Reviewed By: nickdesaulniers, peter.smith, rengolin Differential Revision: https://reviews.llvm.org/D133109
-
Johannes Reifferscheid authored
-
chenglin.bi authored
-
Fangrui Song authored
The driver option translates to --compress-debug-sections=zstd cc1/cc1as/GNU assembler/linker options. `clang -g -gz=zstd -c a.c` generates ELFCOMPRESS_ZSTD compressed debug info sections if compression decreases size.
-
Nikita Popov authored
As part of https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179, this removes the fneg constant expression (which is, incidentally, the only unary operator expression). Differential Revision: https://reviews.llvm.org/D133418
-
Johannes Reifferscheid authored
Currently, if the `before` and `after` regions of a while op have tensor args in different indices, this leads to a crash. This moves the pass-through check for args to the handling of the condition block, since that is where the results are produced, so it's also where copies must be made. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D133477
-
Fangrui Song authored
Clang's default C++ standard is now `gnu++17` instead of `gnu++14`: https://discourse.llvm.org/t/c-objc-switch-to-gnu-17-as-the-default-standard/64360 * CUDA/HIP are unchanged: C++14 from D103221. * Sony PS4/PS5 are unchanged: https://discourse.llvm.org/t/c-objc-switch-to-gnu-17-as-the-default-standard/64360/6 * lit feature `default-std-cxx` is added to keep CLANG_DEFAULT_STD_CXX=xxx tests working. Whether the cmake variable should be retained is disccused in D133375. Depends on D131464 Reviewed By: #clang-language-wg, aaron.ballman Differential Revision: https://reviews.llvm.org/D131465
-
Uday Bondhugula authored
This has a broad impact on diagnostics that attach an operation. Ops with one or more regions will now be printed on a new line. It was confusing and hard to read with a trailing first line for ops with regions. Before: ``` <unknown>:0: note: see current operation: affine.for %arg3 = 0 to 8192 { affine.for %arg4 = 0 to 8192 step 512 { affine.for %arg5 = 0 to 8192 step 128 { ... ``` After: ``` <unknown>:0: note: see current operation: affine.for %arg3 = 0 to 8192 { affine.for %arg4 = 0 to 8192 step 512 { affine.for %arg5 = 0 to 8192 step 128 { ... ``` Differential Revision: https://reviews.llvm.org/D132645 -
Valentin Clement authored
From Fortran 2018 standard 9.7.3.2 point 6: When a procedure is invoked, any allocated allocatable object that is an actual argument corresponding to an INTENT (OUT) allocatable dummy argument is deallocated; any allocated allocatable object that is a subobject of an actual argument corresponding to an INTENT (OUT) dummy argument is deallocated. Deallocation is done on the callee side. For BIND(C) procedure, the deallocation is also done on the caller side. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D133348
-
Timm Bäder authored
As the comment states, this code should only run for primitive arrays. This should fix the memory sanitize builds.
-
Fangrui Song authored
and add --compress-debug-sections=zstd to llvm-mc for testing. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D130724
-
Fangrui Song authored
Also, add ELFCOMPRESS_ZSTD (2) from the approved generic-abi proposal: https://groups.google.com/g/generic-abi/c/satyPkuMisk ("Add new ch_type value: ELFCOMPRESS_ZSTD") Link: https://discourse.llvm.org/t/rfc-zstandard-as-a-second-compression-method-to-llvm/63399 ("[RFC] Zstandard as a second compression method to LLVM") Reviewed By: jhenderson, dblaikie Differential Revision: https://reviews.llvm.org/D130458
-
Fangrui Song authored
as high-level API on top of `llvm::compression::{zlib,zstd}::*`: * getReasonIfUnsupported: return nullptr if the specified format is supported, or (if unsupported) a string like `LLVM was not built with LLVM_ENABLE_ZLIB ...` * compress: dispatch to zlib::uncompress or zstd::uncompress * decompress: dispatch to zlib::uncompress or zstd::uncompress Move `llvm::DebugCompressionType` from MC to Support to avoid Support->MC cyclic dependency. There are 40+ uses in llvm-project. Add another enum class `llvm::compression::Format` to represent supported compression formats, which may be a superset of ELF compression formats. See D130458 (llvm-objcopy --{,de}compress-debug-sections for zstd) for a use case. Link: https://discourse.llvm.org/t/rfc-zstandard-as-a-second-compression-method-to-llvm/63399 ("[RFC] Zstandard as a second compression method to LLVM") --- Note: this patch alone will cause -Wswitch to llvm/lib/ObjCopy/ELF/ELFObject.cpp Reviewed By: ckissane, dblaikie Differential Revision: https://reviews.llvm.org/D130506 -
Nikita Popov authored
This reverts commit e321c8dd. This causes many failures in llvm-test-suite, for example: /home/npopov/repos/llvm-test-suite/build-O3/tools/timeit --summary MultiSource/Applications/lambda-0.1.3/CMakeFiles/lambda.dir/token_stream.cc.o.time /home/npopov/repos/llvm-project/build/bin/clang++ -DNDEBUG -I/home/npopov/repos/llvm-test-suite/MultiSource/Applications/lambda-0.1.3 -O3 -w -Werror=date-time -MD -MT MultiSource/Applications/lambda-0.1.3/CMakeFiles/lambda.dir/token_stream.cc.o -MF MultiSource/Applications/lambda-0.1.3/CMakeFiles/lambda.dir/token_stream.cc.o.d -o MultiSource/Applications/lambda-0.1.3/CMakeFiles/lambda.dir/token_stream.cc.o -c /home/npopov/repos/llvm-test-suite/MultiSource/Applications/lambda-0.1.3/token_stream.cc /home/npopov/repos/llvm-test-suite/MultiSource/Applications/lambda-0.1.3/token_stream.cc:192:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register char chr; ^~~~~~~~~
-
Nikita Popov authored
This reverts commit 19dc3cff. This reverts commit 5b19a1f8. This reverts commit 9397648a. This reverts commit 10842b44. Breaks the GCC build, as reported here: https://reviews.llvm.org/D130506#3776415
-
Fangrui Song authored
-
Fangrui Song authored
and add --compress-debug-sections=zstd to llvm-mc for testing. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D130724
-
Fangrui Song authored
Also, add ELFCOMPRESS_ZSTD (2) from the approved generic-abi proposal: https://groups.google.com/g/generic-abi/c/satyPkuMisk ("Add new ch_type value: ELFCOMPRESS_ZSTD") Link: https://discourse.llvm.org/t/rfc-zstandard-as-a-second-compression-method-to-llvm/63399 ("[RFC] Zstandard as a second compression method to LLVM") Reviewed By: jhenderson, dblaikie Differential Revision: https://reviews.llvm.org/D130458
-
Fangrui Song authored
as high-level API on top of `llvm::compression::{zlib,zstd}::*`: * getReasonIfUnsupported: return nullptr if the specified format is supported, or (if unsupported) a string like `LLVM was not built with LLVM_ENABLE_ZLIB ...` * compress: dispatch to zlib::uncompress or zstd::uncompress * decompress: dispatch to zlib::uncompress or zstd::uncompress Move `llvm::DebugCompressionType` from MC to Support to avoid Support->MC cyclic dependency. There are 40+ uses in llvm-project. Add another enum class `llvm::compression::Format` to represent supported compression formats, which may be a superset of ELF compression formats. See D130458 (llvm-objcopy --{,de}compress-debug-sections for zstd) for a use case. Link: https://discourse.llvm.org/t/rfc-zstandard-as-a-second-compression-method-to-llvm/63399 ("[RFC] Zstandard as a second compression method to LLVM") Differential Revision: https://reviews.llvm.org/D130506 -
jacquesguan authored
This patch uses round/roundf of libm to fold RoundOp of constant. Differential Revision: https://reviews.llvm.org/D133401
-
gonglingqin authored
Depends on D131228 Differential Revision: https://reviews.llvm.org/D131229
-
gonglingqin authored
In order to avoid the patch being too large, the atomicrmw xchg operation on LA32 will be added later Differential Revision: https://reviews.llvm.org/D131228
-
Christian Sigg authored
-