- Nov 16, 2021
-
-
Craig Topper authored
Differential Revision: https://reviews.llvm.org/D113937
-
Craig Topper authored
These test files are copied directly from AArch64. Some of the cases may benefit from ANDN with the Zbb extension. Somes cases already improve use ANDN. selectcc-to-shiftand.ll also contains tests that test select->and conversion even when a ANDN isn't needed. I think this improves our coverage of these optimizations. Differential Revision: https://reviews.llvm.org/D113935
-
Fabian Wolff authored
Fixes PR#48678. `X86TargetLowering::getRegForInlineAsmConstraint()` can adjust the register class to match the type, e.g. change `VR128X` to `VR256X` if the type needs 256 bits. However, the function currently returns the unadjusted register and the adjusted register class, e.g. `xmm15` and `VR256X`, which then causes an assertion failure later because the register class does not contain that register. This patch fixes this behavior. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D113834
-
Matt Arsenault authored
A future change will add SCC liveness checks. Since we are still relying on forward register scavenging, add dead flags to avoid spuriously detecting SCC as live.
-
Matt Arsenault authored
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D113730
-
Matheus Izvekov authored
Rename `IsPossiblyOpaquelyQualifiedType` overload taking a Type* as `IsPossiblyOpaquelyQualifiedTypeInternal` instead. Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Differential Revision: https://reviews.llvm.org/D113954
-
Duncan P. N. Exon Smith authored
Given that DWARFExpression::iterator::skipBytes() doesn't change any state (it returns a new `iterator`), it might as well be `const`-qualified.
-
Duncan P. N. Exon Smith authored
Add `const` to DWARFExpression::Operation's accessors and make Operation::extract() private, since it's only used by the friend class DWARFExpression::iterator.
-
Duncan P. N. Exon Smith authored
Looks like an accident that `operator++` was returning `Operator&` instead of `iterator&`. Update to match standard iterator behaviour.
-
Craig Topper authored
It's possible that the mask is already a NOT. At least if InstCombine hasn't canonicalized the input. In that case we will form an ANDN with X instead of with Y. So we don't need to worry about Y being a constant. We might need to check that X isn't a constant instead, but we don't have a test case for that yet. This fixes a size regression found when trying to enable this combine for RISCV in D113937. Differential Revision: https://reviews.llvm.org/D113948
-
ZijunZhao authored
Change-Id: Ic83ff1ec86d6a7d61b07fa3df7e0cb2790b5ebc7
-
Zequan Wu authored
-
Geoffrey Martin-Noble authored
This feature checks that headers included by a file are provided by a header exported by one of the direct dependencies of the build rule in which it is contained. It ensures that appropriate layering (a goal of the LLVM project) is preserved. So far, I'm only adding this to MLIR because we've had it turned on internally since the beginning, so MLIR is already layering clean. It would be nice to also enable it for LLVM, but that requires some additional cleanup. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D113952
-
Mehrnoosh Heidarpour authored
This patch adds the following fold opportunity: A|B | (A^B) --> A|B that is reported here : https://bugs.llvm.org/show_bug.cgi?id=52479 https://alive2.llvm.org/ce/z/33-My- Test cases with base results are added in D113860 Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D113861
-
Ben Shi authored
Use LUI+SH*ADD+ADDI to compose specific immediates. Reviewed By: craig.topper, luismarques Differential Revision: https://reviews.llvm.org/D113568
-
Ben Shi authored
Reviewed By: craig.topper, luismarques Differential Revision: https://reviews.llvm.org/D113567
-
Aart Bik authored
This revision contains all "sparsification" ops and rewriting necessary to support sparse output tensors when the kernel has no reduction (viz. insertions occur in lexicographic order and are "injective"). This will be later generalized to allow reductions too. Also, this first revision only supports sparse 1-d tensors (viz. vectors) as output in the runtime support library. This will be generalized to n-d tensors shortly. But this way, the revision is kept to a manageable size. Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D113705
-
natashaknk authored
Split tosa.reshape into three individual lowerings: collapse, expand and a combination of both. Add simple dynamic shape support. Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D113936
-
Stanislav Mekhanoshin authored
This reverts commit 193c40e9.
-
James King authored
This contributes follow-up work from https://reviews.llvm.org/D112491, which allows for increased control over the matching of lambda captures. This also updates the documentation for the `lambdaCapture` matcher. Reviewed By: ymandel, aaron.ballman Differential Revision: https://reviews.llvm.org/D113575
-
Arthur Eubanks authored
The SmallVector is not cleared in calls to getAllMetadata(). Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D113808
-
not-jenni authored
Multiply by one can be removed during canonicalization. This optimizes away unneeded operations. Differential Revision: https://reviews.llvm.org/D113807
-
Arthur Eubanks authored
[NewPM] Only invalidate modified functions' analyses in CGSCC passes + turn on eagerly invalidate analyses Previously, any change in any function in an SCC would cause all analyses for all functions in the SCC to be invalidated. With this change, we now manually invalidate analyses for functions we modify, then let the pass manager know that all function analyses should be preserved since we've already handled function analysis invalidation. So far this only touches the inliner, argpromotion, function-attrs, and updateCGAndAnalysisManager(), since they are the most used. This is part of an effort to investigate running the function simplification pipeline less on functions we visit multiple times in the inliner pipeline. However, this causes major memory regressions especially on larger IR. To counteract this, turn on the option to eagerly invalidate function analyses. This invalidates analyses on functions immediately after they're processed in a module or scc to function adaptor for specific parts of the pipeline. Within an SCC, if a pass only modifies one function, other functions in the SCC do not have their analyses invalidated, so in later function passes in the SCC pass manager the analyses may still be cached. It is only after the function passes that the eager invalidation takes effect. For the default pipelines this makes sense because the inliner pipeline runs the function simplification pipeline after all other SCC passes (except CoroSplit which doesn't request any analyses). Overall this has mostly positive effects on compile time and positive effects on memory usage. https://llvm-compile-time-tracker.com/compare.php?from=7f627596977624730f9298a1b69883af1555765e&to=39e824e0d3ca8a517502f13032dfa67304841c90&stat=instructions https://llvm-compile-time-tracker.com/compare.php?from=7f627596977624730f9298a1b69883af1555765e&to=39e824e0d3ca8a517502f13032dfa67304841c90&stat=max-rss D113196 shows that we slightly regressed compile times in exchange for some memory improvements when turning on eager invalidation. D100917 shows that we slightly improved compile times in exchange for major memory regressions in some cases when invalidating less in SCC passes. Turning these on at the same time keeps the memory improvements while keeping compile times neutral/slightly positive. Reviewed By: asbirlea, nikic Differential Revision: https://reviews.llvm.org/D113304
-
Matheus Izvekov authored
This implements the following changes: * AutoType retains sugared deduced-as-type. * Template argument deduction machinery analyses the sugared type all the way down. It would previously lose the sugar on first recursion. * Undeduced AutoType will be properly canonicalized, including the constraint template arguments. * Remove the decltype node created from the decltype(auto) deduction. As a result, we start seeing sugared types in a lot more test cases, including some which showed very unfriendly `type-parameter-*-*` types. Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Reviewed By: rsmith, #libc, ldionne Differential Revision: https://reviews.llvm.org/D110216
-
Steven Wu authored
Fix `splitBlock` so that it can handle the case when the block being split has symbols span across the split boundary. This is an error case in general but for EHFrame splitting on macho platforms, there is an anonymous symbol that marks the entire block. Current implementation will leave a symbol that is out of bound of the underlying block. Fix the problem by dropping such symbols when the block is split. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D113912
-
Stanislav Mekhanoshin authored
This patch adds the following fold opportunity: A|B | (A^B) --> A|B that is reported here : https://bugs.llvm.org/show_bug.cgi?id=52479 https://alive2.llvm.org/ce/z/33-My- Test cases with base results are added in D113860 (authored by MehrHeidar, committed by rampitec). Differential Revision: https://reviews.llvm.org/D113861
-
Jonas Paulsson authored
This patch adds support for symbolic displacements, e.g. like 'lg %r0, sym(%r1)', which is done using relocations. This is needed to compile the kernel without disabling the integrated assembler. Review: Ulrich Weigand Differential Revision: https://reviews.llvm.org/D113341
-
Nicolas Vasilache authored
This is in prevision of dropping them altogether and using insert/extract based patterns. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D113928
-
Mircea Trofin authored
This is in prepartion of pulling the eviction decision-making into an analysis pass, which would then allow swapping that decision making process. RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-November/153639.html Differential Revision: https://reviews.llvm.org/D113929
-
Fangrui Song authored
-
Krasimir Georgiev authored
No functional changes intended. Updated the iterator class for https://github.com/llvm/llvm-project/commit/6b9b86db9dd974585a5c71cf2e5231d1e3385f7c. Differential Revision: https://reviews.llvm.org/D113934
-
Philip Reames authored
This change is mostly about getting rid of some "uninteresting" cases in a follow on deeper heuristic change. If anyone sees actually interesting code differences out of this, please let me know. I'm not expecting this to have much impact at all. Case 1 - With the single deoptimize non-latch exit, we can't have two exiting blocks sharing an exit block. We can only hit this with a poorly documented debug flag. Case 2 - Why should we treat epilog cases differently from prolog cases? Or to say it differently, why should starting with a constant control whether a multiple exit loop gets unrolled? Sorry for the lack of tests here. These are both *exceedingly* narrow cases in practice, and after a while trying, I couldn't come up with a test which did anything "useful" as opposed to simply exercise a random combination of force flags. Note that the legality cases for each are already exercised with force flags.
-
Snehasish Kumar authored
-
Nicolas Vasilache authored
Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D113907
-
Nico Weber authored
https://reviews.llvm.org/D71677 copied a bunch of code from EmitGCCInlineAsmStr() to EmitMSInlineAsmStr() but made a few small (likely unintentional) changes. This makes these pieces look the same. No behavior change. (Why are these functions two copies? No great reason as far as I can tell. https://reviews.llvm.org/rG1778831a3d1d24ab6545635f63da4d9c5f8f0ac7 did the split; we might want to undo them at some point. But PR23933 suggests that a bigger change is planned for this file in the future, so keeping this incremental for now.) Differential Revision: https://reviews.llvm.org/D113924
-
Nico Weber authored
No behavior change. Differential Revision: https://reviews.llvm.org/D113911
-
Nico Weber authored
There's really no reason why anyone should use these special names in a variant. I noticed this while reading the code: all other writes to OS are guarded by this conditional, and the behavior with the check seems more correct, so let's add the check. Differential Revision: https://reviews.llvm.org/D113909
-
Lei Huang authored
The platform independent ISD::INSERT_VECTOR_ELT take a element index, but vins* instructions take a byte index. Update 32bit td patterns for vector insert to handle the element index accordingly. Since vector insert for non constant index are supported in ISA3.1, there is no need to use platform specific ISD node, PPCISD::VECINSERT. Update td pattern to directly use ISD::INSERT_VECTOR_ELT instead. Reviewed By: nemanjai, #powerpc Differential Revision: https://reviews.llvm.org/D113802
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch replaces master with merged in these comments. Reviewed By: #lld-macho, thakis Differential Revision: https://reviews.llvm.org/D113903
-