- Jul 16, 2022
-
-
Ashay Rane authored
The visitor functions for `Region` and `Block` types did not always check the value returned by recursive calls. This caused the top-level visitor invocation to return `WalkResult::advance()` even if one or more recursive invocations returned `WalkResult::interrupt()`. This patch fixes the problem by check if any recursive call is interrupted, and if so, return `WalkResult::interrupt()`. Reviewed By: dcaballe Differential Revision: https://reviews.llvm.org/D129718
-
Joseph Huber authored
The new driver generated offloadinga actions for each active toolchain. However, for CUDA and HIP it is possible for the toolchain to be active but one of the files is not a valid input. This can occur if the user compiles both a CUDA and C source file in the same compiler invocation. This patch adds some simple logic to quit if the input is not valid as well. Reviewed By: tra, MaskRay Differential Revision: https://reviews.llvm.org/D129885
-
Yuanfang Chen authored
Only report failure for tests that actually runs.
-
Leonard Grey authored
The reserve constructor was removed in 44f55509 but this one was missed. As a result, we attempt to iterate through 1024 threads each time, most of which are 0. Differential Revision: https://reviews.llvm.org/D129897
-
Fangrui Song authored
-
Joseph Huber authored
The device runtime uses the address space attribute to control the placement of important constants on the GPU. The changes made in D126061 caused these to start emitting errors as they were not applied to the type. This patch fixes the issues to make the warnings go away. Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D129896
-
Rong Xu authored
Don't cross reference CSFDO profile and non-CSFDO profile when checking the function hash. Only return hash_mismatch when CS bits match, and return unknown_function otherwise. Differential Revision: https://reviews.llvm.org/D129000
-
Rong Xu authored
This patch improves FDO hash-mismatch handling: (1) filter out warnings to weak functions. Weak functions definition will be overridden by a strong definition by linker. The hash mismatch in profile use compilation is expected. Make the profile hash mismatch warning under the existing option (default true). (2) add an option to trace the hash of functions with the specific string. Note that an empty string parameter will trace all functions. Differential Revision: https://reviews.llvm.org/D129002
-
Jim Kitchen authored
A new sparse_tensor operation allows for custom reduction code to be injected during linalg.generic lowering for sparse tensors. An identity value is provided to indicate the starting value of the reduction. A single block region is required to contain the custom reduce computation. Reviewed by: aartbik Differential Revision: https://reviews.llvm.org/D128004
-
Philip Reames authored
Changes since initial commit: * Wrapping a pointer in an SCEV unknown hides the base, and SCEV is only able to compute a subtraction when the bases are known to be equal. This results in a SCEVCouldNotCompute flowing forward and triggering asserts. Test case added in d767b392. * isLoopInvariant returns true for instructions outside the loop, but not necessarily *above* the loop. Since this code is allowed to visit uses of an IV outside of a loop, we have to make sure the operands of the compare are both invariant and dominating the header. Test case added in 2aed3cdb. Original commit message follows... The ICmpZero matching is checking to see if the expression is loop invariant per SCEV and expandable. This allows expressions inside the loop which can be made loop invariant to be seamlessly expanded, but is overly conservative for expressions which already *are* loop invariant. As a simple justification for why this is correct, consider a loop invariant urem as RHS vs an alternate function with that same urem wrapped inside a helper call. Why would it be legal to match the later, but not the former? Differential Revision: https://reviews.llvm.org/D129793
-
Yuanfang Chen authored
In some situations, like running tests with sanitizers, all test passes but the shard could still fail due to memory issues. Relands 65769429
-
Yuanfang Chen authored
This reverts commit 65769429. This patch is incomplete.
-
Michał Górny authored
Enable stdio forwarding when nonstop mode is enabled, and disable it once it is disabled. This makes it possible to cleanly handle stdio forwarding while running multiple processes in non-stop mode. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D128932
-
Michał Górny authored
-
Mahesh Ravishankar authored
-
Mahesh Ravishankar authored
This is a NFC change to make it easier to update this canonicalization for more use cases. The refactoring makes things easier to understand/adapt. Differential Revision: https://reviews.llvm.org/D129829
-
Leonard Grey authored
-
Jonathon Penix authored
Evaluations for the Where and Forall constructs previously did not have their constructExit field fixed up. This could lead to falling through to subsequent case blocks in select case statements if either a Where or Forall construct was the final part of one case block. Setting the constructExit field results in the proper branching behavior. Fixes issue: https://github.com/llvm/llvm-project/issues/56500 Differential Revision: https://reviews.llvm.org/D129879 Change-Id: Ia868df12084520a935f087524e118bcdf47f6d7a
-
Yuanfang Chen authored
In some situations, like running tests with sanitizers, all test passes but the shard could still fail due to memory issues.
-
Jez Ng authored
We were re-defining the various numeric variables when we actually intended to check already-defined variables against the value on the current CHECK line. Reviewed By: #lld-macho, thakis Differential Revision: https://reviews.llvm.org/D129831
-
Philip Reames authored
-
Rajas Vanjape authored
This diff adds an integration test which does element wise multiplication for two sparse 3-d tensors of size 3x3x5 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D129638
-
Haojian Wu authored
-
Zequan Wu authored
When profdata is missing on report and export commands, the error message is indistinguishable from missing instrumented binary file. This adds the error message for report and export commands. Differential Revision: https://reviews.llvm.org/D129791
-
Warren Ristow authored
Compiling with '-ffast-math' tuns on all the FastMathFlags (FMF), as expected, and that enables FP reassociation. Only the two FMF flags 'reassoc' and 'nsz' are technically required to perform reassociation, but disabling other unrelated FMF bits is needlessly suppressing the optimization. This patch fixes that needless suppression, and makes appropriate adjustments to test-cases, fixing some outstanding TODOs in the process. Fixes: #56483 Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D129523
-
Philip Reames authored
-
Michał Górny authored
Stop all processes and clear notification queues when disabling non-stop mode. Ensure that no stop notifications are sent for processes stopped due to the mode switch. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D128893
-
Michał Górny authored
-
Michael Jones authored
This adds functionality for rounding towards negative inf, positive inf, and zero to the float hex conversion (%a). Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D129702
-
Vang Thao authored
Add analyis remarks to output kernel name, register usage, occupancy, scratch usage, spills, and LDS information. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D123878
-
Lei Zhang authored
In `linalg::tileConsumerAndFuseProducers`, there are two levels of tiling and fusion; we partition the tile sizes and only use one half for each of them. The partition is using the first non-parallel dimension *after* interchange as the boundary. However, concrete tiling happens *together with* loop interchange, so we still need to provide the partial tile sizes *before* the interchange. Otherwise, there will be inconsistency, which is what this patch is to fix. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D129804
-
Philip Reames authored
This reverts commit 9153515a. Builtbot crash was reported in the commit thread, reverting while investigating.
-
Laszlo Kindrat authored
This patch modifies the implementation of `RewritePatternSet::add` to perfectly forward its arguments to pattern constructors. Without this, code like the following compiles but, due to the limited lifetime of the temporary TypeConverter, can produce unexpected behavior: ``` RewritePatternSet patterns(context); patterns.add<SomeOpConversion, OtherOpConversion>(TypeConverter(), context); if (failed(applyPartialConversion(getOperation(), target, std::move(patterns)))) return signalPassFailure(); ``` The patch also changes the linalg fusion pattern implementation to correctly fill the test pattern set given the new behavior. Author: Laszlo Kindrat <laszlokindrat@gmail.com> Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D129601
-
Fangrui Song authored
When an issue exists in the main file (caller) instead of an included file (callee), using a `src` pattern applying to the included file may be inappropriate if it's the caller's responsibility. Add `mainfile` prefix to check the main filename. For the example below, the issue may reside in a.c (foo should not be called with a misaligned pointer or foo should switch to an unaligned load), but with `src` we can only apply to the innocent callee a.h. With this patch we can use the more appropriate `mainfile:a.c`. ``` //--- a.h // internal linkage static inline int load(int *x) { return *x; } //--- a.c, -fsanitize=alignment #include "a.h" int foo(void *x) { return load(x); } ``` See the updated clang/docs/SanitizerSpecialCaseList.rst for a caveat due to C++ vague linkage functions. Reviewed By: #sanitizers, kstoimenov, vitalybuka Differential Revision: https://reviews.llvm.org/D129832 -
Florian Hahn authored
For scalable vectors, it is not sufficient to only check MinProfitableTripCount if it is >= VF.getKnownMinValue() * UF, because this property may not holder for larger values of vscale. In those cases, compute umax(VF * UF, MinProfTC) instead. This should fix https://lab.llvm.org/buildbot/#/builders/197/builds/2262
-
Joseph Huber authored
Summary: Non-functional change, just fixing some sign comparison warnings by making both match.
-
lorenzo chelini authored
Did not preserve author information. This reverts commit b0afda78.
-
Tom Stellard authored
The /branch and /cherry-pick commands only work when an isssue has a milestone, so give the user a helpful error message when they try these commands on issue without a milestone. Reviewed By: thieta, kwk Differential Revision: https://reviews.llvm.org/D125744
-
Michael Jones authored
This patch adds all the string and stdlib entrypoints, as well as a few math entrypoints to the arm32 build. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D129821
-
lorenzo chelini authored
This patch modifies the implementation of `RewritePatternSet::add` to perfectly forward its arguments to pattern constructors. Without this, code like the following compiles but, due to the limited lifetime of the temporary TypeConverter, can produce unexpected behavior: ``` RewritePatternSet patterns(context); patterns.add<SomeOpConversion, OtherOpConversion>(TypeConverter(), context); if (failed(applyPartialConversion(getOperation(), target, std::move(patterns)))) return signalPassFailure(); ``` The patch also changes the linalg fusion pattern implementation to correctly fill the test pattern set given the new behavior. Author: Laszlo Kindrat <laszlokindrat@gmail.com> Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D129601
-