- Mar 24, 2021
-
-
Shoaib Meenai authored
-
Amara Emerson authored
-
Amara Emerson authored
Codegen isn't as good as we need it, but that'll be done later.
-
Rob Suderman authored
Tosa's argmax lowering is representable as a linalg.indexed_generic operation. Include the lowering to this type for both integer and floating point types. Differential Revision: https://reviews.llvm.org/D99137
-
Jingu Kang authored
Differential Revision: https://reviews.llvm.org/D99069
-
Julian Lettner authored
-
Rafael Auler authored
This patch addresses the removal of register size information done in commit c8b782ce. Without this change, there is no viable option to get register size information outside libTarget. We need this information to run analysis that know the register size from the MC layer, used by BOLT. Discussion D50285 and D47199. Reviewed By: kparzysz Differential Revision: https://reviews.llvm.org/D97891
-
Vy Nguyen authored
On Fuchsia, it's called Fuchsia LLD Differential Revision: https://reviews.llvm.org/D99217
-
Matteo Favaro authored
As mentioned in [[ https://reviews.llvm.org/D96979 | D96979 ]], I'm extending the **IsGuaranteedLoopInvariant** check also to the `MemorySSA.cpp` file. @fhahn For now I didn't unify the function into `MemorySSA.h` because, as you mentioned, it's not directly MSSA related. I'm open to suggestions to find a better place so we can improve the unification process. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D97155
-
Shafik Yaghmour authored
-
Alexey Bataev authored
Added getPointersDiff function to LoopAccessAnalysis and used it instead direct calculatoin of the distance between pointers and/or isConsecutiveAccess function in SLP vectorizer to improve compile time and detection of stores consecutive chains. Part of D57059 Differential Revision: https://reviews.llvm.org/D98967
-
Rob Suderman authored
Lowers from tosa's pad op to the linalg equivalent for floating, integer, and quantized values. Differential Revision: https://reviews.llvm.org/D98990
-
River Riddle authored
[mlir][Pattern] Add better support for using interfaces/traits to match root operations in rewrite patterns To match an interface or trait, users currently have to use the `MatchAny` tag. This tag can be quite problematic for compile time for things like the canonicalizer, as the `MatchAny` patterns may get applied to *every* operation. This revision adds better support by bucketing interface/trait patterns based on which registered operations have them registered. This means that moving forward we will only attempt to match these patterns to operations that have this interface registered. Two simplify defining patterns that match traits and interfaces, two new utility classes have been added: OpTraitRewritePattern and OpInterfaceRewritePattern. Differential Revision: https://reviews.llvm.org/D98986
-
Chris Lattner authored
This provides a simplified way to implement 'matchAndRewrite' style canonicalization patterns for ops that don't need the full power of RewritePatterns. Using this style, you can implement a static method with a signature like: ``` LogicalResult AssertOp::canonicalize(AssertOp op, PatternRewriter &rewriter) { return success(); } ``` instead of dealing with defining RewritePattern subclasses. This also adopts this for a few canonicalization patterns in the std dialect to show how it works. Differential Revision: https://reviews.llvm.org/D99143 -
Fangrui Song authored
-
Matt Morehouse authored
Reviewed By: vitalybuka, eugenis Differential Revision: https://reviews.llvm.org/D98373
-
Nikita Popov authored
This fixes a regression reported on D99022: If a call has operand bundles, then the inaccessiblememonly attribute on the function will be ignored, as operand bundles can affect modref behavior in the general case. However, for assume operand bundles in particular this is not the case. Adjust getModRefBehavior() to always report inaccessiblememonly for assumes, regardless of presence of operand bundles.
-
Nikita Popov authored
-
Alexey Bataev authored
This reverts commit 065a14a1 to investigate and fix crash in SLP vectorizer.
-
Rob Suderman authored
Tiling operations are generic operations with modified indexing. Updated to to linalg lowerings to perform this lowering. Differential Revision: https://reviews.llvm.org/D99113
-
Vy Nguyen authored
Differential Revision: https://reviews.llvm.org/D99210
-
natashaknk authored
Adds lowerings for matmul and fully_connected. Only supports 2D tensors for inputs and weights, and 1D tensors for bias. Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D99211
-
Alexey Bataev authored
Added getPointersDiff function to LoopAccessAnalysis and used it instead direct calculatoin of the distance between pointers and/or isConsecutiveAccess function in SLP vectorizer to improve compile time and detection of stores consecutive chains. Part of D57059 Differential Revision: https://reviews.llvm.org/D98967
-
Amara Emerson authored
This adds some missing legalizer tests, which uncovered a v2s64 selection test that wasn't working since there's no legalization or instruction for that.
-
Craig Topper authored
This select of ctpop with 0 pattern can get left behind after loop idiom recognize converts a loop to ctpop. LLVM 10 was able to optimize this, but LLVM 11 and later is not. The difference seems to be that some select transforms are now limited based on canCreateUndefOrPoison. Teaching canCreateUndefOrPoison about ctpop restores the LLVM 10 codegen. Differential Revision: https://reviews.llvm.org/D99207
-
Petr Hosek authored
Rather than including libc++ include dir, use the cxx-headers target. Differential Revision: https://reviews.llvm.org/D98367
-
Matt Morehouse authored
The function works like MapDynamicShadow, except that it creates aliased memory to the right of the shadow. The main use case is for HWASan aliasing mode, which gets fast IsAlias() checks by exploiting the fact that the upper bits of the shadow base and aliased memory match. Reviewed By: vitalybuka, eugenis Differential Revision: https://reviews.llvm.org/D98369
-
Vy Nguyen authored
Revert "Revert "Revert "Revert "Revert "Revert "[lld-macho] Implement -dependency_info (partially - more opcodes needed)"""""" This reverts commit 4876ba5b. Third-attemp relanding D98559, new change: - explicitly cast enum to underlying type to avoid ambiguity (workaround to clang's bug).
-
Louis Dionne authored
-
Peter Collingbourne authored
Differential Revision: https://reviews.llvm.org/D99103
-
Arthur O'Dwyer authored
Review D88220 turns out to have some pretty severe bugs, but I *think* this patch fixes them. Paper P1825 is supposed to enable implicit move from "non-volatile objects and rvalue references to non-volatile object types." Instead, what was committed seems to have enabled implicit move from "non-volatile things of all kinds, except that if they're rvalue references then they must also refer to non-volatile things." In other words, D88220 accidentally enabled implicit move from lvalue object references (super yikes!) and also from non-object references (such as references to functions). These two cases are now fixed and regression-tested. Differential Revision: https://reviews.llvm.org/D98971
-
Arthur O'Dwyer authored
My attempts to play around with the old graph_header_deps.py were mostly fruitless; I needed to modify it in various ways to make it work, and then even when I got it working, it generated pretty ugly graphs. Old graph_header_deps.py (after my local changes to simplify the usage) (producing https://i.imgur.com/zATrsaP.jpg ) mkdir foo time ./graph_header_deps.py --libcxx-only -o foo --clang-command ~/llvm-project/build/bin/clang++ dot -Tpng < foo/all_headers.dot > old.png file old.png real 0m37.453s old.png: PNG image data, 25882 x 3035, 8-bit/color RGBA, non-interlaced New graph_header_deps.py (producing https://i.imgur.com/ZU0G52U.png ) time ./graph_header_deps.py | dot -Tpng > new.png file new.png real 0m1.063s new.png: PNG image data, 6162 x 1344, 8-bit/color RGBA, non-interlaced Differential Revision: https://reviews.llvm.org/D99124
-
Fangrui Song authored
`check-lsan` passed on an aarch64-*-linux machine. Unsupport `many_tls_keys_pthread.cpp` for now: it requires GetTls to include `specific_1stblock` and `specific` in `struct pthread`. Differential Revision: https://reviews.llvm.org/D98985
-
Louis Dionne authored
-
Alex Zinenko authored
-
Jonas Devlieghere authored
Only look for symbols with the ThinLTO suffix if we fail to find the symbol.
-
Tony authored
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D99196
-
Nicolas Vasilache authored
This revision introduces proper backward slice computation during the hoisting of PadTensorOp. This allows hoisting padding even across multiple levels of tiling. Such hoisting requires the proper handling of loop bounds that may depend on enclosing loop variables. Differential revision: https://reviews.llvm.org/D98965
-
Paul Robinson authored
This was added in LLVM 7.0 but without help text or other docs. Differential Revision: https://reviews.llvm.org/D98873
-