- Nov 03, 2021
-
-
Simon Pilgrim authored
[X86][AVX] combineConcatVectorOps - use getBROADCAST_LOAD helper for splat of normal vector loads. NFCI. Reapplied from rG1cfecf4f with fix for PR51226 - ensure the load is a normal (non-ext) load.
-
Martin Storsjö authored
Testing the unsupported pattern can trigger the invalid parameter handler, which depending on CRT configuration can abort the process. Differential Revision: https://reviews.llvm.org/D112352
-
Vy Nguyen authored
Symbol's subclasses all have an additional bitfield of type uint8_t (RefState enum). For the bitfields in the same block tomerge, they should be of the same type. (clang/gcc will work, but others like MSVC does not) Differential Revision: https://reviews.llvm.org/D113040
-
Nikita Popov authored
If we know that the var * scale multiplication is nsw, we can use a saturating multiplication on the range (as a good approximation of an nsw multiply). This recovers some cases where the fix from D112611 is unnecessarily strict. (This can be further strengthened by using a saturating add, but we currently don't track all the necessary information for that.) This exposes an issue in our NSW tracking for multiplies. The code was assuming that (X +nsw Y) *nsw Z results in (X *nsw Z) +nsw (Y *nsw Z) -- however, it is possible that the distributed multiplications overflow, even if the non-distributed one does not. We should discard the nsw flag if the the offset is non-zero. If we just have (X *nsw Y) *nsw Z then concluding X *nsw (Y *nsw Z) is fine. Differential Revision: https://reviews.llvm.org/D112848
-
Jinsong Ji authored
On AIX, we are currently relying on `objdump` to detemine the is_32_bit_windows. `objdump` is not installed by default on AIX, it is creating problem to depend on it, especially just for an always false detection on AIX. So this patch simply provide a always false function to satify the detection. Reviewed By: #powerpc, daltenty Differential Revision: https://reviews.llvm.org/D112952
-
Chih-Ping Chen authored
Differential Revision: https://reviews.llvm.org/D112826
-
Elizabeth Andrews authored
This patch reverts incorrect IR introduced in commit d11ec6f6 [Clang] Enable IC/IF mode for __ibm128, for complex types declared using __attribute__((mode(TC))). TC corresponds to an unspecified 128-bit format, which on some targets is a double-double format (like __ibm128_t) and on others is float128_t. The bug in d11ec6f6 is that long double is only safe to use when it's known to be one of these formats. Differential Revision: https://reviews.llvm.org/D112975
-
Simon Pilgrim authored
-
Christopher Tetreault authored
* Move `);` outside the #ENDIF. Syntax highlighters that highlight missed closing parens, but are not aware of the C Preprocessor saw the original code as having missed parens.
-
Andrzej Warzynski authored
This patch extends the `FIRToLLVMLowering` pass in Flang by adding a hook to transform `fir.unreachable` to `llvm.unreachable`. This is part of the upstreaming effort from the `fir-dev` branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Differential Revision: https://reviews.llvm.org/D113023
-
Stanislav Mekhanoshin authored
Tests for (~a & b & c) | ~(a | b) -> (c | ~b) & ~a
-
Med Ismail Bennani authored
This reverts commit 6fd2db04 since it broke GreenDragon LLDB-Incremental bot: https://green.lab.llvm.org/green/job/lldb-cmake/37560/console Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Simon Pilgrim authored
This is part of rG1cfecf4f that was reverted to fix PR51226 - concating the broadcasts is OK, its the splatted loads that crash (we're not detecting extloads). I'm still creating a reduced test case so haven't added the load handling again yet.
-
Lawrence D'Anna authored
Jim says: lldb has a -Q or --source-quietly option, which supposedly does: --source-quietly Tells the debugger to execute this one-line lldb command before any file has been loaded. That seems like a weird description, since we don't generally use source for one line entries, but anyway, let's try it: > $LLDB_LLVM/clean-mono/build/Debug/bin/lldb -Q "script print('I should be quiet')" a.out -O "script print('I should be before')" -o "script print('I should be after')" (lldb) script print('I should be before') I should be before (lldb) target create "script print('I should be quiet')" error: unable to find executable for 'script print('I should be quiet')' That was weird. The first real -O gets sourced but not quietly, then the argument to the -Q gets treated as the target. > $LLDB_LLVM/clean-mono/build/Debug/bin/lldb -Q a.out -O "script print('I should be before')" -o "script print('I should be after')" (lldb) script print('I should be before') I should be before (lldb) target create "a.out" Current executable set to '/tmp/a.out' (x86_64). (lldb) script print('I should be after') I should be after Well, that's a little better, but the -Q option seems to have done nothing. --- This fixes the description of --source-quietly, as well as causing it to actually suppress echoing while executing the initialization commands. Reviewed By: jingham Differential Revision: https://reviews.llvm.org/D112988 -
Nico Weber authored
This matches ld64, and it's conceivable that projects try to read this information off stderr for that reason. --version keeps writing to stdout. Differential Revision: https://reviews.llvm.org/D113020
-
Dave Lee authored
-
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
-