- Apr 26, 2022
-
-
Quinn Pham authored
from compiler-rt/lib/tsan [NFC] As part of using inclusive language within the llvm project, this patch rewords comments to remove sanity check and sanity test. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D124390
-
Matt Arsenault authored
Last chance recoloring didn't try recoloring a done register with the same class since it believed there was no point. This doesn't necessarily apply if the members in that class overlap. Allow the recoloring to proceed if the assigned interfering physical register overlaps with the candidate register. This avoids an allocation failure with overlapping tuples. This testcase could be handled better, and I don't believe should reach last chance recoloring. The failure only manifests with the mutually unsatisfiable register hints to overlapping tuples. The earlier assignment decisions probably should have figured out that using these hints was a bad idea.
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch rewords a comment to replace Whitelist with Allowlist in `RetainSummaryManager.cpp`. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D124389
-
Krzysztof Drewniak authored
This commit adds the visitNonControlFlowArguments method to DataFlowAnalysis, allowing analyses to provide lattice values for the arguments to a RegionSuccessor block that aren't directly tied to an op's inputs. For example, integer range interface can use this method to infer bounds for the step values in loops. This method has a default implementation that keeps the old behavior of assigning a pessimistic fixedpoint state to all such arguments. Reviewed By: Mogball, rriddle Differential Revision: https://reviews.llvm.org/D124021
-
Martin Storsjö authored
The setting and restoring of this variable became unused in 3ee0cec8 / D112155. Differential Revision: https://reviews.llvm.org/D124372
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D124371
-
Peter Klausler authored
A template argument was hard-coded as the Integer type category rather than properly forwarding the type category of the data for type-specific instantiations of total (no DIM=) MAXLOC and MINLOC. This broke total MAXLOC and MINLOC reductions for real and character data. Differential Revision: https://reviews.llvm.org/D124303
-
Paul Robinson authored
-
Peter Klausler authored
Support REDUCE's special semantic requirements in intrinsic procedure semantics. Differential Revision: https://reviews.llvm.org/D124296
-
Yuanfang Chen authored
When a unit test crashes or timeout, print the shard's stdout and stderr. When a unit test fails, attaches the test's output to the LIT output to help debugging. While at it, concatenating shard's environment variables using space instead of newline to make the reproducer script user friendly. Based on D123797. (Thanks to @lenary)
-
Valery N Dmitriev authored
tryToVectorize() method implements one of searching paths for vectorizable tree roots in SLP vectorizer, specifically for binary and comparison operations. Order of making probes for various scalar pairs was defined by its implementation: the instruction operands, then climb over one operand if the instruction is its sole user and then perform same actions for another operand if previous attempts failed. Problem with this approach is that among these options we can have more than a single vectorizable tree candidate and it is not necessarily the one that encountered first. Trying to build vectorizable tree for each possible combination for just evaluation is expensive. But we already have lookahead heuristics mechanism which we use for finding best pick among operands of commutative instructions. It calculates cumulative score for candidates in two consecutive lanes. This patch introduces use of the heuristics for choosing the best pair among several combinations. We only try one that looks as most promising for vectorization. Additional benefit is that we reduce total number of vectorization trees built for probes because we skip those looking non-profitable early. Reviewed By: Alexey Bataev (ABataev), Vasileios Porpodas (vporpo) Differential Revision: https://reviews.llvm.org/D124309
-
Sam McCall authored
It was added in 01b2cb47 but never used.
-
Peter Klausler authored
Both "INF" and "INFINITY" are standard. Differential Revision: https://reviews.llvm.org/D124401
-
jfurtek authored
This diff causes mlir-tblgen to generate code for an additional builder for an operation argument with a return type that can be inferred *AND* an attribute in the argument list can be "unwrapped." (Previously, the unwrapped build function was only generated for builders with explicit return types in separate or aggregate form.) As an example, this builder might be used by code that creates operations that implement the `SameOperandsAndResultType` interface. A test case was created. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D124043
-
Jeremy Furtek authored
This diff allows the EnumAttr class to be used for bit enum attributes (in addition to previously supported integer enum attributes). While integer and bit enum attributes share many common implementation aspects, parsing bit enum values requires a separate implementation. This is accomplished by creating empty parser and printer strings in the EnumAttrInfo record, and having derived classes (specific to bit and integer enums) override with an appropriate parser/printer string. To support existing bit enums that may use a vertical bar separator, the parser is modified to support the | token. Tests were added for bit enums alongside integer enums. Future diffs for fastmath attributes in the arithmetic dialect will use these changes. (resubmission of earlier abaondoned diff, updated to reflect subsequent changes in the repository) Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D123880
-
jfurtek authored
This diff introduces a tablegen field for bit enum attributes (`printBitEnumPrimaryGroups`) to control printing when the enum uses "group" cases. An example would be an implementation that uses a `fastmath` enum value as an alias for individual fastmath flags. The proposed field would allow printing of simply `fast` for the enum value, instead of the more verbose list that would include `fast` as well as the individual flags (e.g. `reassoc,nnan, ninf,nsz,arcp,contract,afn,fast`). Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D123871
-
Ishaan Gandhi authored
This leads to ".C" files being rewritten as ".c" files and being inferred to be "c" files as opposed to "c++" files. Fixes https://github.com/clangd/clangd/issues/1108 Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D124262
-
Rahman Lavaee authored
This also fixes some logs that were impacted by D123067. Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D124281
-
Mingming Liu authored
Add a regression test to guard the 0 hot-caller threshold in SamplePGO + ThinLTO. - Add a comment near where the threshold is set.
-
Peter Klausler authored
Don't treat KIND=16 as 80-bit extended floating-point any more on x86. Differential Revision: https://reviews.llvm.org/D124400
-
Nathan Lanza authored
This AliasPtr is being created always from an Int64 even for targets where 32 bit is the proper type. e.g. “thumbv7-none-linux-android16”. This causes the assert in the `get` func to fail as we're getting a 32 bit from the APInt. Fix this by simply always just getting the type from the value instead. Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D123272
-
Sam McCall authored
And haven't been since 2011: https://github.com/llvm/llvm-project/commit/eeca36fe9ad767380b2eab76a6fe5ba410a47393
-
Craig Topper authored
Reviewed By: reames Differential Revision: https://reviews.llvm.org/D123970
-
David Green authored
-
Vitaly Buka authored
On x86 long double is 80 bit with padding, which produces uninitialized bits in the result. This will trigger errors with -fsanitize-memory-param-retval. Can be triggered with D123979. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D123980
-
Fangrui Song authored
Using the legacy PM for the optimization pipeline was deprecated in 13.0.0. Following recent changes to remove non-core features of the legacy PM/optimization pipeline, remove AddressSanitizerLegacyPass... ..., ModuleAddressSanitizerLegacyPass, and ASanGlobalsMetadataWrapperPass. MemorySanitizerLegacyPass was removed in D123894. AddressSanitizerLegacyPass was removed in D124216. Reviewed By: #sanitizers, vitalybuka Differential Revision: https://reviews.llvm.org/D124337
-
Louis Dionne authored
[libc++][NFC] Use brace-init instead of parens to workaround macro expansion in badly behaved systems
-
David Green authored
-
Arthur Eubanks authored
The legacy PM for the optimization pipeline is deprecated and in the process of being cleaned up.
-
Nathan Sidwell authored
Placing a run-once test inside the operator lookup function caused problems with the thread sanitizer. See D122975. Break out the operator table into a member variable, and move the test to the unit test machinery. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D123390
-
Peter Klausler authored
At the top level of program units in a source file, two subprograms are allowed to have the same name if at least one of them has a distinct interoperable binding name. F18's symbol table requires (most) symbols in a scope to have distinct names, though. Solve by using compiler-created names for the symbols of global scope subprograms that have interoperable binding names. Differential Revision: https://reviews.llvm.org/D124295
-
Peter Klausler authored
F(X)=Y may be initially parsed as a statement function definition; an existing pass will detect statement functions that should be rewritten into assignment statemets with array element references as their left-hand side variables. However, F() may also be a reference to a function that returns a data pointer, and f18 did not handle this case correctly. The right fix is to rewrite the parse tree for F(X)=Y into an assignment to a function reference result. The cases that are actually assignments to array elements -- including all of the cases previously handled -- will have their left-hand sides converted to array element references later by another existing rewriting step. Differential Revision: https://reviews.llvm.org/D124299
-
Zakk Chen authored
vslideup works by leaving elements 0<i<OFFSET undisturbed. so it need the destination operand as input for correctness regardless of policy. Add a operand to indicate policy. We also add policy operand for unmaksed vslidedown to keep the interface consistent with vslideup because vslidedown have only undisturbed at 0<i<vstart but user have no way to control of vstart. Reviewed By: rogfer01, craig.topper Differential Revision: https://reviews.llvm.org/D124186
-
Simon Pilgrim authored
Fixes #55050
-
- Apr 25, 2022
-
-
Christudasan Devadasan authored
Run line change needed for an upcoming patch.
-
Christudasan Devadasan authored
-
Saleem Abdulrasool authored
Mark myself as the code owner for the builtins library as per the discussion at https://discourse.llvm.org/t/code-owner-for-compiler-rt-builtins-library. Differential Revision: https://reviews.llvm.org/D124263 Reviewed By: aaron.ballman, lattner
-
Piotr Sobczak authored
This reverts commit d1762fc4. Reverting D124232 as the buildbot reported some errors in sanitizers.
-
Yitzhak Mandelbaum authored
The current implementation mutates the environment as it performs the join. However, that interferes with the call to the model's `merge` operation, which can modify `MergedEnv`. Since any modifications are assumed to apply to the post-join environment, providing the same environment for both is incorrect. This mismatch is a particular concern for joining the flow conditions, where modifications in the old environment may not be propagated to the new one. Differential Revision: https://reviews.llvm.org/D124104
-