- Nov 05, 2020
-
-
Simon Pilgrim authored
-
Eduardo Caldas authored
Rationale: Children of a syntax tree had forward links only, because there was no need for reverse links. This need appeared when we started mutating the syntax tree. On a forward list, to remove a target node in O(1) we need a pointer to the node before the target. If we don't have this "before" pointer, we have to find it, and that requires O(n). So in order to remove a syntax node from a tree, we would similarly need to find the node before to then remove. This is both not ergonomic nor does it have a good complexity. Differential Revision: https://reviews.llvm.org/D90240
-
Alex Zinenko authored
The test file is a long list of functions, followed by equally long FileCheck comments inside "main". Distribute FileCheck comments closer to the functions that produce the output we are checking. Reviewed By: mehdi_amini, stellaraccident Differential Revision: https://reviews.llvm.org/D90743
-
Nicolas Vasilache authored
The LinalgDependenceGraph and alias analysis provide the necessary analysis for the Linalg fusion on buffers case. However this is not enough for linalg on tensors which require proper memory effects to play nicely with DCE and other transformations. This revision adds side effects to Linalg ops that were previously missing and has 2 consequences: 1. one example in the copy removal pass now fails since the linalg.generic op has side effects and the pass does not perform alias analysis / distinguish between reads and writes. 2. a few examples in fusion-tensor.mlir need to return the resulting tensor otherwise DCE automatically kicks in as part of greedy pattern application. Differential Revision: https://reviews.llvm.org/D90762
-
Alex Zinenko authored
Upstream MLIR has deprecated OpBuilder in ODS. Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D90226
-
David Green authored
-
Artur Bialas authored
VectorExtractDynamicOp in SPIRV dialect conversion from vector.extractelement to spirv VectorExtractDynamicOp Differential Revision: https://reviews.llvm.org/D90679
-
Artur Bialas authored
Per spec, vector sizes 8 and 16 are allowed when Vector16 capability is present. This change expands the limitation of vector sizes to accept these sizes. Differential Revision: https://reviews.llvm.org/D90683
-
Arthur Eubanks authored
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Vitaly Buka authored
Missread the error message. It was not the reason. This reverts commit 2d041554.
-
Vitaly Buka authored
-
Arthur Eubanks authored
Some targets may add required passes via TargetMachine::registerPassBuilderCallbacks(). We need to run those even under -O0. As an example, BPFTargetMachine adds BPFAbstractMemberAccessPass, a required pass. This also allows us to clean up BackendUtil.cpp (and out-of-tree Rust usage of the NPM) by allowing us to share added passes like coroutines and sanitizers between -O0 and other optimization levels. Tests are a continuation of those added in https://reviews.llvm.org/D89083. In order to prevent TargetMachines from adding unnecessary optimization passes at -O0, TargetMachine::registerPassBuilderCallbacks() will be changed to take an OptimizationLevel, but that will be done separately. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D89158 -
Vitaly Buka authored
Code does not work as-is with emulated tls even if lsan is disabled with runtime flag.
-
Mehdi Amini authored
The previous behavior was fragile when building an OpPassManager using a string, as it was forcing the client to ensure the string to outlive the entire PassManager. This isn't a performance sensitive area either that would justify optimizing further.
-
Vy Nguyen authored
Fix breakages from https://reviews.llvm.org/D90811 http://lab.llvm.org:8011/#/builders/37/builds/471/steps/8/logs/stdio Differential Revision: https://reviews.llvm.org/D90818
-
Serge Pavlov authored
Summary: Object of type `Compilation` now can keep a callback that is called after each execution of `Command`. This must simplify adaptation of clang in custom distributions and allow facilities like collection of execution statistics. Reviewers: rsmith, rjmccall, Eugene.Zelenko Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D78899
-
Max Kazantsev authored
This reverts commit 8dc98897. Commited by mistake.
-
Chen Zheng authored
Add more profitable sinking patterns if the target bb register pressure is not too high. Reviewed By: qcolombet Differential Revision: https://reviews.llvm.org/D88126
-
Max Kazantsev authored
We already handle non-negative case there. Add support for non-positive.
-
Craig Topper authored
Recommit "[RISCV] Move some test cases from rv64i-single-softfloat.ll to a new rv64i-double-softfloat.ll. NFC"" With new test file this time. Original message This new test covers both with and without the F extension enabled. This shows that the fptosi/fptoui for double->i32 use a different libcall depending on whether the F extension is enabled. If it's not enabled we use the 'si' library call. If it is enabled we use 'di'.
-
Craig Topper authored
Revert "[RISCV] Move some test cases from rv64i-single-softfloat.ll to a new rv64i-double-softfloat.ll. NFC" I failed to git add the new test file. This reverts commit 36072cc0.
-
Craig Topper authored
This new test covers both with and without the F extension enabled. This shows that the fptosi/fptoui for double->i32 use a different libcall depending on whether the F extension is enabled. If it's not enabled we use the 'si' library call. If it is enabled we use 'di'.
-
Atmn Patel authored
This patch adds the llvm.loop.mustprogress loop metadata. This is to be added to loops where the frontend language requires that the loop makes observable interactions with the environment. This is the loop-level equivalent to the function attribute `mustprogress` defined in D86233. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D88464
-
Vitaly Buka authored
COMPILER_RT_TEST_COMPILER_CFLAGS is a string
-
Vitaly Buka authored
And move some Android specifi declarations from headers Differential Revision: https://reviews.llvm.org/D90811
-
Vy Nguyen authored
Differential Revision: https://reviews.llvm.org/D90808
-
Atmn Patel authored
Since C++11, the C++ standard has a forward progress guarantee [intro.progress], so all such functions must have the `mustprogress` requirement. In addition, from C11 and onwards, loops without a non-zero constant conditional or no conditional are also required to make progress (C11 6.8.5p6). This patch implements these attribute deductions so they can be used by the optimization passes. Differential Revision: https://reviews.llvm.org/D86841
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Fangrui Song authored
[mlir] Change deprecated -Werror-implicit-function-declaration to -Werror=implicit-function-declaration This -Werror- form has been deprecated since 2007 (GCC r122017). And only enable it for CMAKE_C_FLAGS. C++ does not need it.
-
Valentin Clement authored
This patch upstream the lowering of Wait directive that was initially done in https://github.com/flang-compiler/f18-llvm-project/pull/532 Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D90489
-
Vy Nguyen authored
Reland: a2291a58. New fixes for the breakages reported in D85927 include: - declare a weak decl for `dl_iterate_phdr`, because it does not exist on older APIs - Do not enable leak-sanitizer if api_level is less than 29, because of `ld.lld: error: undefined symbol: __aeabi_read_tp` for armv7, API level 16. - Put back the interceptor for `memalign` but still opt out intercepting `__libc_memalign` and `cfree` because both of these don't exist in Bionic. Reviewed By: srhines, vitalybuka Differential Revision: https://reviews.llvm.org/D89251
-
Fangrui Song authored
[X86] Enable shrink-wrapping for no-frame-pointer non-nounwind functions on platforms not using compact unwind The current compact unwind scheme does not work when the prologue is not at the start (the instructions before the prologue cannot be described). (Technically this is fixable, but it requires multiple compact unwind descriptors for one function.) rL255175 chose to not perform shrink-wrapping for no-frame-pointer functions not marked as nounwind to work around PR25614. This is overly limited, as platforms not supporting compact unwind (all non-Darwin) does not need the workaround. This patch restricts the limitation to compact unwind platforms. Reviewed By: qcolombet Differential Revision: https://reviews.llvm.org/D89930
-
Vy Nguyen authored
Extracted from D89251
-
Valentin Clement authored
This patch upstream the lowering of Init and Shutdown directives that was initially done in https://github.com/flang-compiler/f18-llvm-project/pull/529 Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D90488
-
Rahul Joshi authored
- The ODS description was using an old syntax that was updated during the review. This fixes the ODS description to match the current syntax. Differential Revision: https://reviews.llvm.org/D90797
-
Vitaly Buka authored
Extracted from D89251
-
Baptiste Saleil authored
The use of the new types introduced for PowerPC MMA instructions needs to be restricted. We add a PowerPC function checking that the given type is valid in a context in which we don't allow MMA types. This function is called from various places in Sema where we want to prevent the use of these types. Differential Revision: https://reviews.llvm.org/D82035
-