- Jan 19, 2022
-
-
Benjamin Kramer authored
Still a fair bit of spaghetti in the unittest rules
-
Vincent Lee authored
It's still uncertain but whether we want to have `deduplicate-literals` be the default flag for LLD out of the box or not. If `deduplicate-literals` is the default behavior, then we will need a way override it and not deduplicate. Luckily, we have `no_deduplicate` to fill this gap. For now, I've set the default to be false which aligns with the existing behavior. That can only always be changed after discussions on D117250. Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D117387
-
Peter Klausler authored
When a scalar-valued function with no distinct RESULT is being called recursively in its own executable part, emit a better message about the error. Clean up the code that resolves function vs. array ambiguities in expression semantics. Update to address review comment Differential Revision: https://reviews.llvm.org/D117577
-
Philip Reames authored
Try 2, this time including the test.
-
Joseph Huber authored
After the changes in D117362 made variables declared inside of a target declare directive visible outside the plugin, some variables inside the runtime were given visiblity that conflicted with their address space type. This caused problems when shared or local memory was made externally visible. This patch fixes this issue by making these varialbes static within the module, therefore limiting their visibility to being internal. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D117526
-
Joseph Huber authored
This patch changes the visiblity of variables declared within a declare target directive. Variable declarations within a declare target directive need to be externally visible to the plugin for initialization or reading. Previously this would cause runtime errors where the named global could not be found because it was not included in the symbol table. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D117362
-
Philip Reames authored
Revert "[MemoryBuiltins] Demote isMallocLikeFn to implementation routine since last use has been removed" This reverts commit 167af7bb. Buildbot breaks since I forgot to remove a unit test.
-
Philip Reames authored
-
Peter Klausler authored
A POSITION= specifier may not be used on a direct access file. Differential Revision: https://reviews.llvm.org/D117596
-
Peter Klausler authored
Don't let a program set a fixed RECL= on a connected unit unless it already had one with the same value. Differential Revision: https://reviews.llvm.org/D117595
-
Philip Reames authored
Confusion over this point came up in a couple of recent changes (D117180, e20b32ff). Current tone of discussion seems to be that we think inaccessiblememonly was always legal on allocation functions, so this change takes the form of a clarification instead of a change. Differential Revision: https://reviews.llvm.org/D117571
-
Benjamin Kramer authored
The input type of a linalg.generic can be less dynamic than its output type. If this is the case moving a reshape across the generic op would create invalid IR, as expand_shape cannot expand arbitrary dynamic dimensions. Check that the reshape is actually valid before creating the expand_shape. This exposes the existing verification logic in reshape utils and removes the incomplete custom implementation in fusion. Differential Revision: https://reviews.llvm.org/D116600
-
Benjamin Kramer authored
This can happen when the result has different dynamic dimensions than the input. Differential Revision: https://reviews.llvm.org/D117498
-
Mogball authored
-
Matt Arsenault authored
Since constants are canonicalized to the RHS, this is more likely to exit early.
-
Matt Arsenault authored
This was ignoring the requested result register, resulting in a missing def when this happened in the IRTranslator. Fixes some crashes and verifier errors at -O0. Alternatively we could pass DstOps to the constant fold functions.
-
Sam Clegg authored
We already perform memory initialization and apply global relocations during start. It makes sense to performs data relocations too. I think the reason we were not doing this already is solely historical. Differential Revision: https://reviews.llvm.org/D117412
-
Ed Maste authored
The kern.elf64.aslr.pie_enable and kern.elf32.aslr.pie_enable sysctls control the default setting for PIE binary address randomization, but it is possible to enable or disable ASLR on a per-process basis. So, use procctl(2) to query whether ASLR is enabled. (Note that with ASLR enabled but sysctl kern.elf64.aslr.pie_enable=0 a PIE binary will in effect have randomization disabled, and would be functional with msan. This is not intended as as a user-facing control though; proccontrol(1) should be used to disable aslr for the process.) Reviewed By: devnexen Differential Revision: https://reviews.llvm.org/D117521
-
Matt Arsenault authored
If the conversion artifact introduced in the unmerge of cast of merge combine already existed in the function, this would introduce dead copies which kept the old casts around, neither of which were deleted, and would fail legalization. This would fail as follows: The G_UNMERGE_VALUES of the G_SEXT of the G_BUILD_VECTOR would introduce a G_SEXT for each of the scalars. Some of the required G_SEXTs already existed in the function, so CSE moves them up in the function and introduces a copy to the original result register. The introduced CSE copies are dead, since the originally G_SEXTs were already directly used. These copies add a use to the illegal G_SEXTs, so they are not deleted. The artifact combiner does not see the defs that need to be updated, since it was hidden inside the CSE builder. I see 2 potential fixes, and opted for the mechanically simpler one, which is to just not insert the cast if the result operand isn't used. Alternatively, we could not insert the cast directly into the result register, and use replaceRegOrBuildCopy similar to the case where there is no conversion. I suspect this is a wider problem in the artifact combiner.
-
Mehdi Amini authored
Before this patch, deferred location in operation like `test.pretty_printed_region` would break the parser, and so the IR round-trip. Depends On D117088 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117413
-
Chris Bieneman authored
This change gets the split-file tests passing on Windows when autocrlf=true.
-
Stanislav Gatev authored
This is part of the implementation of the dataflow analysis framework. See "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev. Reviewed-by: xazax.hun Differential Revision: https://reviews.llvm.org/D117567
-
Amir Ayupov authored
Summary: Show individual bytes in the annotation mask. Test Plan: ninja llvm-bolt Reviewers: maksfb FBD30026393
-
Amir Ayupov authored
Summary: Move the annotation to avoid dynamic memory allocations. Improves the CPU time of instrumenting a large binary by 1% (+-0.8%, p-value 0.01) Test Plan: NFC Reviewers: maksfb FBD30091656
-
Sam McCall authored
Knowing the type of more dependent expressions means we can diagnose more errors at template parsing rather than instantiation time. Such templates are IFNDR, so this is a QoI improvement. I hadn't anticipated this in the original patch, so had no test.
-
David Green authored
This extends the code in SearchForAndLoads to be able to look through ANY_EXTEND nodes, which can be created from mismatching IR types where the AND node we begin from only demands the low parts of the register. That turns zext and sext into any_extends as only the low bits are demanded. To be able to look through ANY_EXTEND nodes we need to handle mismatching types in a few places, potentially truncating the mask to the size of the final load. Recommitted with a more conservative check for the type of the extend. Differential Revision: https://reviews.llvm.org/D117457
-
Philip Reames authored
A readonly operand bundle disallows inference of readnone from the callee, but it should not prevent us from using the readnone fact on the callee to infer readonly for the callsite. Fixes pr53270. Differential Revision: https://reviews.llvm.org/D117591
-
Mehdi Amini authored
This will allow to return to the client of `parseLocationInstance` a location that is resolved later. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117088
-
Chris Bieneman authored
Trimming whitespace or carriage returns from symbols allows this code to work on Windows and makes it match other places symbol lists are handled. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D117570
-
Philip Reames authored
If we have a writeonly function called from a callsite with a potentially reading operand bundle, we can not conclude the callsite is writeonly. The changed test is the only one I've been able to demonstrate a current miscompile on, but an incorrect result here could show up in a bunch of subtle ways. For instance, this issue caused several spurious test changes when combined with D117591.
-
John Ericson authored
I am breaking apart D99484 so the cause of build failures is easier to understand. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D117541
-
Sam Clegg authored
It seems the first half of this test was disabled in error as part of https://reviews.llvm.org/D93066. Differential Revision: https://reviews.llvm.org/D117594
-
spupyrev authored
This is an extension of **profi** post-processing step that rebalances counts in CFGs that have basic blocks w/o probes (aka "unknown" blocks). Specifically, the new version finds many more "unknown" subgraphs and marks more "unknown" basic blocks as hot (which prevents unwanted optimization passes). I see up to 0.5% perf on some (large) binaries, e.g., clang-10 and gcc-8. The algorithm is still linear and yields no build time overhead.
-
Fabian Wolff authored
Fixes PR#52245. I've also added a few test cases beyond PR#52245 that would also fail with the current implementation, which is quite brittle in many respects (e.g. it uses the `hasDescendant()` matcher to find the container that is being accessed, which is very easy to trick, as in the example in PR#52245). I have not been able to reproduce the second issue mentioned in PR#52245 (namely that using the `data()` member function is suggested even for containers that don't have it), but I've added a test case for it to be sure. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D113863
-
Philip Reames authored
-
Philip Reames authored
-
Craig Topper authored
Remove fshl/fshr with constant shift amount isel patterns. Replace with fsr/fsl with constant isel patterns. This hack was trying to preserve as much optimization opportunity for fshl/fshr by constant as possible, but the conversion to RISCVISD::FSR/FSL happens so late it probably isn't worth much. The new isel patterns are needed by D117468 anyway.
-
Joseph Huber authored
Reverting to investigate break on AMDGPU. This reverts commit 0203ff19.
-
Joseph Huber authored
Reverting to investigate break on AMDPGU. This reverts commit d081bfcd.
-
Casey Carter authored
MSVCSTL's are actually bidirectional. Differential Revision: https://reviews.llvm.org/D117369
-