- Apr 15, 2021
-
-
Sander de Smalen authored
This patch migrates the TTI cost interfaces to return an InstructionCost. See this patch for the introduction of the type: https://reviews.llvm.org/D91174 See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html Reviewed By: c-rhodes Differential Revision: https://reviews.llvm.org/D100316
-
Sander de Smalen authored
This patch migrates the TTI cost interfaces to return an InstructionCost. See this patch for the introduction of the type: https://reviews.llvm.org/D91174 See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D100315
-
Sander de Smalen authored
This patch migrates the TTI cost interfaces to return an InstructionCost. See this patch for the introduction of the type: https://reviews.llvm.org/D91174 See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D100314
-
Sander de Smalen authored
This patch migrates the TTI cost interfaces to return an InstructionCost. See this patch for the introduction of the type: https://reviews.llvm.org/D91174 See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html Reviewed By: samparker Differential Revision: https://reviews.llvm.org/D100313
-
Sander de Smalen authored
This patch migrates the TTI cost interfaces to return an InstructionCost. See this patch for the introduction of the type: https://reviews.llvm.org/D91174 See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html Reviewed By: c-rhodes Differential Revision: https://reviews.llvm.org/D100312
-
Thomas Lively authored
Now that these instructions are no longer prototypes, we do not need to be careful about keeping them opt-in and can use the standard LLVM infrastructure for them. This commit removes the bespoke intrinsics we were using to represent these operations in favor of the corresponding target-independent intrinsics. The clang builtins are preserved because there is no standard way to easily represent these operations in C/C++. For consistency with the scalar codegen in the Wasm backend, the intrinsic used to represent {f32x4,f64x2}.nearest is @llvm.nearbyint even though @llvm.roundeven better captures the semantics of the underlying Wasm instruction. Replacing our use of @llvm.nearbyint with use of @llvm.roundeven is left to a potential future patch. Differential Revision: https://reviews.llvm.org/D100411 -
Mark de Wever authored
Some of Microsoft's unit tests in D70631 fail because libc++'s implementation of std::chars_format isn't a proper bitmask type. Adding the required functions to make std::chars_format a proper bitmask type. Implements parts of P0067: Elementary string conversions Differential Revision: https://reviews.llvm.org/D97115
-
Sjoerd Meijer authored
This addresses the linter messages, mainly the inconsistent capitalisation of member functions.
-
- Apr 14, 2021
-
-
Ties Stuij authored
These changes were enough to compile compiler-rt builtins for armv8m.main and armv8.1m.main. Differential Revision: https://reviews.llvm.org/D99600
-
Tobias Gysi authored
The patch updates the linalg fusion pass to add the tile offsets to the indices. Differential Revision: https://reviews.llvm.org/D100456
-
Martin Probst authored
track symbol merge status in references to avoid excesive rewrites
-
Martin Probst authored
Multiple lines importing from the same URL can be merged: import {X} from 'a'; import {Y} from 'a'; Merge to: import {X, Y} from 'a'; This change implements this merge operation. It takes care not to merge in various corner case situations (default imports, star imports). Differential Revision: https://reviews.llvm.org/D100466 -
Hans Wennborg authored
Consider the following set of files: a.cc: #include "a.h" a.h: #ifndef A_H #define A_H #include "b.h" #include "c.h" // This gets "skipped". #endif b.h: #ifndef B_H #define B_H #include "c.h" #endif c.h: #ifndef C_H #define C_H void c(); #endif And the output of the -H option: $ clang -c -H a.cc . ./a.h .. ./b.h ... ./c.h Note that the include of c.h in a.h is not shown in the output (GCC does the same). This is because of the include guard optimization: clang knows c.h is covered by an include guard which is already defined, so when it sees the include in a.h, it skips it. The same would have happened if #pragma once were used instead of include guards. However, a.h *does* include c.h, and it may be useful to show that in the -H output. This patch adds a flag for doing that. Differential revision: https://reviews.llvm.org/D100480
-
Simon Pilgrim authored
-
Benjamin Kramer authored
This transformation is fundamentally broken when it comes to dominance, it just happened to work when the source of the memcpy can be moved into the place of the alloca. The bug shows up a lot more often since 077bff39 allows the source to be a switch. It would be possible to check dominance of the source and all its operands, but that seems very heavy for instcombine.
-
hsmahesha authored
Rename the name of "LDS lowering" pass from `amdgpu-disable-lower-module-lds` to `amdgpu-enable-lower-module-lds` as later is consistent and reads better. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D100441
-
Simon Pilgrim authored
In the fold SHUFFLE(BINOP(X,Y),BINOP(Z,W)) -> BINOP(SHUFFLE(X,Z),SHUFFLE(Y,W)), check if both X/Z AND Y/W have at least one merge-able shuffle in which case the total number of shuffle should still fall. Helps with instruction count regressions we saw while fixing PR48823
-
Simon Pilgrim authored
Only attempt to propagateIRFlags if we have both SelectInst - afaict we shouldn't have matched a min/max reduction without both SelectInst, but static analyzer doesn't know that.
-
Pablo Barrio authored
The existing BTI placement pass avoids inserting "BTI c" when the function has local linkage and is only directly called. However, even in this case, there is a (small) chance that the linker later adds a hunk with an indirect call to the function, e.g. if the function is placed in a separate section and moved far away from its callers. Make sure to add BTI for these functions too. Differential Revision: https://reviews.llvm.org/D99417
-
Hanhan Wang authored
Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D100452
-
LLVM GN Syncbot authored
-
Sjoerd Meijer authored
This refactors SCCP and creates a SCCPSolver interface and class so that it can be used by other passes and transformations. We will use this in D93838, which adds a function specialisation pass. This is based on an early version by Vinay Madhusudan. Differential Revision: https://reviews.llvm.org/D93762
-
Nico Weber authored
This should've been removed in D83530. Differential Revision: https://reviews.llvm.org/D100434
-
Erich Keane authored
ICC permits this, and after some extensive testing it looks like we can support this with very little trouble. We intentionally don't choose to do this with attribute-target (despite it likely working as well!) because GCC does not support that, and introducing said incompatibility doesn't seem worth it.
-
Sanjay Patel authored
Stepping through callstacks in the example from D99759 reveals this potential compile-time improvement. The savings come from avoiding ValueTracking's computing known bits if we have already dealt with special-case patterns. Further improvements in this direction seem possible. This makes a degenerate test based on PR49785 about 40x faster (25 sec -> 0.6 sec), but it does not address the larger question of how to limit computeKnownBitsFromAssume(). Ie, the original test there is still infinite-time for all practical purposes. Differential Revision: https://reviews.llvm.org/D100408
-
Sanjay Patel authored
This is pulled out of D100408. This avoids a regression that would be exposed by making the calling code from InstSimplify more efficient.
-
Sven van Haastregt authored
Reviewed-By: Anastasia Stulova
-
Hansang Bae authored
Also fixed typo in the verbose message. Differential Revision: https://reviews.llvm.org/D100414
-
Sebastian Neubauer authored
Otherwise it reuses the same register for storing the stack slot offset if the stack slot offset is big. Differential Revision: https://reviews.llvm.org/D100461
-
Sanjay Patel authored
The start value can't be null for something to be a non-zero recurrence, so hoist that common check out of the switch. Subsequent checks may be incomplete or over-specified as noted in: D100408
-
Max Kazantsev authored
-
Zarko Todorovski authored
Pull some of the safe for 32bit pattern matching for Pwr8 and above. Reviewed By: nemanjai Differential Revision: https://reviews.llvm.org/D97909
-
Martin Storsjö authored
These were added in 37935405, but they fail on macOS (and on Windows with MSYS based tools, before relanding D98859). Remove the tests that exercise "not not echo", as the primary thing to test is the plain echo patterns above.
-
Sanjay Patel authored
We call various value tracking APIs from within -instsimplify, so I don't think this is visible in a larger test.
-
Martin Storsjö authored
Aggregate types over 16 bytes are passed by reference. Contrary to the x86_64 ABI, smaller structs with an odd (non power of two) are padded and passed in registers. Differential Revision: https://reviews.llvm.org/D100374
-
David Spickett authored
By checking for cpu and toolchain features ahead of time we don't need the custom return codes. Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D97684
-
Tim Northover authored
This direction is particularly useful because i16 constants are much more likely to be legal than bf16.
-
Martin Storsjö authored
After d5c5cf5c, it should work fine for aarch64 on COFF too. (It was disabled when the patch was (re)applied in e96df3e5, pending that fix.)
-
Roman Lebedev authored
After 077bff39, isDereferenceableForAllocaSize() can recurse into selects, which is causing a problem for the new test case, reduced from https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20210412/904154.html because the replacement (the select) is defined after the first use of an alloca, so we'd end up with a verifier error. Now, this new check is too restrictive. We likely can handle *some* cases, by trying to sink all uses of an alloca to after the the def.
-
Simon Pilgrim authored
Relax the fold from rGbaadbe04 to compare any op, not just logic ops, now that the movmsk regressions have been handled.
-