- Mar 21, 2020
-
-
Richard Smith authored
fixed the same bug in two similar ways.
-
Huihui Zhang authored
Summary: Return None if GEP index type is scalable vector. Size of scalable vectors are multiplied by a runtime constant. Avoid transforming: %a = bitcast i8* %p to <vscale x 16 x i8>* %tmp0 = getelementptr <vscale x 16 x i8>, <vscale x 16 x i8>* %a, i64 0 store <vscale x 16 x i8> zeroinitializer, <vscale x 16 x i8>* %tmp0 %tmp1 = getelementptr <vscale x 16 x i8>, <vscale x 16 x i8>* %a, i64 1 store <vscale x 16 x i8> zeroinitializer, <vscale x 16 x i8>* %tmp1 into: %a = bitcast i8* %p to <vscale x 16 x i8>* %tmp0 = getelementptr <vscale x 16 x i8>, <vscale x 16 x i8>* %a, i64 0 %1 = bitcast <vscale x 16 x i8>* %tmp0 to i8* call void @llvm.memset.p0i8.i64(i8* align 16 %1, i8 0, i64 32, i1 false) Reviewers: sdesmalen, efriedma, apazos, reames Reviewed By: sdesmalen Subscribers: tschuett, hiraditya, rkruppe, arphaman, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76464
-
Walter Erquinigo authored
Summary: Inspired by https://reviews.llvm.org/D74636, I'm introducing a basic version of Environment in the API. More functionalities can be added as needed. Reviewers: labath, clayborg Subscribers: mgorny, lldb-commits, diazhector98 Tags: #lldb Differential Revision: https://reviews.llvm.org/D76111
-
Walter Erquinigo authored
Summary: On Linux, when executing lldb-vscode on a remote machine, lldb-vscode doesn't die after the debug session ends. It keeps trying to read JSON input to no avail. This diff indicates lldb-vscode to stop reading after a termination event has been processed. Reviewers: clayborg, aadsm, kusmour Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D76314
-
Rob Suderman authored
Summary: Change AffineOps Dialect structure to better group both IR and Tranforms. This included extracting transforms directly related to AffineOps. Also move AffineOps to Affine. Differential Revision: https://reviews.llvm.org/D76161
-
Richard Smith authored
accept as an extension. This attempts to accept the same cases a GCC, plus cases where a comparison is rewritten to an operator== with an integral but non-bool return type; this is sufficient to avoid most problems with various major open-source projects (such as ICU) and appears to fix all but one of the comparison-related C++20 build breaks in LLVM. This approach is being pursued for standardization.
-
Adrian Prantl authored
It's not used for anything.
-
Adrian Prantl authored
Before this patch a Clang module skeleton CU would have a DW_AT_comp_dir pointing to the directory of the module map file, and this information was not used by anyone. Even worse, LLDB actually resolves relative DWO paths by appending it to DW_AT_comp_dir. This patch sets it to the same directory that is used as the main CU's compilation directory, which would make the LLDB code work. Differential Revision: https://reviews.llvm.org/D76377
-
Nikita Popov authored
First check whether the RHS is a null pointer, and only then perform a potentially expensive non-zero query.
-
Davide Italiano authored
-
Davide Italiano authored
Fixes a couple of tests on new versions of the Obj-C runtime.
-
Nicolas Vasilache authored
-
Pirama Arumuga Nainar authored
Summary: When using full LTO on cross-compile settings, instead of generating the default archive kind of the host platform, we could deduce the archive kind based on the target triple. This specifically addresses https://github.com/android/ndk/issues/1209 by making it possible to drop llvm-ar in place of GNU ar without extra flags. Reviewers: compnerd, pcc, srhines, danalbert Subscribers: hiraditya, MaskRay, steven_wu, dexonsmith, rupprecht, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76461
-
Ahmed Taei authored
Summary: This diff fixes fusion craching for ops with rank-0 tensors Reviewers: mravishankar, nicolasvasilache, rriddle! Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76479
-
Hanhan Wang authored
Summary: After D75831 has been landed, both the generic op and indexed_generic op can handle 0-D edge case. In the previous patch, only generic op has been updated. This patch updates the lowering to loops for indexed_generic op. Since they are almost the sanme, the patch also refactors the common part. Differential Revision: https://reviews.llvm.org/D76413
-
Nikita Popov authored
If ExpensiveCombines is enabled (which is the case with -O3 on the legacy PM and always on the new PM), InstCombine tries to compute the known bits of all instructions in the hope that all bits end up being known, which is fairly expensive. How effective is it? If we add some statistics on how often the constant folding succeeds and how many KnownBits calculations are performed and run test-suite we get: "instcombine.NumConstPropKnownBits": 642, "instcombine.NumConstPropKnownBitsComputed": 18744965, In other words, we get one fold for every 30000 KnownBits calculations. However, the truth is actually much worse: Currently, known bits are computed before performing other folds, so there is a high chance that cases that get folded by known bits would also have been handled by other folds. What happens if we compute known bits after all other folds (hacky implementation: https://gist.github.com/nikic/751f25b3b9d9e0860db5dde934f70f46)? "instcombine.NumConstPropKnownBits": 0, "instcombine.NumConstPropKnownBitsComputed": 18105547, So it turns out despite doing 18 million known bits calculations, the known bits fold does not do anything useful on test-suite. I was originally planning to move this into AggressiveInstCombine so it only runs once in the pipeline, but seeing this, I think we're better off removing it entirely. As this is the only use of the "expensive combines" mechanism, it may be removed afterwards, but I'll leave that to a separate patch. Differential Revision: https://reviews.llvm.org/D75801 -
Alexey Bataev authored
region. According to OpenMP 5.0, exactly one scan directive must appear in the loop body of an enclosing worksharing-loop, worksharing-loop SIMD, or simd construct on which a reduction clause with the inscan modifier is present.
-
Vedant Kumar authored
MSVC insists on using the deleted move constructor instead of the copy constructor: http://lab.llvm.org:8011/builders/lld-x86_64-win7/builds/41203 C:\ps4-buildslave2\lld-x86_64-win7\llvm-project\llvm\unittests\ADT\CoalescingBitVectorTest.cpp(193): error C2280: 'llvm::CoalescingBitVector<unsigned int,16>::CoalescingBitVector(llvm::CoalescingBitVector<unsigned int,16> &&)': attempting to reference a deleted function
-
Vedant Kumar authored
Use the advanceToLowerBound operation available on CoalescingBitVector iterators to speed up collection of variables which reside within some set of registers. The speedup comes from avoiding repeated top-down traversals in IntervalMap::find. The linear scan forward from one register interval to the next is unlikely to be as expensive as a full IntervalMap search starting from the root. This reduces time spent in LiveDebugValues when compiling sqlite3 by 200ms (about 0.1% - 0.2% of the total User Time). Depends on D76466. rdar://60046261 Differential Revision: https://reviews.llvm.org/D76467
-
Vedant Kumar authored
advanceToLowerBound moves an iterator to the first bit set at, or after, the given index. This can be faster than doing IntervalMap::find. rdar://60046261 Differential Revision: https://reviews.llvm.org/D76466
-
Vedant Kumar authored
Avoid making a heap allocation when constructing a CoalescingBitVector. This reduces time spent in LiveDebugValues when compiling sqlite3 by 700ms (0.5% of the total User Time). rdar://60046261 Differential Revision: https://reviews.llvm.org/D76465
-
Siva Chandra Reddy authored
We have moved away from directories for entrypoints but this function was not moved out. Submitting as obvious.
-
Louis Dionne authored
Instead of considering all the .dat files to be dependencies of a test, only consider those that are listed in FILE_DEPENDENCIES.
-
Alexey Bataev authored
Added parsing/sema/serialization support for inclusive clause in scan directive.
-
Fangrui Song authored
UseInitArray is now the CC1 default but TargetLoweringObjectFileELF::UseInitArray still defaults to false. The following two unknown OS target triples continue using .ctors/.dtors because InitializeELF is not called. clang -target i386 -c a.c clang -target x86_64 -c a.c This cleanup fixes this as a bonus. Differential Revision: https://reviews.llvm.org/D71360
-
Fangrui Song authored
MIRParser uses MC and transitively calls MCObjectFileInfo::getObjectFileType(). TargetLoweringObjectFile::Initialize should be called beforehand to initialize MCObjectFileInfo::Env. This manifested as a -fsanitize=undefined test/CodeGen/MIR/X86/instr-symbols-and-mcsymbol-operands.mir failure when D71360/aa5ee8f2 was committed.
-
Vedant Kumar authored
The original test case from PR45181 triggers a DIExpression combination that wasn't fixed in D76164.
-
Nicolas Vasilache authored
The Vector Dialect [document](https://mlir.llvm.org/docs/Dialects/Vector/) discusses the vector abstractions that MLIR supports and the various tradeoffs involved. One of the layer that is missing in OSS atm is the Hardware Vector Ops (HWV) level. This revision proposes an AVX512-specific to add a new Dialect/Targets/AVX512 Dialect that would directly target AVX512-specific intrinsics. Atm, we rely too much on LLVM’s peephole optimizer to do a good job from small insertelement/extractelement/shufflevector. In the future, when possible, generic abstractions such as VP intrinsics should be preferred. The revision will allow trading off HW-specific vs generic abstractions in MLIR. Differential Revision: https://reviews.llvm.org/D75987
-
Adrian Prantl authored
-
Sterling Augustine authored
-
Nikita Popov authored
Ideally SimplifyDemanded should compute the same known bits as computeKnownBits(). This patch addresses one discrepancy, where ValueTracking is more powerful: If we have a shl nsw shift, we know that the sign bit of the input and output must be the same. If this results in a conflict, the result is poison. This is implemented in https://github.com/llvm-mirror/llvm/blob/2c4ca6832fa6b306ee6a7010bfb80a3f2596f824/lib/Analysis/ValueTracking.cpp#L1175-L1179 and https://github.com/llvm-mirror/llvm/blob/2c4ca6832fa6b306ee6a7010bfb80a3f2596f824/lib/Analysis/ValueTracking.cpp#L904-L908. This implements the same basic logic in SimplifyDemanded. It's slightly stronger, because I return undef instead of zero for the poison case (which is not an option inside ValueTracking). As mentioned in https://reviews.llvm.org/D75801#inline-698484, we could detect poison in more cases, this just establishes parity with the existing logic. Differential Revision: https://reviews.llvm.org/D76489
-
Anton Kolesov authored
If LLDB attaches to an already running target, then structure SBAttachInfo is used instead of SBLaunchInfo. lldb-vscode function request_attach sets some values to g_vsc.launch_info, however this field is then not passed anywhere, so this action has no effect. This commit removes invocation of SBLaunchInfo::SetDetachOnError, which has no equivalent in SBAttachInfo. File package.json doesn't describe detachOnError property for "attach" request type, therefore it is not needed to update it. Differential Revision: https://reviews.llvm.org/D76351
-
Feng Liu authored
This is an edge case where the input type is a primitive type. Differential Revision: https://reviews.llvm.org/D76442
-
Gabor Marton authored
-
Gabor Marton authored
Reviewers: NoQ, Szelethus, balazske, gamesh411, baloghadamsoftware, steakhal Subscribers: whisperity, xazax.hun, szepet, rnkovacs, a.sidorin, mikhail.ramalho, donat.nagy, dkrupp, Charusso, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D75063
-
Pirama Arumuga Nainar authored
Summary: It can be the case that a vector type is legal but the corresponding scalar type is not legal for an architecture (i8 vs. v16i8 on AArch64). Check if the scalar type created when folding truncate(build_vector(x,y)) -> build_vector(truncate(x),truncate(y)) is legal if we are running after the type legalizer. This fixes https://github.com/android/ndk/issues/1207. Reviewers: RKSimon, srhines Subscribers: kristof.beyls, hiraditya, danielkiss, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76312
-
Sean Fertile authored
Adds/changes some types in the ByVal cc test so that they aren't all structs of arrays of bytes, and adds testing for passing multiple ByVal arguments.
-
Craig Topper authored
The combine tries to put the broadcast in either the integer or fp domain to match the bitcast domain. But we can only do this if the broadcast size is 32 or larger.
-
Reid Kleckner authored
FinishThunk, and the invariant of setting and then unsetting CurCodeDecl, was added in 7f416cc4 (2015). The invariant didn't exist when I added this musttail codepath in ab2090d1 (2014). Recently in 28328c37, I started using this codepath on non-Windows platforms, and users reported problems during release testing (PR44987). The issue was already present for users of EH on i686-windows-msvc, so I added a test for that case as well. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D76444
-
- Mar 20, 2020
-
-
Erich Keane authored
Discovered by a downstream user, we found that the CallGraph ignores callees unless they are defined. This seems foolish, and prevents combining the report with other reports to create unified reports. Additionally, declarations contain information that is likely useful to consumers of the CallGraph. This patch implements this by splitting the includeInGraph function into two versions, the current one plus one that is for callees only. The only difference currently is that includeInGraph checks for a body, then calls includeCalleeInGraph. Differential Revision: https://reviews.llvm.org/D76435
-