- Aug 19, 2022
-
-
Wolfgang Pieb authored
Add the clang option -finline-max-stacksize=<N> to suppress inlining of functions whose stack size exceeds the given value. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D131986
-
Jeff Niu authored
This patch "modernizes" the implementation of these operations by switching them to assembly formats and type inference traits. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D131971
-
Peiming Liu authored
There is an (probably) unintended bracket in the documentation for `memref.subview`. See https://mlir.llvm.org/docs/Dialects/MemRef/#memrefsubview-mlirmemrefsubviewop below Example 5. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D132150
-
Valentin Clement authored
Function returning CHARACTER with adjustable length or dynamic arrays can have negative length or extents passed to them. This patch makes sure any negative inputs is rounded to 0. Reviewed By: vdonaldson Differential Revision: https://reviews.llvm.org/D132139
-
Valentin Clement authored
The TargetRewrite pass can change the number of argument of a function. An extra llvm.nest attribute is added and was not set at the correct position if an extra argument was inserted before. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D132113
-
Florian Hahn authored
If the incoming previous value of a fixed-order recurrence is a phi in the header, go through incoming values from the latch until we find a non-phi value. Use this as the new Previous, all uses in the header will be dominated by the original phi, but need to be moved after the non-phi previous value. At the moment, fixed-order recurrences are modeled as a chain of first-order recurrences. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D119661
-
Philip Reames authored
-
Nikolas Klauser authored
[libc++] Replace _LIBCPP_INLINE_VISIBILITY and mark all functions _LIBCPP_HIDE_FROM_ABI in __split_buffer Reviewed By: ldionne, huixie90, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132028
-
Philip Reames authored
-
Vitaly Buka authored
Re-enable after fixing https://github.com/llvm/llvm-project/issues/57231
-
Vitaly Buka authored
Re-enabled when https://github.com/llvm/llvm-project/issues/57206 fixed.
-
Vitaly Buka authored
-
Emil Kieri authored
Make tests expect the (correctly) emitted warnings using the WARNING directive. This directive is non-functional now, but will be recognised by test_errors.py when D125804 is landed. This patch is a preparation for D125804. For most tests, we add missing WARNING directives for emitted warnings, but there are exceptions: - for int-literals.f90 and resolve31.f90 we pass -pedantic to the frontend driver, so that the expected warnings are actually emitted. - for block-data01.f90 and resolve42.f90 we change the tests so that warnings, which appear unintentional, are not emitted. While testing the warning in question (padding added for alignment in common block) would be desired, that is beyond the scope of this patch. This warning is target-dependent. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D131987
-
Jeff Niu authored
-
Paul Walker authored
Extends findMoreOptimalIndexType to allow ISD::BUILD_VECTOR based indices to be truncated when such truncation is lossless. This can enable the use of 32bit gather/scatter indices thus making it less likely to have to split a gather/scatter in two. Depends on D125194 Differential Revision: https://reviews.llvm.org/D130533
-
Simon Pilgrim authored
-
Jeff Niu authored
This patch moves `LLVM::ShuffleVectorOp` to assembly format and in the process drops the extra type that can be inferred (both operand types are required to be the same) and switches to a dense integer array. The syntax change: ``` // Before %0 = llvm.shufflevector %0, %1 [0 : i32, 0 : i32, 0 : i32, 0 : i32] : vector<4xf32>, vector<4xf32> // After %0 = llvm.shufflevector %0, %1 [0, 0, 0, 0] : vector<4xf32> ``` Reviewed By: dcaballe Differential Revision: https://reviews.llvm.org/D132038
-
Kadir Cetinkaya authored
-
Jim Ingham authored
The m_objects store in this class is only used to check whether this ClusterManager already owns this pointer. With a SmallVector the is_contained call was non-linear in number of children, and for instance printing all the elements of a 16M element std::vector didn't complete in the time I was willing to wait for it (hours). Since we are only doing insert & contains, some kind of set is a better data structure. In this patch I used SmallPtrSet. With that, the same array prints out in 30 seconds. I also tried a std::unordered_set but that was slightly slower and used a fair bit more memory. Other than performance, this is NFC. Differential Revision: https://reviews.llvm.org/D131996
-
Argyrios Kyrtzidis authored
Revert "[FindGRPC.cmake] Use `llvm_add_library()` for the custom proto target instead of `add_llvm_library()`" Breaks configuring `clangd` with `-DCLANGD_ENABLE_REMOTE=On` (https://github.com/llvm/llvm-project/issues/57213) This reverts commit ba688024. Differential Revision: https://reviews.llvm.org/D132138
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
- Aug 18, 2022
-
-
Joe Nash authored
-
Slava Zakharin authored
The pass is enabled for O1/O2/O3 optlevels now. Differential Revision: https://reviews.llvm.org/D132069
-
Mark de Wever authored
Discovered by phosek in D126971.
-
Denis Revunov authored
Differential Revision: https://reviews.llvm.org/D131881 Reviewed By: yota9
-
Danila Malyutin authored
The code would use first non-phi instruction as an insertion point, however this could lead to freeze getting inserted between phi and landingpad causing a verifier assert. Differential Revision: https://reviews.llvm.org/D132105
-
Kiran Chandramohan authored
OpenMP 5.2 standard has deprecated the usage of the minus operation in reductions. The minus operation also is an unpleasant feature with varied interpretations. The patch also changes the usage of the minus operator in some existing testcases. Discussed in https://discourse.llvm.org/t/openmp-runtime-problem-with-subtraction-reduction/64404 Reviewed By: peixin Differential Revision: https://reviews.llvm.org/D132060
-
Simon Pilgrim authored
-
Nikolas Klauser authored
Reviewed By: Mordante, huixie90, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132032
-
Philip Reames authored
This change reorganizes the code and comments to make the expected semantics of these routines more clear. However, this is *not* an NFC change. The functional change is having isScalarWithPredication return false if the instruction does not need predicated. Specifically, for the case of a uniform memory operation we were previously considering it *not* to be a predicated instruction, but *were* considering it to be scalable with predication. As can be seen with the test changes, this causes uniform memory ops which should have been lowered as uniform-per-parts values to instead be lowering via naive scalarization or if scalarization is infeasible (i.e. scalable vectors) aborted entirely. I also don't trust the code to bail out correctly 100% of the time, so it's possible we had a crash or miscompile from trying to scalarize something which isn't scalaralizable. I haven't found a concrete example here, but I am suspicious. Differential Revision: https://reviews.llvm.org/D131093
-
Christian Kandeler authored
This matches user expectations. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D131175
-
Peter Steinfeld authored
The code generated for this version of the intrinsic is broken. I'm marking it as a "TODO" for now so that people don't get unannounce bad results. Differential Revision: https://reviews.llvm.org/D132082
-
Simon Pilgrim authored
The costs tables still assume throughput, but the general expansion patterns should be good for any cost kind
-
Simon Pilgrim authored
-
Martin Storsjö authored
This shouldn't have any externally visible effect. This matches the new name from 18b4a8bc. Differential Revision: https://reviews.llvm.org/D130701
-
Simon Pilgrim authored
* Replace getUserCost with getInstructionCost, covering all cost kinds. * Remove getInstructionLatency, it's not implemented by any backends, and we should fold the functionality into getUserCost (now getInstructionCost) to make it easier for targets to handle the cost kinds with their existing cost callbacks. Original Patch by @samparker (Sam Parker) Differential Revision: https://reviews.llvm.org/D79483
-
Ties Stuij authored
This patch fixes a crash when trying to emit a constant compound literal. For C++ Clang evaluates either casts or binary operations at translation time, but doesn't pass on the InConstantContext information that was inferred when parsing the statement. Because of this, strict FP evaluation (-ftrapping-math) which shouldn't be in effect yet, then causes checkFloatingpointResult to return false, which in tryEmitGlobalCompoundLiteral will trigger an assert that the compound literal wasn't constant. The discussion here around 'manifestly constant evaluated contexts' was very helpful to me when trying to understand what LLVM's position is on what evaluation context should be in effect, together with the explanatory text in that patch itself: https://reviews.llvm.org/D87528 Reviewed By: rjmccall, DavidSpickett Differential Revision: https://reviews.llvm.org/D131555
-
wanglian authored
Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D132116
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D132026
-