summaryrefslogtreecommitdiff
path: root/polly
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Reland "[CMake] Bumps minimum version to 3.20.0.""Nico Weber2023-05-171-1/+8
| | | | | | | | | | | | | | This reverts commit 65429b9af6a2c99d340ab2dcddd41dab201f399c. Broke several projects, see https://reviews.llvm.org/D144509#4347562 onwards. Also reverts follow-up commit "[OpenMP] Compile assembly files as ASM, not C" This reverts commit 4072c8aee4c89c4457f4f30d01dc9bb4dfa52559. Also reverts fix attempt "[cmake] Set CMP0091 to fix Windows builds after the cmake_minimum_required bump" This reverts commit 7d47dac5f828efd1d378ba44a97559114f00fb64.
* Reland "[CMake] Bumps minimum version to 3.20.0."Mark de Wever2023-05-131-8/+1
| | | | | | The owner of the last two failing buildbots updated CMake. This reverts commit e8e8707b4aa6e4cc04c0cffb2de01d2de71165fc.
* Replace None with std::nullopt in comments (NFC)Kazu Hirata2023-05-121-1/+1
| | | | | | | This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
* Revert "Reland "[CMake] Bumps minimum version to 3.20.0.""Mark de Wever2023-05-061-1/+8
| | | | | | Unfortunatly not all buildbots are updated. This reverts commit ffb807ab5375b3f78df198dc5d4302b3b552242f.
* Reland "[CMake] Bumps minimum version to 3.20.0."Mark de Wever2023-05-061-8/+1
| | | | | | All build bots should be updated now. This reverts commit 44d38022ab29a3156349602733b3459df5beef93.
* [docs] Hide collaboration and include graphs in doxygen docsTimm Bäder2023-05-041-3/+3
| | | | | | | They don't convey any useful information and make the documentation unnecessarily hard to read. Differential Revision: https://reviews.llvm.org/D149641
* [polly] Drop redundant use of -instnamer in polly MemAccess lit testsBjorn Pettersson2023-04-284-4/+4
| | | | Differential Revision: https://reviews.llvm.org/D148530
* [Polly] Update polly test after SCEV changesNikita Popov2023-04-271-1/+1
| | | | Make the phi non-trivial, so SCEV can't see through it.
* [GlobalOpt] Don't replace the aliasee if it has other references.DianQK2023-04-271-2/+0
| | | | | | | | As long as aliasee has `@llvm.used` or `@llvm.compiler.used` references, we cannot do the related replace or delete operations. Even if it is a Local Linkage, we cannot infer if there is no other use for it, such as asm or other future added cases. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D145293
* Revert "Revert "Revert "[CMake] Bumps minimum version to 3.20.0."""Mark de Wever2023-04-151-1/+8
| | | | | | This reverts commit 1ef4c3c859728008cf707cad8d67f45ae5070ae1. Two buildbots still haven't been updated.
* Revert "Revert "[CMake] Bumps minimum version to 3.20.0.""Mark de Wever2023-04-151-8/+1
| | | | | | This reverts commit 92523a35a827539db8557bbc3ecab7f9ea3f6ade. Reland to see whether CIs are updated.
* Revert "Reland "[CMake] Bumps minimum version to 3.20.0.""Mark de Wever2023-03-181-1/+8
| | | | | | This reverts commit a72165e5df59032cdd54dcb18155f2630d73abd1. Some buildbots have not been updated yet.
* Reland "[CMake] Bumps minimum version to 3.20.0."Mark de Wever2023-03-181-8/+1
| | | | | | This reverts commit 92523a35a827539db8557bbc3ecab7f9ea3f6ade. Test whether all CI runners are updated.
* [Polly] Remove some bitcasts (NFC)Nikita Popov2023-03-174-18/+3
| | | | No longer relevant with opaque pointers.
* [Polly] Convert remaining tests to opaque pointers (NFC)Nikita Popov2023-03-1718-260/+249
|
* [Polly] Convert some tests to opaque pointers (NFC)Nikita Popov2023-03-1739-454/+461
|
* [Polly] Convert some tests to opaque pointers (NFC)Nikita Popov2023-03-177-125/+118
|
* [SCEVExpander] Always use scevgep as nameNikita Popov2023-03-172-6/+6
| | | | | With opaque pointers the scevgep / uglygep distinction no longer makes sense -- GEPs are always emitted in offset-based representation.
* Use *{Map,Set}::contains (NFC)Kazu Hirata2023-03-151-1/+1
|
* [polly] Use DenseMap::contains (NFC)Kazu Hirata2023-03-141-1/+1
|
* [PassManagerBuilder] Remove PassManagerBuilderArthur Eubanks2023-03-131-1/+0
| | | | | | | | | | PassManagerBuilder is dead, long live PassBuilder! bugpoint's -O# are now useless (and probably have been for a while given the number of passes we've removed from PassManagerBuilder). Perhaps they'll be revived if bugpoint ever works with the new PM. Reviewed By: nikic, MaskRay Differential Revision: https://reviews.llvm.org/D145835
* [polly][test] Fix after 7c3c98144Arthur Eubanks2023-03-102-10/+6
|
* [Passes] Remove some legacy passesArthur Eubanks2023-03-101-1/+0
| | | | | | | | | | | | | | DFAJumpThreading JumpThreading LibCallsShrink LoopVectorize SLPVectorizer DeadStoreElimination AggressiveDCE CorrelatedValuePropagation IndVarSimplify These are part of the optimization pipeline, of which the legacy version is deprecated and being removed.
* [Polly] Fix plugin build.Michael Kruse2023-03-091-0/+6
| | | | | The target_link_libraries call was accidentially removed in D142580 (Remove Polly-ACC).
* [polly] Remove unused variable 'VectorLoops' in IslNodeBuilder.cpp (NFC)Jie Fu2023-03-091-1/+0
| | | | | | | /home/jiefu/llvm-project/polly/lib/CodeGen/IslNodeBuilder.cpp:80:11: error: unused variable 'VectorLoops' [-Werror,-Wunused-variable] STATISTIC(VectorLoops, "Number of generated vector for-loops"); ^ 1 error generated.
* [Polly] Remove Polly-ACC.Michael Kruse2023-03-08166-31394/+29
| | | | | | | | | | Polly-ACC is unmaintained and since it has never been ported to the NPM pipeline, since D136621 it is not even accessible anymore without manually specifying the passes on the `opt` command line. Since there is no plan to put it to a maintainable state, remove it from Polly. Reviewed By: grosser Differential Revision: https://reviews.llvm.org/D142580
* [Polly] Remove -polly-vectorizer=polly.Michael Kruse2023-03-0836-2087/+16
| | | | | | | | | | Polly's internal vectorizer is not well maintained and is known to not work in some cases such as region ScopStmts. Unlike LLVM's LoopVectorize pass it also does not have a target-dependent cost heuristics, and we recommend using LoopVectorize instead of -polly-vectorizer=polly. In the future we hope that Polly can collaborate better with LoopVectorize, like Polly marking a loop is safe to vectorize with a specific simd width, instead of replicating its functionality. Reviewed By: grosser Differential Revision: https://reviews.llvm.org/D142640
* [SCEV] Strengthen nowrap flags via ranges for ARs on construction.Florian Hahn2023-03-071-1/+1
| | | | | | | | | | | | | | | | | At the moment, proveNoWrapViaConstantRanges is only used when creating SCEV[Zero,Sign]ExtendExprs. We can get significant improvements by strengthening flags after creating the AddRec. I'll also share a follow-up patch that removes the code to strengthen flags when creating SCEV[Zero,Sign]ExtendExprs. Modifying AddRecs while creating those can lead to surprising changes. Compile-time looks neutral: https://llvm-compile-time-tracker.com/compare.php?from=94676cf8a13c511a9acfc24ed53c98964a87bde3&to=aced434e8b103109104882776824c4136c90030d&stat=instructions:u Reviewed By: mkazantsev, nikic Differential Revision: https://reviews.llvm.org/D144050
* Revert "[CMake] Bumps minimum version to 3.20.0."Mark de Wever2023-03-041-1/+8
| | | | | | | Some build bots have not been updated to the new minimal CMake version. Reverting for now and ping the buildbot owners. This reverts commit 44c6b905f8527635e49bb3ea97dea315f92d38ec.
* [CMake] Bumps minimum version to 3.20.0.Mark de Wever2023-03-041-8/+1
| | | | | | | | | | | | | | This partly undoes D137724. This change has been discussed on discourse https://discourse.llvm.org/t/rfc-upgrading-llvms-minimum-required-cmake-version/66193 Note this does not remove work-arounds for older CMake versions, that will be done in followup patches. Reviewed By: mehdi_amini, MaskRay, ChuanqiXu, to268, thieta, tschuett, phosek, #libunwind, #libc_vendors, #libc, #libc_abi, sivachandra, philnik, zibi Differential Revision: https://reviews.llvm.org/D144509
* Revert "Revert "[SCEV] Add SCEVType to represent `vscale`.""Paul Walker2023-03-024-0/+12
| | | | | | Relanding after fixing Polly related build error. This reverts commit 7b26dcae9eaf8cdcba7fef032fd83d060dffd4b4.
* [polly] Remove unnecessary -enable-new-pm flagsArthur Eubanks2023-02-273-4/+4
|
* [Polly] Remove CodegenCleanupPass.Florian Hahn2023-02-244-158/+0
| | | | | | | | | | | The pass uses a bunch of deprecated legacy passes and appears unused. Remove it to unblock removing legacy passes. Fixes https://github.com/llvm/llvm-project/issues/60852 Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D144332
* Migrate away from the soft-deprecated functions in APInt.h (NFC)Kazu Hirata2023-02-201-4/+4
| | | | | | | | | | Note that those functions on the left hand side are soft-deprecated in favor of those on the right hand side: getMinSignedBits -> getSignificantBits getNullValue -> getZero isNullValue -> isZero isOneValue -> isOne
* Use APInt::getSignificantBits instead of APInt::getMinSignedBits (NFC)Kazu Hirata2023-02-191-2/+2
| | | | | Note that getMinSignedBits has been soft-deprecated in favor of getSignificantBits.
* [LoopIdiomRecognize] Remove legacy passFangrui Song2023-02-191-1/+0
| | | | Following recent changes to remove non-core legacy passes.
* [LoopDeletion] Remove legacy passFangrui Song2023-02-151-1/+0
| | | | Following recent changes to remove non-core legacy passes.
* [Inliner] Remove legacy simple inlinerArthur Eubanks2023-02-091-1/+0
| | | | It's part of the optimization pipeline, of which the legacy pass manager version is deprecated.
* [NFC][TargetParser] Remove llvm/ADT/Triple.hArchibald Elliott2023-02-071-1/+1
| | | | | | I also ran `git clang-format` to get the headers in the right order for the new location, which has changed the order of other headers in two files.
* [Polly] Fix tests (NFC)Nikita Popov2023-01-312-2/+2
| | | | Missed in 5f01a626dd0615df49773d419c75aeb33666ee83.
* [Polly] Remove failing Polly-ACC test.Michael Kruse2023-01-251-106/+0
| | | | The test has been failing since after last update of ISL (a749e09e).
* [Polly] Update ISL to isl-0.25-193-g8621c60c.Michael Kruse2023-01-25172-5857/+11033
| | | | | The bugfix https://reviews.llvm.org/D142308 might already have been fixed upstream.
* [Polly] Convert some tests to opaque pointers (NFC)Nikita Popov2023-01-257-110/+104
| | | | Convert ScopInfo tests.
* [polly] Fix i8 alignment in datalayout of lit testJannik Silvanus2023-01-202-2/+2
| | | | | | | Two lit test used overaligned i8, without the test case actually depending on i8 alignment. Change the datalayout string to use naturally aligned i8, preparing for the upcoming requirement of naturally aligned i8.
* [AsmParser] Remove typed pointer auto-detectionNikita Popov2023-01-1889-134/+134
| | | | | | | | | | | IR is now always parsed in opaque pointer mode, unless -opaque-pointers=0 is explicitly given. There is no automatic detection of typed pointers anymore. The -opaque-pointers=0 option is added to any remaining IR tests that haven't been migrated yet. Differential Revision: https://reviews.llvm.org/D141912
* [Polly] Convert some tests to opaque pointers (NFC)Nikita Popov2023-01-171035-8972/+8635
|
* [cmake] Fix path to LLVMConfig.cmake for multi-config buildsNhat Nguyen2023-01-131-1/+2
| | | | | | | | | | | | D139623 replaces CMAKE_CFG_INTDIR with '.' for multi-config builds. However, this change has not been reflected in mlir, flang, polly, lld, and clang. The patch updates the path to LLVMConfig.cmake for those projects. Reviewed By: sebastian-ne Differential Revision: https://reviews.llvm.org/D141538
* [Polly] Fix REQUIRES for nvptx-dependent testsPaul Robinson2023-01-1312-46/+29
| | | | | | | | | | | | These have been effectively disabled ever since 'nvptx' was added to the REQUIRES clauses, because REQUIRES does not support triple checks. The new 'target=<triple>' is supported, so switch to that scheme. Fix up XFAIL annotations, now that these tests are actually run. Part of the project to eliminate special handling for triples in lit expressions. Differential Revision: https://reviews.llvm.org/D139728
* [IRBuilder] Use canonical i64 type for insertelement index used by vector ↵Paul Walker2023-01-114-4/+4
| | | | | | | | | | | | | splats. Instcombine prefers this canonical form (see getPreferredVectorIndex), as does IRBuilder when passing the index as an integer so we may as well use the prefered form from creation. NOTE: All test changes are mechanical with nothing else expected beyond a change of index type from i32 to i64. Differential Revision: https://reviews.llvm.org/D140983
* [polly] Use std::optional instead of llvm::Optional (NFC)Kazu Hirata2023-01-026-18/+22
| | | | | | | This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716