- May 03, 2022
-
-
Bradley Smith authored
Currently we always fold frame indexes into SVE load/store instructions, however these instructions can only encode VL scaled offests. This means that when we are accessing a fixed length stack object with these instructions, the folded in frame index gets pulled back out during frame lowering. This can cause issues when we have no spare registers and no emergency spill slot. Rather than causing issues like this, don't fold in frame indexes that reference fixed length objects. Fixes: #55041 Differential Revision: https://reviews.llvm.org/D124457
-
Martin Liska authored
Use the pragma only when __clang__ is defined. Fixes: sanitizer_common_libcdep.cpp:101: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas] Differential Revision: https://reviews.llvm.org/D124829
-
Nikita Popov authored
This extends haveNoCommonBitsSet() to two additional cases, allowing the following folds: * `A + (B & ~A)` --> `A | (B & ~A)` (https://alive2.llvm.org/ce/z/crxxhN) * `A + ((A & B) ^ B)` --> `A | ((A & B) ^ B)` (https://alive2.llvm.org/ce/z/A_wsH_) These should further fold to just `A | B`, though this currently only works in the first case. The reason why the second fold is necessary is that we consider this to be the canonical form if B is a constant. (I did check whether we can change that, but it looks like a number of folds depend on the current canonicalization, so I ended up adding both patterns here.) Differential Revision: https://reviews.llvm.org/D124763 -
Alex Zinenko authored
Add the mechanism for TransformState extensions to update the mapping between Transform IR values and Payload IR operations held by the state. The mechanism is intentionally restrictive, similarly to how results of the transform op are handled. Introduce test ops that exercise a simple extension that maintains information across the application of multiple transform ops. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D124778
-
Fred Tingaud authored
Before C++20, MSVC treated any friend function declaration as a function declaration, so the following code would compile despite funGlob being declared after its first call: ``` class Glob { public: friend void funGlob(); void test() { funGlob(); } }; void funGlob() {} ``` This proposed patch mimics the MSVC behavior when in MSVC compatibility mode Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D124613 -
Martin Liska authored
Fixes: sanitizer_stack_store.cpp:257:13: warning: this statement may fall through [-Wimplicit-fallthrough=] when being built with GCC. Differential Revision: https://reviews.llvm.org/D124832
-
Marco Antognini authored
Essentially, having a default member initializer for a constant member does not necessarily imply the member will have the given default value. Remove part of a2e05363 ([analyzer] Treat more const variables and fields as known contants., 2018-05-04). Fix #47878 Reviewed By: r.stahl, steakhal Differential Revision: https://reviews.llvm.org/D124621
-
Igor Kirillov authored
Adds ability to vectorize loops containing a store to a loop-invariant address as part of a reduction that isn't converted to SSA form due to lack of aliasing info. Runtime checks are generated to ensure the store does not alias any other accesses in the loop. Ordered fadd reductions are not yet supported. Differential Revision: https://reviews.llvm.org/D110235
-
Marek Kurdej authored
Test from issue https://github.com/llvm/llvm-project/issues/54953.
-
Benjamin Kramer authored
There can't be any strides, and the offset for the canonical expr is always 0. Fixes #55229. Differential Revision: https://reviews.llvm.org/D124795
-
Jeremy Morse authored
In SelectionDAG, DBG_PHI instructions are created to "read" physreg values and give them an instruction number, when they can't be traced back to a defining instruction. The most common scenario if arguments to a function. Unfortunately, if you have 100 inlined methods, each of which has the same "this" pointer, then the 100 dbg.value instructions become 100 DBG_INSTR_REFs plus 100 DBG_PHIs, where only one DBG_PHI would suffice. This patch adds a vreg cache for MachienFunction::salvageCopySSA, if we've already traced a value back to the start of a block and created a DBG_PHI then it allows us to re-use the DBG_PHI, as well as reducing work. Differential Revision: https://reviews.llvm.org/D124517
-
Markus Lavin authored
Differential Revision: https://reviews.llvm.org/D124754
-
David Green authored
This adds fptosi_sat and fptoui_sat to the list of trivially vectorizable functions, mainly so that the loop vectorizer can vectorize the instruction. Marking them as trivially vectorizable also allows them to be SLP vectorized, and Scalarized. The signature of a fptosi_sat requires two type overrides (@llvm.fptosi.sat.v2i32.v2f32), unlike other intrinsics that often only take a single. This patch alters hasVectorInstrinsicOverloadedScalarOpd to isVectorIntrinsicWithOverloadTypeAtArg, so that it can mark the first operand of the intrinsic as a overloaded (but not scalar) operand. Differential Revision: https://reviews.llvm.org/D124358
-
Pavel Labath authored
The entries in the input map need to be sorted as well, as there's no guarantee that the entries (ConstStrings) will be inserted in the proper order.
-
Ivan Murashko authored
The documentation has an incorrect example of PCH files usage via `-include` option. The possibility has not been available since [llvm-svn: 174385](https://reviews.llvm.org/rG48b72d81c8968f3d342557582db986a60aef2c54). Differential Revision: https://reviews.llvm.org/D124719
-
Luo, Yuanke authored
-
Vitaly Buka authored
https://lab.llvm.org/buildbot/#/builders/70/builds/21206 hangs. This reverts commit 2fec52a4.
-
Vitaly Buka authored
To fix msan report like https://reviews.llvm.org/P8284 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D124575
-
Jonas Devlieghere authored
Make GetSharedModuleWithLocalCache consider the device support directory. In the past we only needed the device support directory to debug remote processes. Since the introduction of Apple Silicon and Rosetta this stopped being true. When debugging a Rosetta process on macOS we need to consider the Rosetta expanded shared cache. This patch and it dependencies move that logic out of PlatfromRemoteDarwinDevice into a new abstract class called PlatfromDarwinDevice. The new platform sit in between PlatformDarwin and PlatformMacOSX and PlatformRemoteDarwinDevice and has all the necessary logic to deal with the device support directory. Technically I could have moved everything in PlatfromDarwinDevice into PlatfromDarwin but decided that this logic is sufficiently self contained that it warrants its own abstraction. rdar://91966349 Differential revision: https://reviews.llvm.org/D124801
-
Hsiangkai Wang authored
Differential Revision: https://reviews.llvm.org/D124602
-
Hsiangkai Wang authored
Follow-up to D122933. Differential Revision: https://reviews.llvm.org/D124374
-
Craig Topper authored
Reviewed By: arcbbb Differential Revision: https://reviews.llvm.org/D123972
-
hsmahesha authored
so that the stack access is avoided. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D124734
-
hsmahesha authored
by moving around the code and by adding more comments, which would later help during any required clean-up. Differential Revision: https://reviews.llvm.org/D124733
-
Zakk Chen authored
The result was totally wrong. We could use mask undisturbed result to emulate the mask agnostic result. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D124684
-
LLVM GN Syncbot authored
-
Jonas Devlieghere authored
Refactoring in preparation of D124801. Differential revision: https://reviews.llvm.org/D124800
-
Jonas Devlieghere authored
Refactoring in preparation of D124801. Differential revision: https://reviews.llvm.org/D124799
-
Jonas Devlieghere authored
As far as I can tell this function is unused both upstream and downstream.
-
Jonas Devlieghere authored
There's no reason PlatformRemoteMacOSX has to override GetFileWithUUID.
-
Weverything authored
The majority of tests omit testing "clang" for -cc1 command lines. In addition, some distributions symlink %clang to an executable with a content hash based filename so clang{{.*}} check won't work. With this change, we can remove many -no-canonical-prefixes whose purpose was to make the tests pass on such distributions. -
Craig Topper authored
When looking for memory uses, reassociationCanBreakAddressingModePattern should check uses of the outer ADD rather than the inner ADD. We want to know if the two ops we're reassociating are used by a load/store. In practice, the existing check usually works because CodeGenPrepare will make one of the load/stores have an offset of 0 relative to split GEP. That will make the inner add have a memory use. To test this, I've manually split the GEPs so there is no 0 offset store. This issue was recently discussed in the original review D60294. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D124644
-
Tanya Lattner authored
-
Min-Yih Hsu authored
This patch add supports for translating FCmp and more kinds of FP constants in addition to 32 & 64-bit ones. However, we can't express ppc_fp128 constants right now because the semantics for its underlying APFloat is `S_PPCDoubleDouble` but mlir::FloatType doesn't support such semantics right now. Differential Revision: https://reviews.llvm.org/D124630
-
Chris Bieneman authored
This silences warnings encountered on some bots.
-
Nicolai Hähnle authored
Refactor to simplify a follow-up change. No functional change intended. However, there is a rather subtle logic change: the subsequent combines (e.g. reassociation) are skipped *always* when one of the operands of the add is a mul, instead of only when additionally mad64_32 etc. are available. This change makes sense because the subsequent combines should never apply when one of the operands is a mul. Differential Revision: https://reviews.llvm.org/D123833
-
LLVM GN Syncbot authored
-
Vitaly Buka authored
Breaks bots, see https://reviews.llvm.org/D124699 This reverts commit e547a333.
-
Chris Bieneman authored
This adds support to llvm::identify_magic to detect DXBC and classify it as the dxcontainer format.
-
Bardia Mahjour authored
-