- Aug 22, 2022
-
-
Vitaly Buka authored
The warning was: SemaType.cpp:9469:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
-
wanglei authored
This patch fix test failure due to D132006. Differential Revision: https://reviews.llvm.org/D132346
-
Max Kazantsev authored
Show that the issue also exists with positive steps.
-
Shao-Ce SUN authored
Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D121670
-
gonglingqin authored
Differential Revision: https://reviews.llvm.org/D131954
-
Christopher Di Bella authored
Depends on D116203 Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D131732
-
Christopher Di Bella authored
Adds * `__add_lvalue_reference` * `__add_pointer` * `__add_rvalue_reference` * `__decay` * `__make_signed` * `__make_unsigned` * `__remove_all_extents` * `__remove_extent` * `__remove_const` * `__remove_volatile` * `__remove_cv` * `__remove_pointer` * `__remove_reference` * `__remove_cvref` These are all compiler built-in equivalents of the unary type traits found in [[meta.trans]][1]. The compiler already has all of the information it needs to answer these transformations, so we can skip needing to make partial specialisations in standard library implementations (we already do this for a lot of the query traits). This will hopefully improve compile times, as we won't need use as much memory in such a base part of the standard library. [1]: http://wg21.link/meta.trans Co-authored-by: zoecarver Reviewed By: aaron.ballman, rsmith Differential Revision: https://reviews.llvm.org/D116203
-
Ting Wang authored
Fixes #56679. Reviewed By: ChuanqiXu, shchenz Differential Revision: https://reviews.llvm.org/D131953
-
wanglian authored
with setOperationPromotedToType. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D132213
-
Vitaly Buka authored
-
owenca authored
Fixes #56326. Differential Revision: https://reviews.llvm.org/D132097
-
Joe Loser authored
As a follow-up of https://reviews.llvm.org/D132318, now that the callers have been adjusted to use `std::is_invocable`, remove `llvm::is_invocable` and its tests. Differential Revision: https://reviews.llvm.org/D132321
-
Joe Loser authored
When reviewing https://reviews.llvm.org/D132330, I noticed a few pre-existing comments regarding the implementation of `llvm::bit_cast`. One comment is a bit misleading since `std::bit_cast` is a C++20 standard library thing, not a C++17 one (otherwise we could use it directly). Clarify that in the comment. Differential Revision: https://reviews.llvm.org/D132332
-
Craig Topper authored
If there are multiple conditional branches we shouldn't do any optimization.
-
Craig Topper authored
Similar to D132211, we can optimize x <s -1 ? x : -1 -> x <s 0 ? x : -1 Also improve the unsigned case from D132211 to use x != 0 which will give a bnez instruction which might be compressible. Differential Revision: https://reviews.llvm.org/D132252
-
Craig Topper authored
Don't macrofuse if the LUI has more than 1 user. That will likely require the LUI to have a different destination register post-RA. LUI+ADDI can only be fused if they write the same register.
-
Kazu Hirata authored
This patch removes macro tricks to check GCC versions. The commit message from 19262fc5 states that "is_trivially_copyable is only in GCC 5.1 and later". Note that we now require GCC 7.1 or higher. Since both std::is_trivially_constructible and std::is_trivially_copyable are C++11 features, and we now require C++17, we probably don't need to worry about the availability of the C++11 features. Differential Revision: https://reviews.llvm.org/D132330
-
Kazu Hirata authored
This patch removes llvm::is_trivially_copyable as it seems to be dead. Once I remove it, HAVE_STD_IS_TRIVIALLY_COPYABLE has no users, so this patch removes the macro also. The comment on llvm::is_trivially_copyable mentions GCC 4.9, but note that we now require GCC 7.1 or higher. Differential Revision: https://reviews.llvm.org/D132328
-
Sesha Kalyur authored
This patch adds support for the device clause on `Target` directive. Device clause was added in OpenMP specification version 4.5 to create a device data environment for the extent of a region. On target construct, the device expression be either be `ancestor` (taking after the parent) or assign a new `device_num`. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D126441
-
Simon Pilgrim authored
Eventually this will be part of the cost table lookup
-
Joe Loser authored
Use `std::void_t` instead of defining our own equivalent in `STLExtras.h` now that C++17 is available for use. Differential Revision: https://reviews.llvm.org/D132319
-
- Aug 21, 2022
-
-
Simon Pilgrim authored
Revert rG15de7aaa "[CostModel][X86] Add CodeSize/SizeLatency handling for fadd/fsub/fmul/fsqrt ops" This is unintentionally affecting some backend tests
-
Simon Pilgrim authored
Eventually this will be part of the cost table lookup
-
Mark de Wever authored
-
Kai Sasaki authored
Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D132201
-
Joe Loser authored
Fix the typo in the deprecated messages for these searchers: `s/exprerimental/experimental`. Differential Revision: https://reviews.llvm.org/D132317
-
Sanjay Patel authored
(X op Y) op Z --> (Y op Z) op X This isn't a complete solution (see TODO tests for possible refinements), but it shows some nice wins and doesn't seem to cause any harm. I think the most potential danger is from conflicting with other folds and causing an infinite loop - that's the reason for avoiding patterns with constant operands. Alternatively, we could try this in the reassociate pass, but we would not immediately see all of the logic folds that instcombine provides. I also looked at improving ValueTracking's isImpliedCondition() (and we should still add some enhancements there), but that would not work in general for bitwise logic reduction. The tests that reduce completely to 0/-1 are motivated by issue #56653. Differential Revision: https://reviews.llvm.org/D131356
-
John Ericson authored
That commit (D132324) made putting libc++ in LLVM_ENABLE_RUNTIMES a hard error, but ther are some out-of-tree CI jobs (especially docs that need fixing). I am thus making it a "soft error" for now, until that is resolved.
-
Simon Pilgrim authored
Noticed while cleaning up x86 cost tables for upcoming cost kind support and it affected this test
-
LiaoChunyu authored
if x == 1, x > 1 ? x : 1 return x, which is also 1. x > 0 ? x : 1 return 1. Reduce the number of load 1 instructions. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D132211
-
John Ericson authored
This allows `-DLLVM_ENABLE_RUNTIMES=libcxxabi` to work. This functionality was removed in D125561 (among other such removals) as dead code, because it was only available as part of the standalone build before. The functionality as added back as it was, except `target_include_directories` is used instead of the cruder `target_compile_options` (with an MSVC vs not MSVC conditional split). That is just wholly better. Reviewed By: phosek, #libc_abi Differential Revision: https://reviews.llvm.org/D132298
-
John Ericson authored
This has been officially deprecated since D112724, meaning the deprecation warning is present in released 14 and 15. This makes me think that now, shortly after the 15 release is branched, is a good time to pull the trigger. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D132324
-
Simon Pilgrim authored
-
Simon Pilgrim authored
It's going to be much easier to maintain these tests (and all the check prefix combinations) if we don't mix cost kinds in the same file.
-
Anubhab Ghosh authored
When deinitializing, the allocation needs to be removed from the allocation list of its associated reservation so that remaining allocations can be deinitialized when releasing the reservation. Differential Revision: https://reviews.llvm.org/D132313
-
Anubhab Ghosh authored
When slab allocator is used, the MappingBase is not necessarily the same as the original reservation base as the allocation could be a part of the whole reservation. In this case the original reservation address needs to be passed to ExecutorSharedMemoryMapperService to associate the new allocation with the original reservation. Differential Revision: https://reviews.llvm.org/D132313
-
Anubhab Ghosh authored
By the time SharedMemoryMapper destructor is called, the RPC connection is no longer available causing the release() call to always fail. Instead at this point only shared memory regions can be unmapped safely. Deinitializers are called and mapped memory is released at the executor side by ExecutorSharedMemoryMapperService::shutdown() instead. Memory can also be released earlier by calling release() earlier before RPC connection is closed. Differential Revision: https://reviews.llvm.org/D132313
-
Anubhab Ghosh authored
The callback function was captured by reference but it lived on the stack and was in danger of being overwritten and could cause a crash. Differential Revision: https://reviews.llvm.org/D132313
-
Simon Pilgrim authored
It's going to be much easier to maintain these tests (and all the check prefix combinations) if we don't mix cost kinds in the same file.
-
Tung D. Le authored
NFC follow-up D125854 to reflect some remaining comments in D125854 Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D132200
-