- Aug 22, 2021
-
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Also replace X32 with X86 check prefixes for i686 tests (we tend to try to use X32 for gnux32 targets)
-
Simon Pilgrim authored
Before lowering shuffles, see if we can merge horizontal ops or canonicalize the shuffle mask to point to the same LHS/RHS of the HOps when an HOp's args are repeated.
-
Sanjay Patel authored
This is part of solving more general rotate patterns seen in bugs related to: https://llvm.org/PR51575 https://alive2.llvm.org/ce/z/GpkFCt
-
Sanjay Patel authored
This is part of solving more general rotate patterns seen in bugs related to: https://llvm.org/PR51575 https://alive2.llvm.org/ce/z/fjKwqv
-
Sanjay Patel authored
-
Simon Pilgrim authored
Broadwell is mainly a die shrink of Haswell, but the model had many of the scheduling classes in different orders, making side-by-side comparisons very difficult. The InstRW overrides are still quite different, but at least that part of the side-by-side diff is now in the same position. This was noticed while I was trying to investigate diffs between llvm-mca and other perf analyzers in https://uica.uops.info/ - we used to be able to do diffs between most of the models very easily, but we seem to have lost that simplicity as classes have been altered, models have been refined and other models have rotted.
-
Sanjay Patel authored
The motivation was to get min/max intrinsics to parity with cmp+select idioms, but this unlocks a few more folds because isFreeToInvert recognizes add/sub with constants too. In the min/max example, we have too many extra uses for smaller folds to improve things, but this fold is able to eliminate uses even though we can't reduce the number of instructions.
-
Simon Pilgrim authored
Don't pass the struct by value.
-
Florian Hahn authored
Adjusting the reduction recipes still relies on references to the original IR, which can become outdated by the first-order recurrence handling. Until reduction recipe construction does not require IR references, move it before first-order recurrence handling, to prevent a crash as exposed by D106653.
-
Ben Shi authored
Reviewed by: lebedev.ri, spatel, craig.topper, luismarques, jrtc27 Differential Revision: https://reviews.llvm.org/D107711
-
luxufan authored
This patch supported the R_X86_64_32S relocation and add the Pointer32Signed generic edge kind. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D108446
-
Lang Hames authored
-
Lang Hames authored
Renames the blobSerializationRoundTrip test helper function to spsSerializationRoundTrip ('blob' was the placeholder name for the serialization scheme during prototyping, this function was missed when renaming everything for the mainline). Also drops explicit template arguments at call sites where they can be inferred (and are obvious) from the call argument type. -
Wang, Pengfei authored
Enable FP16 unary operator instructions. Ref.: https://software.intel.com/content/www/us/en/develop/download/intel-avx512-fp16-architecture-specification.html Reviewed By: LuoYuanke Differential Revision: https://reviews.llvm.org/D105267
-
Lang Hames authored
Should fix bot failure at https://green.lab.llvm.org/green/job/clang-stage2-Rthinlto/4367
-
Fangrui Song authored
This avoids unneeded MVT->EVT conversion.
-
Fangrui Song authored
CCState::AllocateReg handles aliased registers.
-
Fangrui Song authored
clang CodeGenModule shouldAssumeDSOLocal has set dso_local.
-
Fangrui Song authored
-
Kazu Hirata authored
-
- Aug 21, 2021
-
-
Sanjay Patel authored
This may overlap partially with the reassociate pass, but it seems simple enough that we should try it here in InstCombine to enable other folds. This shows up as an opportunity and potential regression if we improve a subtract fold with 'not' ops to be more general.
-
Sanjay Patel authored
-
Sanjay Patel authored
-
David Green authored
Add a variant of mve-vqdmulh tests that uses min/max intrinsics directly, including a scalar test that shows it misbehaving for min intrinsics and a fix for the combine to prevent it from misbehaving.
-
Andrzej Warzynski authored
This patch cleans-up the file generation code in Flang's frontend driver. It improves the layering between `CompilerInstance::CreateDefaultOutputFile`, `CompilerInstance::CreateOutputFile` and their various clients. * Rename `CreateOutputFile` as `CreateOutputFileImpl` and make it private. This method is an implementation detail. * Instead of passing an `std::error_code` out parameter into `CreateOutputFileImpl`, have it return Expected<>. This is a bit shorter and idiomatic LLVM. * Make `CreateDefaultOutputFile` (which calls `CreateOutputFileImpl`) issue an error when file creation fails. The error code from `CreateOutputFileImpl` is used to generate a meaningful diagnostic message. * Remove error reporting from `PrintPreprocessedAction::ExecuteAction`. This is only for cases when output file generation fails. This is handled in `CreateDefaultOutputFile` instead (see the previous point). * Inline `AddOutputFile` into its only caller, `CreateDefaultOutputFile`. * Switch from `lvm::buffer_ostream` to `llvm::buffer_unique_ostream>` for non-seekable output streams. This simplifies the logic in the driver and was introduced for this very reason in [1] * Moke sure that the diagnostics from the prescanner when running `-E` (`PrintPreprocessedAction::ExecuteAction`) are printed before the actual output is generated. * Update comments, add test. NOTE: This patch relands [2]. As suggested by Michael Kruse in the post-commit/post-revert review, I've added the following: ``` config.errc_messages = "@LLVM_LIT_ERRC_MESSAGES@" ``` in Flang's `lit.site.cfg.py.in`. This way, `%errc_ENOENT` in output-paths.f90 gets the correct value on Windows as well as on Linux. [1] https://reviews.llvm.org/D93260 [2] fd21d1e1 Reviewed By: ashermancinelli Differential Revision: https://reviews.llvm.org/D108390
-
Kirill Shmakov authored
-
LLVM GN Syncbot authored
-
Lang Hames authored
All ExecutorProcessControl subclasses must provide an ExecutorProcessControl::MemoryAccess object that can be used to access executor memory from the JIT process. The EPCGenericMemoryAccess class provides an off-the-shelf MemoryAccess implementation for JITs that do not need (or cannot provide) a specialized MemoryAccess implementation. This simplifies the process of creating new ExecutorProcessControl implementations.
-
eopXD authored
Letting it take SCEV allows further modification on the function to optimize if the StoreSize / Stride is runtime determined. The plan is to let memcpy / memmove deal with runtime-determined sizes, just like what D107353 did to memset. Reviewed By: bmahjour Differential Revision: https://reviews.llvm.org/D108289
-
Siva Chandra Reddy authored
This suite is helpful is adding long running tests which take a long time to finish that they can be run on the public builders. They will probably be run on special builders in future. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D104816
-
Kazu Hirata authored
The corresponding definition was removed on Jan 20, 2017 in commit 710a4c1f.
-
Joseph Huber authored
Mapping expressions that have `this` as their base expression aren't considered a valid base variable and the rest of the runtime expects this. However, if we have an expression with no value declaration we can try to extract it manually to provide more helpful debuggin information. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D108483
-
Amara Emerson authored
This is just 0 on AArch64.
-
Geoffrey Martin-Noble authored
Some of these were the wrong version and some of them were the wrong format. Did some hunting around to figure out what exactly they're supposed to be. Since basically everything is derived from the LLVM version we should probably make this a bit less hardcoded, but just fixing the values for now. Sources: https://github.com/llvm/llvm-project/blob/b686fc7a1bea/clang/include/clang/Basic/Version.inc.in https://github.com/llvm/llvm-project/blob/b686fc7a1bea/clang/CMakeLists.txt#L353-L363 https://github.com/llvm/llvm-project/blob/b686fc7a1bea/llvm/CMakeLists.txt#L13-L29 https://github.com/llvm/llvm-project/blob/b686fc7a1bea/lld/CMakeLists.txt#L131-L138 Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D108500
-
Fangrui Song authored
Space separated driver options are uncommon but Clang traditionally did not do a good job. --gcc-toolchain= is the preferred form. This discourage form appears to be rare, so we can just drop it. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D108494
-
Amara Emerson authored
Truncating stores with GPR bank sources shouldn't be mutated into using FPR bank sources, since those aren't supported. Ideally this should be a selection failure in the tablegen patterns, but for now avoid generating them.
-
Geoffrey Martin-Noble authored
There's a lot of unnecessary backslashes here that we can avoid to reduce confusion. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D108495
-
William S. Moses authored
Presently, the lowering of nested scf.parallel loops to OpenMP creates one omp.parallel region, with two (nested) OpenMP worksharing loops on the inside. When lowered to LLVM and executed, this results in incorrect results. The reason for this is as follows: An OpenMP parallel region results in the code being run with whatever number of threads available to OpenMP. Within a parallel region a worksharing loop divides up the total number of requested iterations by the available number of threads, and distributes accordingly. For a single ws loop in a parallel region, this works as intended. Now consider nested ws loops as follows: omp.parallel { A: omp.ws %i = 0...10 { B: omp.ws %j = 0...10 { code(%i, %j) } } } Suppose we ran this on two threads. The first workshare loop would decide to execute iterations 0, 1, 2, 3, 4 on thread 0, and iterations 5, 6, 7, 8, 9 on thread 1. The second workshare loop would decide the same for its iteration. This means thread 0 would execute i \in [0, 5) and j \in [0, 5). Thread 1 would execute i \in [5, 10) and j \in [5, 10). This means that iterations i in [5, 10), j in [0, 5) and i in [0, 5), j in [5, 10) never get executed, which is clearly wrong. This permits two options for a remedy: 1) Change the semantics of the omp.wsloop to be distinct from that of the OpenMP runtime call or equivalently #pragma omp for. This could then allow some lowering transformation to remedy the aforementioned issue. I don't think this is desirable for an abstraction standpoint. 2) When lowering an scf.parallel always surround the wsloop with a new parallel region (thereby causing the innermost wsloop to use the number of threads available only to it). This PR implements the latter change. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D108426 -
Fangrui Song authored
Space separated driver options are uncommon but Clang traditionally did not do a good job. --gcc-toolchain= is the preferred form.
-