- Nov 03, 2021
-
-
Nico Weber authored
LLVM_LINKER_IS_LLD is now set with LLVM_ENABLE_LLD=ON (or LLVM_USER_LINKER=lld) even on APPLE, and we pass -Wl,-order_file when LLVM_LINKER_IS_LLD on APPLE too. To make this straightforward, change the linker detection logic to go through the compiler driver on APPLE like on the other platforms. No intended behavior change if LLVM_ENABLE_LLD isn't set. Differential Revision: https://reviews.llvm.org/D113021
-
Craig Topper authored
I recently renamed some tests from vfredsum to vfredusum without noticing they tested both ordered and unordered reductions. This patch renames them back. I've also merged test files for vfwredosum/vfwredusum into a single file for consistency with the other 3 floating point reduction test files. The inconsistency is what caused my original confusion.
-
Fraser Cormack authored
Similar to D110206, this patch optimizes unmasked vp.load intrinsics to avoid the need of a vmset instruction to set the mask. It does so by selecting a riscv_vle intrinsic rather than a riscv_vle_mask intrinsic. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D113022
-
Sanjay Patel authored
-
Tres Popp authored
This was failing on some platforms.
-
Fraser Cormack authored
Although this isn't required, it better matches the suggested syntax as per the documentation work ongoing in D112930. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D112939
-
Vy Nguyen authored
One fewer warning. In practice, lld already "implements" it. (ie., it does not do dtrace-dof processing ever). Reviewed By: #lld-macho, thakis Differential Revision: https://reviews.llvm.org/D112934
-
Tres Popp authored
-
Dmitry Makogon authored
Added support for peeling loops with exits that are followed either by an unreachable-terminated block or block that has a terminatnig deoptimize call. All blocks in the sequence must have an unique successor, maybe except for the last one. Reviewed By: mkazantsev Differential Revision: https://reviews.llvm.org/D110922
-
Arthur Eubanks authored
This reverts commit fe364e5d. Causes breakages, e.g. https://lab.llvm.org/buildbot/#/builders/188/builds/5266
-
Jamie Schmeiser authored
Summary: Add new options -print-changed=[dot-cfg | dot-cfg-quiet] which create a website of DOT files showing colourized changes as the IR is changed by passes in the new pass manager pipeline. A new change reporter is introduced that creates a website of changes made by passes in the opt pipeline that change the IR. The hidden option -dot-cfg-dir=<dir> specifies a directory (defaulting to "./") into which the website will be created. A file passes.html is created that contains a list of all the passes that act on the IR. Those that do not change the IR are listed as omitted because of no change, ignored or filtered out (using -filter-print-func and -filter-passes) or not listed in quiet mode. Those that do change the IR are listed as a link to a DOT file which contains a CFG depiction of the IR (ala -dot-cfg) except that the instructions, basic blocks and links that are only in the IR before the pass (ie, removed) and those that are only in the IR after the pass (ie, added) are shown in red and green, respectively, while the aspects of the CFG that do not change are shown in black. Additional hidden options -dot-cfg-before-color=<dot named color>, -dot-cfg-after-color=<dot named color> and -dot-cfg-common-color=<dot named color> are defined that allow the customization of the colors used in colorizing the CFG. -change-printer-dot-path=<path to dot exe> is also added. Author: Jamie Schmeiser <schmeise@ca.ibm.com> Reviewed By: aeubanks (Arthur Eubanks) Differential Revision: https://reviews.llvm.org/D87202
-
- Nov 02, 2021
-
-
Valentin Clement authored
This patch adds the ZeroOpConversion pattern to LLVM IR dialect. Conversion of aggregate types is not implemented yet and will trigger a failure to legalize the operation. This is tested in the convert-to-llvm-invalid.fir test file. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D113014 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Arthur Eubanks authored
Reviewed By: hans Differential Revision: https://reviews.llvm.org/D112885
-
Arthur Eubanks authored
Specifically, the section and the alignment. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D112884
-
Arthur Eubanks authored
-
Arthur Eubanks authored
These were added to prevent functions from being removed by WPO. But that doesn't make sense, correct WPO will not remove functions we actually use. I noticed these because compiling cc1_main.cpp was pulling in random LLVM pass headers. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D112971
-
Arthur Eubanks authored
-
Jay Foad authored
-
Vy Nguyen authored
- Use .empty() instead of `size() == 0` when possible. - Use const-ref to avoid copying Differential Revision: https://reviews.llvm.org/D112978
-
Pavel Labath authored
-
thomasraoux authored
Also relax the types allowed in GPU wmma ops Differential Revision: https://reviews.llvm.org/D112969
-
Dmitry Makogon authored
This just regenerates a certain IndVars test's checks.
-
Jay Foad authored
https://bugs.llvm.org/show_bug.cgi?id=52204 Differential Revision: https://reviews.llvm.org/D112731
-
thomasraoux authored
Differential Revision: https://reviews.llvm.org/D112960
-
Matt Morehouse authored
I recently spent some extra time debugging a false positive because I didn't realize the "real" tag was in the short granule. Adding the short tag here makes it more obvious that we could be dealing with a short granule. Reviewed By: hctim, eugenis Differential Revision: https://reviews.llvm.org/D112949
-
Matt Morehouse authored
Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D112959
-
Dmitry Makogon authored
Add target triple to the test module, so IndVars has a TTI to perform congruent IVs elimination.
-
Fraser Cormack authored
The mask type for the llvm.experimental.vp.splice intrinsics must have the same number of elements as the result type. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D112924
-
Dmitry Makogon authored
In the added cases we have two congruent IVs. IndVars widens at least one of them. If they are both widened, then one of them is erased as they stay congruent after widening. However if only one IV is widened, the other one stays in the loop. We can simply erase the narrow IV and replace its uses with truncates of the widest IV.
-
Fraser Cormack authored
These aren't currently matched against unmasked vector load instructions. A patch to fix that will come later.
-
Sam McCall authored
Fixes https://bugs.llvm.org/show_bug.cgi?id=51554 Differential Revision: https://reviews.llvm.org/D108451
-
John Ericson authored
This is a new draft of D28234. I previously did the unorthodox thing of pushing to it when I wasn't the original author, but since this version - Uses `GNUInstallDirs`, rather than mimics it, as the original author was hesitant to do but others requested. - Is much broader, effecting many more projects than LLVM itself. I figured it was time to make a new revision. I am using this patch (and many back-ports) as the basis of https://github.com/NixOS/nixpkgs/pull/111487 for my distro (NixOS). It looked like people were generally on board in D28234, but I make note of this here in case extra motivation is useful. --- As pointed out in the original issue, a central tension is that LLVM already has some partial support for these sorts of things. For example `LLVM_LIBDIR_SUFFIX`, or `COMPILER_RT_INSTALL_PATH`. Because it's not quite clear yet what to do about those, we are holding off on changing libdirs and `compiler-rt`. for this initial PR. --- On the advice of @lebedev.ri, I am splitting this up a bit per subproject, starting with LLVM. To allow it to be more easily reviewed. This and the subsequent patch must be landed together, as this will not build alone. But the rest can be landed on their own. Reviewed By: compnerd Differential Revision: https://reviews.llvm.org/D100810
-
Youngsuk Kim authored
Header "llvm/Transforms/Scalar/SimpleLoopUnswitch.h" is currently included twice. This commit removes the duplicate 'include' line. Previous commit 693eedb1 seems to have mistakenly added the duplicate 'include'. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D112979
-
Alex Zinenko authored
Silence the warning. Differential Revision: https://reviews.llvm.org/D113018
-
Sanjay Patel authored
The tests diffs are logically equivalent, and so this is generally NFC, but this makes the code match the code comment. It should also be more efficient. If we choose the 'not' operand (rather than the 'not' instruction) as the select condition, then we don't have to invert the select condition/operands as a subsequent transform.
-
Alex Zinenko authored
-
Simon Pilgrim authored
Reduce width of X86ISD::SUBV_BROADCAST_LOAD node.
-
Simon Pilgrim authored
-