- Apr 13, 2023
-
-
Archibald Elliott authored
Differential Revision: https://reviews.llvm.org/D147517
-
Archibald Elliott authored
This fixes a crash found in PR61549, and adds test coverage for other sizes that cannot be selected. Differential Revision: https://reviews.llvm.org/D147516
-
Archibald Elliott authored
Differential Revision: https://reviews.llvm.org/D147515
-
Alexis Engelke authored
Even when time tracing is disabled, getPassName is currently still called. This adds an avoidable virtual function call for each pass. Fetching the pass name only when required slightly improves compile-time (particularly when LLVM is built without LTO). Reviewed By: nikic, MaskRay Differential Revision: https://reviews.llvm.org/D148022
-
Thurston Dang authored
Users have discovered [*] that when CONFIG_ARCH_MMAP_RND_BITS == 32, it will frequently conflict with ASan's allocator on x86-64 Linux, because the PIE program segment base address of 0x555555555554 plus an ASLR shift of up to ((2**32) * 4K == 0x100000000000) will sometimes exceed ASan's hardcoded base address of 0x600000000000. We fix this by simply moving the allocator base to 0x500000000000, which is below the PIE program segment base address. This is cleaner than trying to move it to another location that is sandwiched between the PIE program and library segments, because if either of those grow too large, it will collide with the allocator region. Note that we will never need to change this base address again (unless we want to increase the size of the allocator), because ASLR cannot be set above 32-bits for x86-64 Linux (the PIE program segment and library segments would collide with each other; see also ARCH_MMAP_RND_BITS_MAX in https://github.com/torvalds/linux/blob/master/arch/x86/Kconfig). [*] see https://b.corp.google.com/issues/276925478 and https://groups.google.com/a/google.com/g/chrome-os-gardeners/c/BbfzCP3dEeo/m/h3C_vVUxCQAJ Differential Revision: https://reviews.llvm.org/D147984
-
OCHyams authored
VLA backed variables currently trip an assertion in SROA with D146987 (enabling assignment tracking). Disable assignment tracking for VLA variables until that can be investigated. Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D148140
-
- Apr 12, 2023
-
-
Shao-Ce SUN authored
Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D148076
-
Nicolas Vasilache authored
Given an scf.if conditional, using this transformation is akin to injecting user-specified information that it is always safe to execute only the specified `if` or `else` branch. This is achieved by just replacing the scf.if by the content of one of its branches. This is particularly useful for user-controlled rewriting of conditionals that exist solely to guard against out-of-bounds behavior. At the moment, no assume or assert operation is emitted as it is not always desirable. In the future, this may be controlled by a dedicated attribute. Differential Revision: https://reviews.llvm.org/D148125
-
Kadir Cetinkaya authored
Principal here is: - Making sure each template instantiation implies use of the most specialized template. As explicit instantiations/specializations are not redeclarations of the primary template. - Introducing a use from explicit instantions/specializaitons to the primary template, as they're required but not traversed as part of the RAV. Differential Revision: https://reviews.llvm.org/D148112
-
Mark de Wever authored
This updates the new __system_error directory. Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D148028
-
Valentin Clement authored
Similar to D148039 but for the FIR to LLVM IR conversion pass. The inner part of the acc.loop has been removed since the rest of the pipeline is not ready and would raise an error here. This was passing until now because the acc.loop was discarded completely. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D148057
-
Anna Thomas authored
This reverts commit 5675757f. Assert maybe too strict. revert and investigate why assert fires.
-
David Green authored
This extends the patterns added in D130564 for fma to also handle negative 0.0. -0.0 is the identity element for fadd so comes up in vectorized loops. The same basic idea applies to D130564, but nsz should no longer be needed for the fadd case, and is for fsub (which is really only added for completeness). Differential Revision: https://reviews.llvm.org/D147723
-
Nikita Popov authored
These load and store APIs now do the same thing, so combine them into one.
-
Ivan Butygin authored
Remove duplicated ConditonOp args, remove unused init/yield args. Differential Revision: https://reviews.llvm.org/D146252
-
Simon Pilgrim authored
[TTI][X86] getMinMaxCost - use existing integer min/max intrinsic cost values instead of maintaining a duplicate cost table getMinMaxCost has an alternative set of min/max costs to getIntrinsicInstrCost that are only used by getMinMaxReductionCost, but are a lot less thorough and fallback to an expansion in most cases resulting in cost overestimations - we're better off just using getIntrinsicInstrCost. getIntrinsicInstrCost is still missing complete FMINNUM/FMAXNUM costs, so until then getMinMaxCost will still be used for these, after that we can remove getMinMaxCost and have getMinMaxReductionCost call getIntrinsicInstrCost directly. Fixes regression noticed in D148036
-
Simon Pilgrim authored
[X86] combinePTESTCC - attempt to use TESTPS/TESTPD instead of MOVMSKPS/MOVMSKPD for all-of cases with all-sign values. We can probably be more aggressive with TESTPS/TESTPD (instead of relying on the SimplifyMultipleUseDemandedBits call) - I've updated an existing TODO to suggest this for now. Part of Issue #60007
-
Simon Pilgrim authored
We merged the costs for split/pairwise reductions sometime ago.
-
Nikita Popov authored
GVN load widening was disabled in D24096. This removes various support code that is no longer relevant. The way this works nowadays is that we return PartialAlias with an offset from BasicAA and this gets passed on as a clobber by MDA. However, PartialAlias will only be returned if the load is properly nested inside the other load. This just removes the bulk of the code, but some additional cleanup can be done here now that we don't need to distinguish between load and store cases.
-
Younan Zhang authored
This patch implements CWG 2397, allowing array of placeholder type to be valid. See also https://wg21.cmeerw.net/cwg/issue2397. Reviewed By: aaron.ballman, #clang-language-wg Differential Revision: https://reviews.llvm.org/D147909
-
Nikita Popov authored
-
Sebastian Neubauer authored
The inreg argument prevented the tail call optimization to kick in. Remove the inreg, so this test actually uses a tail call. Note that it now uses s[4:5] for the return address, which is invalid, because these registers are supposed to be callee-save. D147096 tried to fix that problem for the C calling convention. Differential Revision: https://reviews.llvm.org/D148119
-
Florian Hahn authored
Perform dot-product lowering before instruction fusion to avoid crash in newly added test. Also update lowerDotProduct to properly mark optimized matmul as fused.
-
Sergio Afonso authored
This patch unlocks the "--offload-device-only", "--offload-host-only" and "--offload-host-device" options available in Clang for use by the Flang driver. These can be used to modify the behavior of the driver to select which compilation invocations are triggered during OpenMP offloading. Differential Revision: https://reviews.llvm.org/D147941
-
Nikita Popov authored
-
Max Kazantsev authored
As shown in https://github.com/llvm/llvm-project/issues/62058, canonicalication may fail with pointer types (and basically this transform is not expected to work with pointers).
-
Max Kazantsev authored
Details at https://github.com/llvm/llvm-project/issues/62058
-
Hans Wennborg authored
See comments on https://reviews.llvm.org/D147287
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Akash Banerjee authored
This patch updates all tests to use to use the opaque pointers. Differential Revision: https://reviews.llvm.org/D147599
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D148095
-
Nikolas Klauser authored
[libc++][NFC] rename __is_trivially_equality_comparable to __libcpp_is_trivially_equality_comparable This is required for D147175. Reviewed By: ldionne, Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D147953
-
Nikolas Klauser authored
This essentially reverts D139270 Reviewed By: #libc, EricWF Spies: tahonermann, libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D147519
-
Muhammad Omair Javaid authored
section-end-sym.s contains x86_64 assembly instruction execution on target. I have changed REQURIES: field system-linux --> x86_64-linux This came up while testing LLVM 16.0.1 release on AArch64 Linux.
-
Dmitry Makogon authored
-
Nicolas Vasilache authored
Also, properly propagate the nofold attribute. Differential Revision: https://reviews.llvm.org/D148114
-
Hans Wennborg authored
This could also move initialization of sret args, causing actually initialized parts of such return values to be uninitialized. See discussion on the code review. > As a result of -ftrivial-auto-var-init, clang generates instructions to > set alloca'd memory to a given pattern, right after the allocation site. > In some cases, this (somehow costly) operation could be delayed, leading > to conditional execution in some cases. > > This is not an uncommon situation: it happens ~500 times on the cPython > code base, and much more on the LLVM codebase. The benefit greatly > varies on the execution path, but it should not regress on performance. > > This is a recommit of cca01008 with > MemorySSA update fixes. > > Differential Revision: https://reviews.llvm.org/D137707 This reverts commit 50b2a113 and follow-up commit ad9ad373.
-