- Nov 21, 2023
-
-
Liviu Ionescu authored
On macOS, when clang is invoked via a symlink, since the InstalledDir is where the link is located, the C++ headers are not identified and the default system headers from the SDK are used. This can be undesirable if a toolchain is created by symlinking clang into a directory and placing libc++ headers in that directory with the intent of those headers overriding the SDK headers. This change solves that problem by also looking for libc++ headers in the toolchain-relative location of the executable symlink, if any.
-
Krasimir Georgiev authored
This makes it work in environments where the test is running in a write-protected current directory. Updated similarly to other such tests, like https://github.com/llvm/llvm-project/blob/8bd06d5b65845e5e01dd899a2deb773580460b89/llvm/test/tools/llvm-dwp/X86/absolute_paths.test#L3.
-
- Nov 20, 2023
-
-
Aaron Ballman authored
In Clang 16, we implemented the ability to add a label at the end of a compound statement. These changes complete the implementation by allowing a label to be followed by a declaration in C. Note, this seems to have fixed an issue with some OpenMP stand-alone directives not being properly diagnosed as per: https://www.openmp.org/spec-html/5.1/openmpsu19.html#x34-330002.1.3 (The same requirement exists in OpenMP 5.2 as well.)
-
Oleksandr "Alex" Zinenko authored
-
Simon Pilgrim authored
[X86] combineLoad - try to reuse existing constant pool entries for smaller vector constant data (REAPPLIED) If we already have a YMM/ZMM constant that a smaller XMM/YMM has matching lower bits, then ensure we reuse the same constant pool entry. Extends the similar combines we already have to reuse VBROADCAST_LOAD/SUBV_BROADCAST_LOAD constant loads. This is a mainly a canonicalization, but should make it easier for us to merge constant loads in a future commit (related to both #70947 and better X86FixupVectorConstantsPass usage for #71078). Reapplied with fix to ensure we don't 'flip-flop' between multiple matching constants - only perform the fold if the new constant pool entry is larger than the current entry.
-
Yingwei Zheng authored
Alive2: https://alive2.llvm.org/ce/z/KNXNQA
-
Nikita Popov authored
We already higher the all zero indices case above, no need to also handle the special case of a single zero index.
-
Ellis Hoag authored
Back in https://reviews.llvm.org/D124490 we added a block coverage mode that instruments a subset of basic blocks using single byte counters to get coverage for the whole function. This commit adds a test to make sure that we correctly assign branch weights based on the coverage profile. I noticed this test was missing after seeing that we had no coverage on `PGOUseFunc::populateCoverage()` https://lab.llvm.org/coverage/coverage-reports/coverage/Users/buildslave/jenkins/workspace/coverage/llvm-project/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp.html#L1383
-
Simon Pilgrim authored
[X86] constant-pool-sharing.ll - add test showing failure to reuse subvectors when storing larger vector types We do correctly use implicit zero-extension of xmm constant load -> ymm constant store though.
-
Simon Pilgrim authored
Shows failure to share the constant pool load (broadcast) on AVX targets
-
Kolya Panchenko authored
HCFG builder doesn't correctly handle cases when non-outermost loop is requested to be vectorized [Original] Differential Revision: https://reviews.llvm.org/D150700
-
Alexey Bataev authored
No need to emit bitcat op for integer operands if it is detected that after minbitwidth analysis the type is the same.
-
Benjamin Maxwell authored
These were placed in LegalizeForLLVMExport.cpp, which is the wrong stage for these, as these lower to high-level ArmSME ops, not intrinsics.
-
bcahoon authored
When storing a subvector, too many element were written when the size of the alloca is smaller than the size of the vector store. This patch checks for the minimum of the alloca vector and the store vector to determine the number of elements to store.
-
-
Graham Hunter authored
Parameters marked as uniform take a scalar value, assuming the value is invariant in the scalar loop. In order to support this, we need to stop asking for a vector function variant with a default shape assuming that all arguments will become vector arguments, and instead consider all available variants and their parameter types.
-
David Spickett authored
-
Nikita Popov authored
Use the function value type instead of the element type of the function pointer type. Fixes https://github.com/llvm/llvm-project/issues/72798.
-
Bruno De Fraine authored
This moves the SROA implementation from SROAPass into a separate SROA class that is defined in the cpp file, and reduces the SROAPass class to a thin NewPM wrapper. This allows to remove all implementation details from the SROA header, and the SROALegacyPass can wrap the SROA class instead of the NewPM SROAPass. The trigger for this change is a GCC warning about visibility of implementation details in the SROA header after D138238. Credits to Nikita Popov for suggesting this reorganization.
-
Valery Pykhtin authored
Add live-through register set printing, assuming live-through register is in live-in and live-out sets, has no redefinitions but may have uses in the block.
-
Hans authored
It's a user-facing tool, so including it makes sense. Fixes https://github.com/llvm/llvm-project/issues/72754
-
Timm Bäder authored
The previous code was just an open-coded version of isArrayRoot().
-
Simon Pilgrim authored
Reduces diff in #72227
-
Simon Pilgrim authored
Adds missing check prefixes
-
Timm Bäder authored
-
dewen authored
We have STURHi store patterns but would fail to select from unscaled offsets. This adds the missing pattern.
-
Florian Hahn authored
Add an additional test case where we currently incorrectly identify a dependence as Foward instead of ForwardButPreventsForwarding. Also cleans up the names in the tests a bit to improve readability.
-
Utkarsh Saxena authored
s/makred/marked
-
Simon Pilgrim authored
[DAG] narrowExtractedVectorBinOp - ensure we limit late node creation to LegalOperations only (#72130) Avoids infinite issues in some upcoming patches to help D152928 - x86 sees a number of regressions that are addressed by extending SimplifyDemandedVectorEltsForTargetNode to cover more binop opcodes
-
Graham Hunter authored
When folding urem instructions we can end up not recognizing that the output will always be 0 due to Value*s being different, despite generating the same data (in this case, 2 different calls to vscale). This patch recognizes the (x << N) & (add (x << M), -1) pattern that instcombine replaces urem with after the two vscale calls have been reduced to one via CSE, then replaces with 0 when x is a power of 2 and N >= M.
-
Matthias Springer authored
* Declare arguments/results with `let` statements. * Rename `transp` to `permutation`. * Change type of `transp` from `I64ArrayAttr` to `DenseI64ArrayAttr` (provides direct access to `ArrayRef<int64_t>` instead of `ArrayAttr`).
-
hstk30-hw authored
Fixes https://github.com/llvm/llvm-project/issues/65884
-
h-vetinari authored
Unless specified as a "raw" string, Python will try to interpret backslashes, which means they don't get passed on correctly to the underlying regex-engine, unless escaped manually (`\\`). Use raw strings in `llvm/test/lit.cfg.py` to avoid a `SyntaxWarning`: ``` llvm/test/lit.cfg.py:275: SyntaxWarning: invalid escape sequence '\d' match = re.search("release (\d+)\.(\d+)", ptxas_out) ``` Other such warning present in 17.0.x were already fixed in 7ed0f5b6. -
Rin authored
When there is a COPY instruction in the loop with other uses, we want to hoist the COPY, which in turn leads to the users being hoisted as well. Co-authored-by David Green : David.Green@arm.com
-
Sam Tebbs authored
The svldr_vnum and svstr_vnum builtins always modify the base register and tile slice and provide immediate offsets of zero, even when the offset provided to the builtin is an immediate. This patch optimises the output of the builtins when the offset is an immediate, to pass it directly to the instruction and to not need the base register and tile slice updates.
-
Kai Luo authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-