- Apr 09, 2021
-
-
Max Kazantsev authored
-
Frederik Gossen authored
Differential Revision: https://reviews.llvm.org/D100042
-
Jim Lin authored
New SDTypeProfile can be reused for other word operation patterns without explicit i64 type in the future. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D100097
-
Thomas Preud'homme authored
LLVM test Transforms/LoopVectorize/pr34681.ll tries to check for the absence of a sequence of instructions with several CHECK-NOT with one of those directives using a variable defined in another. However CHECK-NOT are checked independently so that is using a variable defined in a pattern that should not occur in the input. This commit only checks for the absence of icmp ne 1 which rules out the presence of the whole sequence and does not involve an undefined variable. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D99582
-
-
-
Chen Zheng authored
-
Jim Lin authored
-
Max Kazantsev authored
-
Serguei Katkov authored
Replace if-else to if-continue usage. This simplifies further extension of the collected stats.
-
MaheshRavishankar authored
Recent change enable dropping unit-trip loops of "reduction" iterator type as well. This is fine as long as there is one other "reduction" iterator in the operation. Without this the initialized value (value of `out`) is not read which leads to a correctness issue. Also fix a bug in the `fill` -> `tensor_reshape` folding. The `out` operand of the `fill` needs to be reshaped to get the `out` operand of the generated `fill` operation. Differential Revision: https://reviews.llvm.org/D100145
-
zoecarver authored
Refs: https://bugs.llvm.org/show_bug.cgi?id=32147 Differential Revision: https://reviews.llvm.org/D80882
-
Arthur Eubanks authored
Previously loading the vtable used in calling a virtual method in a loop was not hoisted out of the loop. This fixes that. canSinkOrHoistInst() itself doesn't check that the load operands are loop invariant, callers also check that separately. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D99784
-
Esme-Yi authored
-
Serguei Katkov authored
meetBDVState looks pretty difficult to read and follow. This is purely NFC but doing several things: 1) Combine meet and meetBDVState 2) Move the function to be a member of BDVState 3) Make BDVState be a mutable object 4) Convert switch to sequence of ifs 5) Adds comments. Reviewers: reames, dantrushin Reviewed By: reames Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D99064
-
Yang Fan authored
GCC warning: ``` /llvm-project/clang/lib/Basic/SourceManager.cpp: In instantiation of ‘constexpr T likelyhasbetween(T, unsigned char, unsigned char) [with T = long unsigned int]’: /llvm-project/clang/lib/Basic/SourceManager.cpp:1292:52: required from here /llvm-project/clang/lib/Basic/SourceManager.cpp:1264:48: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses] 1264 | (x & ~static_cast<T>(0) / 255 * 127) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1265 | (~static_cast<T>(0) / 255 * (127 - (m - 1)))) & | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` -
Jim Lin authored
Add explicit type i64 to RV64 only patterns to stop emitting unneeded i32 patterns. It can reduce the isel table size. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D100089
-
Alex Orlov authored
This fixes https://bugs.llvm.org/show_bug.cgi?id=41712 bug. Reviewed By: aganea Differential Revision: https://reviews.llvm.org/D99978
-
Rob Suderman authored
Lowerings tosa.max_pool2d to linalg equivalent operations. Includes adding max pooling operations for linalg, with corresponding tests. Differential Revision: https://reviews.llvm.org/D99824
-
Duncan P. N. Exon Smith authored
Sink the interesting parts of StringMapEntry::Create into a new function StringMapEntryBase::allocateWithKey that's only templated on the allocator, taking the entry size and alignment as parameters. As dblaikie pointed out in the review, it'd be interesting as a follow-up to make this more generic and maybe sink at least some of it into a source file; I haven't done that yet myself, but I left behind an encouraging comment. Differential Revision: https://reviews.llvm.org/D95654
-
David Blaikie authored
This ensures these types have distinct names if they are distinct types (eg: if one is an instantiation with a type in one inline namespace, and another from a type with the same simple name, but in a different inline namespace).
-
David Blaikie authored
-
Weiwei Li authored
This patch doesn't support the optional operands of ImageDrefGather. The support of optional operands will be implemented later. co-authered-by:
Alan Liu <alanliu.yf@gmail.com> Differential Revision: https://reviews.llvm.org/D100128
-
Duncan P. N. Exon Smith authored
This reverts commit e35afbe5, reapplying 022ccedd and e7ed5c92. - The first attempt missed defining `SignpostEmitterImpl`. - The second attempt missed defining `llvm::SignpostEmitterImpl`. Not sure how I failed to test both versions locally before; I thought I'd turned the feature off via rerunning `cmake` but it must have been stuck in place. This time I confirmed via `clang -E` that I was testing both build configurations. Original commit message: Replace some manual memory management with std::unique_ptr. Differential Revision: https://reviews.llvm.org/D100151
-
Duncan P. N. Exon Smith authored
This reverts commit e7ed5c92 again, due to more buildbot failures: https://lab.llvm.org/buildbot/#/builders/131/builds/8191
-
Duncan P. N. Exon Smith authored
This reverts commit 07807228, reapplying 022ccedd. I figured out why this was failing in other environments: it's not a problem with std::unique_ptr, but that SignpostEmitterImpl only has a forward declaration. Adding an empty definition should do the trick. Original commit message: Replace some manual memory management with std::unique_ptr. Differential Revision: https://reviews.llvm.org/D100151
-
Duncan P. N. Exon Smith authored
This reverts commit 022ccedd. Looks like some hosts need a definition of SignpostEmitterImpl to put it in a unique_ptr: https://lab.llvm.org/buildbot/#/builders/92/builds/7733
-
Duncan P. N. Exon Smith authored
The destructor for SignPostEmitterImpl::SignpostLog is known statically. Avoid the unnecessary vtable indirection through std::function in the std::unique_ptr by turning LogDeleter into a struct. No real functionality change here. Differential Revision: https://reviews.llvm.org/D100154
-
Duncan P. N. Exon Smith authored
This is a DenseMap, which has its own initializer; we don't need to explicitly call the default constructor here. Differential Revision: https://reviews.llvm.org/D100152
-
Duncan P. N. Exon Smith authored
Replace some manual memory management with std::unique_ptr. Differential Revision: https://reviews.llvm.org/D100151
-
Duncan P. N. Exon Smith authored
Add a variant of `fs::resize_file` for use immediately before opening a file with `mapped_file_region::readwrite`. On Windows, `_chsize` (`ftruncate`) is slow, but `CreateFileMapping` (`mmap`) automatically extends the file so the call to `fs::resize_file` can be skipped. This optimization was added to `FileOutputBuffer` in da9bc2e5; this commit just extracts the logic out and adds a unit test. Differential Revision: https://reviews.llvm.org/D95490
-
Mehdi Amini authored
Dialects can be translated to LLVM IR when they have the LLVMTranslationDialectInterface interface registered. In case the interface isn't explicitly registered, even the LLVM dialect can't be exported to LLVM IR. This make the error message more explicit on this. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D96729
-
Nikita Kniazev authored
Required for capturing base specifier in matchers: `cxxRecordDecl(hasDirectBase(cxxBaseSpecifier().bind("base")))` Reviewed By: steveire, aaron.ballman Differential Revision: https://reviews.llvm.org/D69218 -
Leonard Chan authored
Differential Revision: https://reviews.llvm.org/D99368
-
Craig Topper authored
[RISCV] Use multiclass inheritance where possible for the VPat* multiclasses in RISVInstrInfoVPseudos. NFCI Instead of instantiating multiclasses inside multiclasses, just inherit from them. We can do the same for the VPseudo* multiclasses, but that may interfere with the scheduler class work.
-
Craig Topper authored
This doesn't do anything so it's just wasted characters. I have other plans for the ones in multiclasses.
-
Jonas Devlieghere authored
The test is failing on GreenDragon. Pinged Michał in D98822.
-
Alexey Bataev authored
We should not re-try attempt of finding of the consecutive store chain if it was tried before. Differential Revision: https://reviews.llvm.org/D100131
-
Philip Reames authored
Pretty straightforward use of existing infrastructure and port of the attributor inference rules for nosync. A couple points of interest: * I deliberately switched from "monotonic or better" to "unordered or better". This is simply me being conservative and is better in line with the rest of the optimizer. We treat monotonic conservatively pretty much everywhere. * The operand bundle test change is suspicious. It looks like we might have missed something here, but if so, it's an issue with the existing nofree inference as well. I'm going to take a closer look at that separately. * I needed to keep the previous inference from readnone. This surprised me, but made sense once I realized readonly inference goes to lengths to reason about local vs non-local memory and that writes to local memory are okay. This is fine for the purpose of nosync, but would e.g. prevent us from inferring nofree from readnone - which is slightly surprising. Differential Revision: https://reviews.llvm.org/D99769
-
Arthur Eubanks authored
This fixes a "Cached first special instruction is wrong!" assert. The assert fires because replacing a value with another can cause an instruction to no longer be "special" to ICF. In this case, devirtualization happened, turning an indirect call to a call to a willreturn function which is no longer special. Reviewed By: nikic, rnk Differential Revision: https://reviews.llvm.org/D99977
-