- Jan 21, 2023
-
-
Argyrios Kyrtzidis authored
Differential Revision: https://reviews.llvm.org/D142236
-
Aaron Ballman authored
The docs used a nonexisting matcher that caused some confusion. It has now been replaced with the correct syntax. Fixes #58044
-
Krzysztof Drewniak authored
Re-land D140899 to fix a missing dependency in the index dialect's CMakeLists.txt. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D142147
-
Maryam Moghadas authored
This patch is to remove the erroneous lax vector conversion warning for CStyle; explicit; casts that was added as part of D126540. Reviewed By: nemanjai Differential Revision: https://reviews.llvm.org/D142222
-
Craig Topper authored
Using the correct feature name to detect 64bit this time. Previously, I mistakenly compared the expected record name against a string inside the record.
-
Philip Reames authored
There's no need to require the start value to come directly from the loop predecessor. This was sometimes covering up a latent miscompile in this off-by-default option, but the miscompile needs fixed anyways and the issue has been raised on the original review. Differential Revision: https://reviews.llvm.org/D142240
-
Doru Bercea authored
-
Terry Wilmarth authored
Distributed barrier was found to cause hangs in some test cases. Found that a section updating the barrier size was improperly shifted to a different code section during patching. Restored to original location, all tests run to completion. Differential Revision: https://reviews.llvm.org/D141618
-
Aaron Ballman authored
This updates the status of: N505 Make qualifiers idempotent N725 Integer promotion rules N1311 Initializing static of external variables
-
Benjamin Kramer authored
-
Benjamin Kramer authored
-
Shilei Tian authored
When there is any compile error, clang still tries to compile as many code as possible, therefore `Scope` can be `nullptr` here. However, we didn't check it beforehand, causing compiler crash. Fix #59944. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D142233
-
Campbell Suter authored
Currently, the RewriteStatepointsForGC pass has a hardcoded list of GC strategies that it operates on, forcing downstream projects to patch LLVM to enable it for their own strategies. The diff D141110 changes that to each GCStrategy having a flag to enable or disable RS4GC. This patch adds that flag. It currently doesn't do anything, but is provided so downstream projects can enable it to smooth the transition. Reviewed By: dantrushin Differential Revision: https://reviews.llvm.org/D142169
-
Alexander Yermolovich authored
Doing the same thing as for rangelists. Changing loclists to use base_addrx, it slightly increases .debug_loclists, but reduces .debug_addr section. | section | clang-16.bolt.base | clang-16.bolt | raw | % | | debug_loclists | 198208 | 203398 | 5190 | 102% | | .debug_addr | 14415808 | 14351448 | -64360 |99.5% | Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D141969
-
Sanjay Patel authored
Tests were duplicated for undef-ness, but that's not necessary. There were no tests for bfloat/double. I deleted the fptosi tests for now because those will just be a bitwidth adjustment to the fptoui tests once we settle on the right set of tests. I think it should just be 2 tests on either side of the bitwidth boundary to allow a fold with a couple of extra tests thrown in to show other type constraints are not a factor. Goes with: D142093
-
Xiang Li authored
For https://github.com/llvm/llvm-project/issues/60070. The issue is caused by memref.store is not registed. Registe it by add "memref::MemRefDialect" as dependetDialects for GpuToLLVMConsersionPass. Differential Revision: https://reviews.llvm.org/D141987
-
Doru Bercea authored
-
Roman Lebedev authored
Symmetrical with the `urem` case, added in 66efb986. Simple case: https://alive2.llvm.org/ce/z/gRumLd / https://alive2.llvm.org/ce/z/rxEeC5 Second variant of precondition: https://alive2.llvm.org/ce/z/cAm9TD
-
Roman Lebedev authored
-
Nico Weber authored
This reverts commit f37614b2. Doesn't build on Windows: https://reviews.llvm.org/D142078#4068417
-
Craig Topper authored
This reverts commit e58010f7. Seems this is failing on the build bots.
-
Ellis Hoag authored
Class InstrProfIncrementInstStep inherits from InstrProfIncrementInst but cannot cast to InstrProfIncrementInst, because InstrProfIncrementInst::classof does not cover such circumstance。 Function InstrProfiling::run traverse all instruction in a module and try to cast them to InstrProfIncrementInst using dyn_cast, but it will return nullptr if the instruction is InstrProfIncrementInstStep(subclass of InstrProfIncrementInst). Reviewed By: tejohnson, ellis Differential Revision: https://reviews.llvm.org/D141579
-
Craig Topper authored
We no longer need the XLen in two places. Fold it into the code that determines the default march.
-
Sanjay Patel authored
We have better value name propagation now. Eliminates some noise in case something in this set of tests has a real change.
-
Craig Topper authored
Instead of having separate feature bits, get information from march. Invalid is now implied by empty march. 64-bit is now implied by march starting with "rv64". Reviewed By: fpetrogalli Differential Revision: https://reviews.llvm.org/D142230
-
David Carlier authored
Reviewers: vitalybuka Reviewed-By: vitalybuka Differential Revision: https://reviews.llvm.org/D110471
-
Nico Weber authored
-
Daniel Kiss authored
It enables trigonometry functions vectorization via SLEEF: http://sleef.org/. - A new vectorization library enum is added to TargetLibraryInfo.h: SLEEF. - A new option is added to TargetLibraryInfoImpl - ClVectorLibrary: SLEEF. - A comprehensive test case is included in this changeset. - A new vectorization library argument is added to -fveclib: -fveclib=SLEEF. Trigonometry functions that are vectorized by sleef: acos asin atan atanh cos cosh exp exp2 exp10 lgamma log10 log2 log sin sinh sqrt tan tanh tgamma Co-authored-by: Stefan Teleman Reviewed By: paulwalker-arm Differential Revision: https://reviews.llvm.org/D134719
-
Caroline Concatto authored
Add the following intrinsic: FCVTN BFCVTN NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D142025
-
Philip Reames authored
This change adjusts the cost modeling used when the target does not have a schedule model with individual instruction latencies. After this change, we use the default latency information available from TargetSchedule. The default latency information essentially ends up treating most instructions as latency 1, with a few "expensive" ones getting a higher cost. Previously, we unconditionally applied the first legal pattern - without any consideration of profitability. As a result, this change both prevents some patterns being applied, and changes which patterns are exercised. (i.e. previously the first pattern was applied, afterwards, maybe the second one is because the first wasn't profitable.) The motivation here is two fold. First, this brings the default behavior in line with the behavior when -mcpu or -mtune is specified. This improves test coverage, and generally makes it less likely we will have bad surprises when providing more information to the compiler. Second, this enables some reassociation for ILP by default. Despite being unconditionally enabled, the prior code tended to "reassociate" repeatedly through an entire chain and simply moving the first operand to the end. The result was still a serial chain, just a different one. With this change, one of the intermediate transforms is unprofitable and we end up with a partially flattened tree. Note that the resulting code diffs show significant room for improvement in the basic algorithm. I am intentionally excluding those from this patch. For the test diffs, I don't seen any concerning regressions. I took a fairly close look at the RISCV ones, but only skimmed the x86 (particularly vector x86) changes. Differential Revision: https://reviews.llvm.org/D141017
-
Roman Lebedev authored
The original check was trying to avoid checking UndefMask itself, and deduce it via simpler means, but checking `NonZeroMask` does not, e.g., check `ZeroMask`. Fixes https://github.com/llvm/llvm-project/issues/60168
-
Philip Reames authored
This change switches both targets from using target specific CompilerBarrier nodes to the recently introduced generic MEMBARRIER instruction. A couple things to call out. First, this changes the assembly comment printed. I'm not sure this matters, but if it does, we can simply drop this patch. This is a minor clean up at best. Second, the ordering operand on the target instruction appears to be unused. We could easily add ordering to the generic instruction, but since we don't seem to have a motivating case in tree, I simply dropped the ordering when selecting to the generic instruction. Differential Revision: https://reviews.llvm.org/D141513
-
Alexey Lapshin authored
As a preparation for implementing DWARFv5 address ranges generation, this patch refactors existing address ranges generation code: Split emitUnitRangesEntries into two functions emitDwarfDebugArangesTable and emitDwarfDebugRangesTableFragment. Use AddressRanges to prepare linked address ranges. Refactor Unit.getLowPc(), to use std::nullopt as undefined value. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D141943
-
Alexey Bataev authored
-
Mark de Wever authored
Implements the range-default-formatter specialization range_format::set. Implements parts of - P2286R8 Formatting Ranges - P2585R0 Improving default container formatting Depends on D140801 Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D141195
-
Florian Hahn authored
This reverts commit c5ea42bc. Recommit the patch with a fix for loops where the exiting terminator is not a branch instruction. In that case, ExitInfos may be empty. In addition to checking if there's a single exiting block also check if there's a single ExitInfo. A test case has been added in f92b3539.
-
Xiang Li authored
For https://github.com/llvm/llvm-project/issues/60070. llvm::array_pod_sort will cause non-determinism when select pattern. It is exposed by difference between windows build and linux build. Differential Revision: https://reviews.llvm.org/D142110
-
Zahira Ammarguellat authored
This option is useful for clang and clang-cl. Differential Revision: https://reviews.llvm.org/D141929
-
Philip Reames authored
Main point of these is to show the difference between a loop with and without a use outside the loop.
-
Johannes Reifferscheid authored
-