- Mar 10, 2023
-
-
Craig Topper authored
Previously, we printed all constants in scientific notation with 6 digits of precision. This is not enough to accurately display the smallest value, but increasing the precision would be too much for other values. This patch prints values with fractional bits using only as many digits as needed. 1*2^-15 and 1*2^-16 will be printed in scientific notation while the others are printed without scientific notation. The integer values are printed with a single 0 after the decimal point. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D145645
-
Archibald Elliott authored
Global Constructors are disallowed in the Support library. The TargetParser library is likely to go along with the Support library in most uses, because it contains llvm::Triple, so lets pre-emptively add the same rule, rather than getting caught out later. Differential Revision: https://reviews.llvm.org/D145249
-
Alexey Lapshin authored
-
Nikita Popov authored
Only fetch preheader once we want to actually hoist. It turns out that calculating the preheader is expensive enough to affect overall compile-time if you do it for every single instruction. Addresses the compile-time regression from D143726.
-
Sander de Smalen authored
The two functions are basically identical, with a few minor exceptions. They've been merged into a single function that distinguishes based on a 'bool StreamingSVE' argument.
-
Florian Hahn authored
Test coverage for D145490.
-
LLVM GN Syncbot authored
-
Jay Foad authored
-
Florian Hahn authored
There is no need to store information about invariance in the recipe. Replace the fields with checks of the operands using isDefinedOutsideVectorRegions. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D144489
-
David Green authored
These comments were not adjusted when the fix went in.
-
Igor Kushnir authored
Differential Revision: https://reviews.llvm.org/D145783
-
Igor Kushnir authored
Document one more alternative way to initialize struct CXIndexOptions, which is used in LibclangSetPreambleStoragePathTest since df8f8f76 because the previous initialization approach causes compiler warnings. Differential Revision: https://reviews.llvm.org/D145775
-
Nikita Popov authored
-
Louis Dionne authored
This patch bumps the minimum macOS version for building the dylib or back-deploying a statically-linked libc++ from macOS 10.11 to macOS 10.13. AFAICT, Chrome was the last one to require macOS 10.11, but since then they have bumped their minimal supported version to macOS 10.13. Differential Revision: https://reviews.llvm.org/D145012
-
Piotr Zegar authored
This commit implements check for CP.51 C++ Core Guidelines Depends on D137514 Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D145720
-
Noah Watkins authored
Signed-off-by:
Noah Watkins <noah@redpanda.com> Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D137514
-
Louis Dionne authored
It was only used in one place, and it seems entirely valid to use constexpr unconditionally in that location. Note that a different change was attempted, i.e. using consteval unconditionally. However, this led to http://llvm.org/PR60709. Differential Revision: https://reviews.llvm.org/D145700
-
Florian Humblot authored
This commit introduces an option to the readability-magic-values checker. The option defaults to false so that the behavior of the checker doesn't change unless specifically enabled. These commits are supposed to fix https://github.com/llvm/llvm-project/issues/61259 Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D145778
-
Mike Crowe authored
Fix the readability-redundant-string-cstr check to correctly replace calls to c_str() via an overloaded operator-> (such as from an iterator.) Previously, the fix for `i->c_str()` would be `*i->`. Using consume_back to remove any trailing `->` results in the correct `*i`. Add some lit check test cases too. Fixes: https://github.com/llvm/llvm-project/issues/56705 Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D145730
-
Mirko Brkusanin authored
Differential Revision: https://reviews.llvm.org/D145785
-
Nikita Popov authored
-
Hans Wennborg authored
This caused verifier errors: Instruction does not dominate all uses! %8 = insertelement <2 x i64> %7, i64 %pgocount1330, i64 1 %15 = shufflevector <2 x i64> %8, <2 x i64> poison, <2 x i32> <i32 1, i32 1> in function ?NearestInclusiveAncestorAssignedToSlot@SlotScopedTraversal@blink@@SAPAVElement@2@ABV32@@Z (or register allocator crash when the verifier was disabled). See comment on the code review. > Previously only the very first gather/buildvector node might be probed for reshuffling of other nodes. > But the compiler may do the same for other gather/buildvector nodes too, just need to check the > dependency and postpone the emission of the dependent nodes, if the origin nodes were not emitted yet. > > Part of D110978 > > Differential Revision: https://reviews.llvm.org/D144958 This reverts commit a611b3f3. It also reverts 7a4061ae which depended on the above. -
Krasimir Georgiev authored
This reverts commit db987b95. We're seeing failures in modules-enabled builds from within stdlib after this commit. Errors look like: In module '...stl_cc_library': ...optional:560:38: error: 'std::__optional_copy_assign_base<unsigned long>::__optional_copy_assign_base' from module '...optional' is not present in definition of 'std::__optional_copy_assign_base<unsigned long>' in module '...optional' using __optional_move_base<_Tp>::__optional_move_base; In module '...stl_cc_library': ...optional:771:11: error: no matching constructor for initialization of '__optional_move_assign_base<unsigned long>' : __base(in_place, _VSTD::forward<_Up>(__v)) {} ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ llvm-project/clang/include/clang/Basic/CodeGenOptions.h:448:57: note: in instantiation of function template specialization 'std::optional<unsigned long>::optional<int, 0>' requested here std::optional<uint64_t> DiagnosticsHotnessThreshold = 0; I don't have a self-contained reproducer at this point. I'm hoping that we may be able to share more information about these issues later, if necessary.
-
Ricardo Jesus authored
According to the N2 Software Optimization Guide, arithmetic ops with LSL ≤ 4, no flagset logical ops, and flagset logical ops with LSL = 0 have a latency of 1 and use pipeline group I. However, most of these ops were being modelled as having a latency of 2 and using pipeline M. The affected instructions include the "unshifted" versions of ADD/SUB, among others. Differential Revision: https://reviews.llvm.org/D145370
-
Nikolas Klauser authored
Reviewed By: ldionne, Mordante, #libc Spies: arichardson, libcxx-commits Differential Revision: https://reviews.llvm.org/D144255
-
Michael Buch authored
This was failing with versions of clang that didn't support the dsymutil (D143458) and llvm (D143397) changes that are needed for this test. Remove unused parameters that we tried passing for the `dwarf` variant, which is an NFC change. LLDB doesn't yet support `-gdwarf-5` debugging yet so passing it to the `Makefile` would actually cause the test to fail.
-
Max Kazantsev authored
We can handle logical AND/OR in the same way as arithmetic AND/OR, it only takes us freezing `RHS2` for which we may introduce a new use which didn't exist before dynamically. Differential Revision: https://reviews.llvm.org/D145771 Reviewed By: nikic
-
Haojian Wu authored
And remove the classical clangd-own unused-include implementation. Differential Revision: https://reviews.llvm.org/D145773
-
Matthias Springer authored
This change adds a new helper function `mlir::reifyResultShapes` that calls the corresponding interface method and also checks the result produced by the implementation when running in debug mode. Bugs due to incorrect interface implementations can be difficult to debug. This helper function also reduces the amount of code needed at call sites: the cast to `ReifyRankedShapedTypeOpInterface` is done in the helper function. Differential Revision: https://reviews.llvm.org/D145777
-
Matthias Springer authored
`reifyResultShapes` should return an IntegerAttr if and only if the corresponding dimension is static. Differential Revision: https://reviews.llvm.org/D145702
-
Max Kazantsev authored
We don't do this transform in InstCombine in general case for arbitrary values, because cost of AND and 2 ICMP's isn't higher than of MIN and ICMP. However, LICM also has a notion about the loop structure. This transform becomes profitable if `A` and `B` are loop-invariant and `X` is not: by doing this, we can compute min outside the loop. Differential Revision: https://reviews.llvm.org/D143726 Reviewed By: nikic
-
Markus Böck authored
This reverts commit cdd914a9.
-
Max Kazantsev authored
In fact, we can optimize this cases, it will just take us insertion of freeze.
-
Markus Böck authored
[mlir][GPUToLLVM] Fix regression introduced with opaque-pointers when generate GPU launch func parameters This has caused build failures when enabling opaque pointers for the GPU integration tests as could be seen here: https://lab.llvm.org/buildbot/#/builders/220/builds/16946 and here https://lab.llvm.org/buildbot/#/builders/61/builds/40822 The gist of the issue was the use of a wrong pointer base type within a GEP. There sadly was no test coverage for either the generating of that GEP, nor is LLVM Dialects GEP verifier currently capable of catching such issues, so it went unnoticed until the integration tests actually attempted to convert it to LLVM IR. Differential Revision: https://reviews.llvm.org/D145774
-
Nikita Popov authored
When threading operations over phis, we need to adjust the context instruction to the terminator of the incoming block. This was handled when threading icmps, but not when threading binops. Fixes https://github.com/llvm/llvm-project/issues/61312.
-
Nikita Popov authored
-
Alexander Shaposhnikov authored
This diff starts fixing our handling of out-of-line definitions of constrained templates. Initially it was motivated by https://github.com/llvm/llvm-project/issues/49620 and https://github.com/llvm/llvm-project/issues/60231. In particular, this diff adjusts Sema::computeDeclContext to work properly in the case of constrained template parameters. Test plan: 1/ ninja check-all 2/ Bootstrapped Clang passes all the tests 3/ Internal testing Differential revision: https://reviews.llvm.org/D145034
-
chenglin.bi authored
-
Sameer Sahasrabuddhe authored
An instruction that is "always uniform" is so even if it occurs in an irreducible cycle. The output produced by such an instruction may depend on the implementation defined cycle hierarchy, but that does not affect the uniformity of the output. In other words, an "always uniform" instruction is uniform even if it is not m-converged. Reviewed By: ruiling, ronlieb Differential Revision: https://reviews.llvm.org/D145572
-
Valentin Clement authored
Unlimited polymorphic entities can have an intrinsic dynamic type. Update the code of extends_type_of to compare the CFI_type in these case. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D145722
-