- Jun 30, 2020
-
-
Sam McCall authored
Summary: This technique should extend to rvalue-qualified etc, but I didn't add any. I removed "volatile" from the future plans, which seems... speculative at best. While here I moved the callbacks object out of the constructor into a variable template, which I believe addresses the fixme there about unused objects. (I'm not a template guru, so it's always possible the old version was designed for compile-time performance in a way I'm missing) Reviewers: kadircet Subscribers: dexonsmith, llvm-commits, chandlerc Tags: #llvm Differential Revision: https://reviews.llvm.org/D82581
-
Christopher Tetreault authored
Reviewers: efriedma, RKSimon, craig.topper, fpetrogalli, c-rhodes Reviewed By: RKSimon Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82508
-
Louis Dionne authored
As announced on libcxx-dev at [1], the old libc++ testing format is being removed in favour of the new one. Follow-up commits will clean up the code that is dead after the removal of this option. [1]: http://lists.llvm.org/pipermail/libcxx-dev/2020-June/000885.html
-
Christopher Tetreault authored
Reviewers: efriedma, ftynse, rriddle Reviewed By: ftynse, rriddle Subscribers: tschuett, rkruppe, psnobl, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes Tags: #mlir Differential Revision: https://reviews.llvm.org/D82583
-
Nemanja Ivanovic authored
Commit 1fed1316 assumed that shuffle vector canonicalization will always ensure that the shuffle mask will be ordered so that element zero comes from the LHS vector. However there is code out there for which this is not the case. This patch simply removes that unsafe assumption and makes the code work regardless of the source of the first element.
-
Cullen Rhodes authored
Summary: * svget2/3/4 * svset2/3/4 * svcreate2/3/4 * svundef/2/3/4 Reviewers: sdesmalen, kmclaughlin, fpetrogalli, efriedma Reviewed By: fpetrogalli Differential Revision: https://reviews.llvm.org/D82665
-
Balazs Benics authored
FalsePositiveRefutationBRVisitor had a bug where the constraints were not properly collected thus crosschecked with Z3. This patch demonstratest and fixes that bug. Bug: The visitor wanted to collect all the constraints on a BugPath. Since it is a visitor, it stated the visitation of the BugPath with the node before the ErrorNode. As a final step, it visited the ErrorNode explicitly, before it processed the collected constraints. In principle, the ErrorNode should have visited before every other node. Since the constraints were collected into a map, mapping each symbol to its RangeSet, if the map already had a mapping with the symbol, then it was skipped. This behavior was flawed if: We already had a constraint on a symbol, but at the end in the ErrorNode we have a tighter constraint on that. Therefore, this visitor would not utilize that tighter constraint during the crosscheck validation. Differential Revision: https://reviews.llvm.org/D78457
-
Cullen Rhodes authored
Summary: Patch adds tests for mangling of svbfloat16_t and several other type related tests. Reviewers: sdesmalen, kmclaughlin, fpetrogalli, efriedma Reviewed By: sdesmalen, fpetrogalli Differential Revision: https://reviews.llvm.org/D82668
-
Jonas Devlieghere authored
The "new way" of enabling recommonmark is only supported in recommonmark 0.5 and later. Use the deprecated approach with versions of Sphinx that still support it. If I understand correctly there's no way to use older versions of recommonmark (<0.5) with newer versions of Sphinx (>3.0) because the old approach got removed. Differential revision: https://reviews.llvm.org/D75284
-
Louis Dionne authored
Since we can always find the rest of the LLVM tree, we can always run the tests in the standalone mode. Do it so that the default behavior is the same in the standalone and non-standalone modes.
-
Louis Dionne authored
Since we require that libc++ is built as part of the monorepo layout, we can assume the path of the rest of LLVM and avoid requiring that LLVM_PATH be set explicitly.
-
Muhammad Omair Javaid authored
TestCreateDuringInstructionStep have started failing again on aarch64/linux after moving to new machine. I am going mark it skipped for aarch64/linux.
-
LLVM GN Syncbot authored
-
Balazs Benics authored
Adds the test infrastructure for testing the FalsePositiveRefutationBRVisitor. It will be extended in the D78457 patch, which demonstrates and fixes a bug in the visitor. Differential Revision: https://reviews.llvm.org/D78704
-
serge-sans-paille authored
It's possible for the first loop trip(s) to set the `Changed` Status, and to a later one to early exit, in which case `Changed` must be return. Differential Revision: https://reviews.llvm.org/D82753
-
Francesco Petrogalli authored
Summary: The following intrinsics have been extended to support brain float types: svbfloat16_t svclasta[_bf16](svbool_t pg, svbfloat16_t fallback, svbfloat16_t data) bfloat16_t svclasta[_n_bf16](svbool_t pg, bfloat16_t fallback, svbfloat16_t data) bfloat16_t svlasta[_bf16](svbool_t pg, svbfloat16_t op) svbfloat16_t svclastb[_bf16](svbool_t pg, svbfloat16_t fallback, svbfloat16_t data) bfloat16_t svclastb[_n_bf16](svbool_t pg, bfloat16_t fallback, svbfloat16_t data) bfloat16_t svlastb[_bf16](svbool_t pg, svbfloat16_t op) svbfloat16_t svdup[_n]_bf16(bfloat16_t op) svbfloat16_t svdup[_n]_bf16_m(svbfloat16_t inactive, svbool_t pg, bfloat16_t op) svbfloat16_t svdup[_n]_bf16_x(svbool_t pg, bfloat16_t op) svbfloat16_t svdup[_n]_bf16_z(svbool_t pg, bfloat16_t op) svbfloat16_t svdupq[_n]_bf16(bfloat16_t x0, bfloat16_t x1, bfloat16_t x2, bfloat16_t x3, bfloat16_t x4, bfloat16_t x5, bfloat16_t x6, bfloat16_t x7) svbfloat16_t svdupq_lane[_bf16](svbfloat16_t data, uint64_t index) svbfloat16_t svinsr[_n_bf16](svbfloat16_t op1, bfloat16_t op2) Reviewers: sdesmalen, kmclaughlin, c-rhodes, ctetreau, efriedma Subscribers: tschuett, hiraditya, rkruppe, psnobl, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D82345
-
- Jun 29, 2020
-
-
dfukalov authored
Reviewers: hliao Reviewed By: hliao Subscribers: yaxunl, cfe-commits, llvm-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82764
-
Louis Dionne authored
Doing so doesn't work reliably, since it relies on LLVM_* implementation detail variables being set. Furthermore, since we rely on the lit.site.cfg being generated, running the tests requires LIBCXX_INCLUDE_TESTS=ON anyway.
-
Christudasan Devadasan authored
For now, moving it to SIPreEmitPeephole. Should find a right place to have this code. Reviewed By: nhaehnle Differential revision: https://reviews.llvm.org/D77544
-
Dmitri Gribenko authored
Reviewers: eduucaldas, ymandel Reviewed By: ymandel Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82760
-
Nathan James authored
Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D82661
-
Dmitri Gribenko authored
Summary: This file was exceeding a limit in MSVC: fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj Reviewers: erichkeane Reviewed By: erichkeane Subscribers: jmorse, gribozavr2, mgorny, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82766
-
David Green authored
MVE has native reductions for integer add and min/max. The others need to be expanded to a series of extract's and scalar operators to reduce the vector into a single scalar. The default codegen for that expands the reduction into a series of in-order operations. This modifies that to something more suitable for MVE. The basic idea is to use vector operations until there are 4 remaining items then switch to pairwise operations. For example a v8f16 fadd reduction would become: Y = VREV X Z = ADD(X, Y) z0 = Z[0] + Z[1] z1 = Z[2] + Z[3] return z0 + z1 The awkwardness (there is always some) comes in from something like a v4f16, which is first legalized by adding identity values to the extra lanes of the reduction, and which can then not be optimized away through the vrev; fadd combo, the inserts remain. I've made sure they custom lower so that we can produce the pairwise additions before the extra values are added. Differential Revision: https://reviews.llvm.org/D81397
-
Simon Pilgrim authored
-
Dmitri Gribenko authored
This reverts commit e22cae32. It broke the build: FalsePositiveRefutationBRVisitorTest.cpp:112:3: error: use of undeclared identifier 'LLVM_WITH_Z3'
-
Bjorn Pettersson authored
Fixup of commit b925ca37 to allow building with -Werror -Wunused-function.
-
Balazs Benics authored
Adds the test infrastructure for testing the FalsePositiveRefutationBRVisitor. It will be extended in the D78457 patch, which demonstrates and fixes a bug in the visitor. Differential Revision: https://reviews.llvm.org/D78704
-
Simon Pilgrim authored
This patch extends MatchVectorAllZeroTest to handle OR vector reduction patterns where the result is compared against zero. Reapplied with a fix for a chromium regression due to a missing isNullConstant() check in combineSetCC: https://bugs.chromium.org/p/chromium/issues/detail?id=1097758 Fixes PR45378 Differential Revision: https://reviews.llvm.org/D81547
-
Nemanja Ivanovic authored
Most of the patterns for PPCISD::SCALAR_TO_VECTOR_PERMUTED require VSX. So don't emit them if the subtarget doesn't have VSX. This resolves the issue reported on https://reviews.llvm.org/rG1fed131660b2c5d3ea7007e273a7a5da80699445
-
Jonas Devlieghere authored
It's failing on the sanitized bot on GreenDragon.
-
Matt Arsenault authored
No tests were stressing the behavior for hasPassPointeeByValueAttr.
-
Sanjay Patel authored
binop i1 (cmp Pred (ext X, Index0), C0), (cmp Pred (ext X, Index1), C1) --> vcmp = cmp Pred X, VecC ext (binop vNi1 vcmp, (shuffle vcmp, Index1)), Index0 This is a larger pattern than the existing extractelement folds because we can't reasonably vectorize the sub-patterns with constants based on cost model calcs (it doesn't usually make sense to replace a single extracted scalar op with constant operand with a vector op). I salvaged as much of the existing logic as I could, but there might be better ways to share and reduce code. The motivating case from PR43745: https://bugs.llvm.org/show_bug.cgi?id=43745 ...is the special case of a 2-way reduction. We tried to get SLP to handle that particular pattern in D59710, but that caused crashing and regressions. This patch is more general, but hopefully safer. The v2f64 test with SSE2 surprised me - the cost model accounting looks like this: OldCost = 0 (free extract of f64 at index 0) + 1 (extract of f64 at index 1) + 2 (scalar fcmps) + 1 (and of bools) = 4 NewCost = 2 (vector fcmp) + 1 (shuffle) + 1 (vector 'and') + 1 (extract of bool) = 5 Differential Revision: https://reviews.llvm.org/D82474
-
Stephan Herhut authored
Differential Revision: https://reviews.llvm.org/D82750
-
Nathan James authored
Currently this alias instantiates the readability-identifier-naming check, just swap it out to use the readability-named-paramater check. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D82711
-
Bevin Hansson authored
Summary: Using the result semantic is wrong in some cases, such as unsigned fixed-point + signed integer. In this case, the result semantic is unsigned and the common semantic is signed. Reviewers: leonardchan Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82662
-
Matt Arsenault authored
Also fix an SSA violation in a test the MIRParser/verifier fails to catch. It's illegal to define a subregister in SSA. For the purpose of the test, it just needs to define the super-register to use the subregister in the use operand.
-
Jake Merdich authored
Summary: https://bugs.llvm.org/show_bug.cgi?id=46383 When the c preprocessor stringizes tokens, the generated string literals are affected by the whitespace. This means clang-format can affect codegen silently, adding spaces and newlines to strings. Practically speaking, the vast majority of cases will be harmless, only affecting single identifiers or debug macros. In the interest of doing no harm in other cases though, this introduces a blacklist option 'WhitespaceSensitiveMacros', which contains a list of names of function-like macros whose contents should not be touched by clang-format, period. Clang-format can't automatically detect these without a real compile context, so users will have to specify it explicitly (it still beats clang-format off'ing at every invocation). Defaults include "STRINGIZE", "PP_STRINGIZE", and "BOOST_PP_STRINGIZE". Subscribers: kristof.beyls, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82620
-
Sanjay Patel authored
Preliminary for D82474
-
LLVM GN Syncbot authored
-
Luís Marques authored
Extracts the atomic pseudo-instructions' splitting from `riscv-expand-pseudo` / `RISCVExpandPseudo` into its own pass, `riscv-expand-atomic-pseudo` / `RISCVExpandAtomicPseudo`. This allows for the expansion of atomic operations to continue to happen late (the new pass is added in `addPreEmitPass2`, so those expansions continue to happen in the same place), while the remaining pseudo-instructions can now be expanded earlier and benefit from more optimization passes. The nonatomics pass is now added in `addPreSched2`. Differential Revision: https://reviews.llvm.org/D79635
-