- Jun 11, 2023
-
-
Michael Liao authored
-
Kazu Hirata authored
-
Ben Shi authored
Fixes https://github.com/llvm/llvm-project/issues/63100 Reviewed By: aykevl Differential Revision: https://reviews.llvm.org/D152365
-
Ben Shi authored
Fixes https://github.com/llvm/llvm-project/issues/63100 Reviewed By: aykevl, Patryk27, jacquesguan Differential Revision: https://reviews.llvm.org/D152130
-
Kazu Hirata authored
The last use was removed by: commit ae0987d2 Author: Kazu Hirata <kazu@google.com> Date: Sat Jun 10 13:51:35 2023 -0700 Differential Revision: https://reviews.llvm.org/D152636
-
Kazu Hirata authored
The last use was removed by: commit fd48d0a0 Author: Kazu Hirata <kazu@google.com> Date: Sat Jun 10 13:51:37 2023 -0700 Differential Revision: https://reviews.llvm.org/D152635
-
Kazu Hirata authored
The last use was removed by: commit d623b2f9 Author: Arthur Eubanks <aeubanks@google.com> Date: Fri Mar 10 17:24:19 2023 -0800
-
Kazu Hirata authored
The last use was removed by: commit d623b2f9 Author: Arthur Eubanks <aeubanks@google.com> Date: Fri Mar 10 17:24:19 2023 -0800
-
Kazu Hirata authored
commit f7ca0133 Author: Nikita Popov <npopov@redhat.com> Date: Tue Feb 28 16:38:45 2023 +0100
-
Kazu Hirata authored
The last use was removed by: commit 934c82d3 Author: Florian Hahn <flo@fhahn.com> Date: Fri Feb 24 13:39:32 2023 +0100
-
Florian Hahn authored
Add extra test coverage with cases that showed mis-compiles in earlier versions of an upcoming patch. Also add tests for integer phis
-
Kazu Hirata authored
This reverts commit c0f9d7b0. A build error has been reported with gcc-7. This patch fixes: https://github.com/llvm/llvm-project/issues/63240
-
Noah Goldstein authored
Something like: `%r = mul %x, <33, 33, 33, ...>` Is best lowered as: `%tmp = %shl x, <5, 5, 5>; %r = add %tmp, %x` As well, since vectors have non-destructive shifts, we can also do cases where the multiply constant is `Pow2A +/- Pow2B` for arbitrary A and B, unlike in the scalar case where the extra `mov` instructions make it not worth it. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D150324 -
Noah Goldstein authored
We canonicalize rotate-right -> rotate-left in other places. Makes sense to do so here as well. Proof: https://alive2.llvm.org/ce/z/HL3TpK Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D152349
-
Noah Goldstein authored
Only do so if we don't create more instructions, so either both rotates have one use or one of the rotates has one use and both `AX` and `AY` are constant. Proof: https://alive2.llvm.org/ce/z/rVmJgz Differential Revision: https://reviews.llvm.org/D152348
-
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D152347
-
Hristo Hristov authored
Adds the remaining sections from [[ https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html | P1614R2 ]] Some entries were reordered for easier tracking. The items in the table match [[ https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html | P1614R2 ]]'s sections strictly. Reviewed By: Mordante, #libc Differential Revision: https://reviews.llvm.org/D152297
-
Kazu Hirata authored
This patch fixes: llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp:415:18: error: unused variable 'StBuff' [-Werror,-Wunused-variable]
-
Stanislav Mekhanoshin authored
There is no single possible reason to to it. Differential Revision: https://reviews.llvm.org/D152616
-
Sam James authored
Fails with cmake-3.27_rc1 otherwise: ``` CMake Error at /var/tmp/portage/sys-libs/libcxxabi-17.0.0_pre20230609/work/llvm/cmake/modules/HandleLLVMOptions.cmake:821 (CHECK_C_SOURCE_COMPILES): Unknown CMake command "CHECK_C_SOURCE_COMPILES". Call Stack (most recent call first): CMakeLists.txt:156 (include) ``` Needed for CHECK_C_SOURCE_COMPILES. Bug: https://bugs.gentoo.org/908233 Reviewed By: mgorny Differential Revision: https://reviews.llvm.org/D152622
-
Kazu Hirata authored
We stopped testing with -check-prefix=SAMPLEPGO-OLDPM and -check-prefix=THINLTO-OLDPM as of: commit 8a7a2807 Author: Thomas Preud'homme <thomasp@graphcore.ai> Date: Fri Sep 17 10:23:40 2021 +0100
-
Kazu Hirata authored
The corresponding function definition was removed by: commit 7be8341f Author: Arthur Eubanks <aeubanks@google.com> Date: Tue Apr 25 14:34:24 2023 -0700
-
Vikram authored
-
rikhuijzer authored
This patch aims to clarify which part of the docs is the summary and which part is the description. I did a preview of the output and think the suggested bold and italic style is much clearer and looks reasonably nice. I've considered also to enforce capitalization of the first letter of the summary and ending with a dot (as discussed in https://reviews.llvm.org/D151649), but it seems to me that the tradeoff in extra test running time is not worth it. Currently, `emitOpDoc` is not triggered for every `summary` during `check-mlir`. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D152621
-
Matt Arsenault authored
This is a quick fix for an assert when the source and dest have different address spaces. The pointer compare needs to have matching types, but we can't generically introduce addrspacecast and we don't know if the address spaces alias.
-
Ben Shi authored
Since ROLBRd needs an implicit R1 (on AVR) or an implicit R17 (on AVRTiny), we split ROLBRd to ROLBRdR1 (on AVR) and ROLBRdR17 (on AVRTiny). Reviewed By: aykevl, Patryk27 Differential Revision: https://reviews.llvm.org/D152248
-
Ben Shi authored
Reviewed By: Patryk27 Differential Revision: https://reviews.llvm.org/D152606
-
Ben Shi authored
Reviewed By: Patryk27 Differential Revision: https://reviews.llvm.org/D152605
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
The corresponding function definitions were removed by: commit 4153f989 Author: Arthur Eubanks <aeubanks@google.com> Date: Sun Oct 2 13:20:21 2022 -0700
-
Kazu Hirata authored
The corresponding function definitions were removed by: commit ef375048 Author: Arthur Eubanks <aeubanks@google.com> Date: Mon Oct 24 09:26:16 2022 -0700
-
Kazu Hirata authored
The corresponding definition was removed by: commit 54f9ee33 Author: Paul C. Anagnostopoulos <paul@windfall.com> Date: Thu Oct 22 02:58:49 2020 -0400
-
- Jun 10, 2023
-
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Tom Eccles authored
We need to allow recursive application of intrinsic lowering patterns, otherwise we cannot lower nested calls of the same intrinsic e.g. matmul(matmul(a, b), c). matmul(matmul(a, b), matmul(c, d)) requires hlfir.associate of hlfir expr with more than one use (TODO). Differential Revision: https://reviews.llvm.org/D152284
-
Vikram authored
This is an alternative to currently existing hostcall implementation and uses printf buffer similar to OpenCL, The data stored in the buffer (i.e the data frame) for each printf call are as follows, 1. Control DWord - contains info regarding stream, format string constness and size of data frame 2. Hash of the format string (if constant) else the format string itself 3. Printf arguments (each aligned to 8 byte boundary) The format string Hash is generated using LLVM's MD5 Message-Digest Algorithm implementation and only low 64 bits are used. The implementation still uses amdhsa metadata and hash is stored as part of format string itself to ensure minimal changes in runtime. Differential Revision: https://reviews.llvm.org/D150427
-
Paulo Matos authored
This commit implements support for WebAssembly table types and respective builtins. Table tables are WebAssembly objects to store reference types. They have a large amount of semantic restrictions including, but not limited to, only being allowed to be declared at the top-level as static arrays of zero-length. Not being arguments or result of functions, not being stored ot memory, etc. This commit introduces the __attribute__((wasm_table)) to attach to arrays of WebAssembly reference types. And the following builtins to manage tables: * ref __builtin_wasm_table_get(table, idx) * void __builtin_wasm_table_set(table, idx, ref) * uint __builtin_wasm_table_size(table) * uint __builtin_wasm_table_grow(table, ref, uint) * void __builtin_wasm_table_fill(table, idx, ref, uint) * void __builtin_wasm_table_copy(table, table, uint, uint, uint) This commit also enables reference-types feature at bleeding-edge. This is joint work with Alex Bradbury (@asb). Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D139010
-
Matt Arsenault authored
The commit that added the run says it's to hoist uniform parts of integer division expansion. That expansion is performed later, so this didn't do anything in that case. Move this later so the original test shows the improvement. This also saves a run of "Canonicalize natural loops". Not sure why this appears to be still getting a separate loop PM run. Also feels a bit heavy to run this just for divide. Is there a way to specifically hoist the divide sequence when it expands?
-
Piotr Zegar authored
This is final optimization for this check. Main improvements comes from changing a logic order in mayShadow function, to first validate result of mayShadowImpl, then search primary context in a vectors. Secondary improvement comes from excluding all implicit code by using TK_IgnoreUnlessSpelledInSource. All other changes are just cosmetic improvements. Tested on Cataclysm-DDA open source project, result in check execution time reduction from 3682 seconds to 100 seconds (~0.25s per TU). That's 97.2% reduction for this change alone. Resulting in cumulative improvement for this check around -99.6%, finally bringing this check into a cheap category. Reviewed By: serge-sans-paille Differential Revision: https://reviews.llvm.org/D151594
-