- Apr 27, 2020
-
-
Saiyedul Islam authored
Expose llvm fence instruction as clang builtin for AMDGPU target __builtin_amdgcn_fence(unsigned int memoryOrdering, const char *syncScope) The first argument of this builtin is one of the memory-ordering specifiers __ATOMIC_ACQUIRE, __ATOMIC_RELEASE, __ATOMIC_ACQ_REL, or __ATOMIC_SEQ_CST following C++11 memory model semantics. This is mapped to corresponding LLVM atomic memory ordering for the fence instruction using LLVM atomic C ABI. The second argument is an AMDGPU-specific synchronization scope defined as string. Reviewed By: sameerds Differential Revision: https://reviews.llvm.org/D75917
-
Alexander Shaposhnikov authored
This diff fixes the calculation of the field vmsize in LC_SEGMENT/LC_SEGMENT_64 load commands. Test plan: make check-all Differential revision: https://reviews.llvm.org/D78799
-
Craig Topper authored
For all but 2 x i32 we were starting from 4 x float.
-
Craig Topper authored
We're currently getting this from the default implementation. But I don't like how the cost model came to this answer and I might be making some changes there.
-
Arthur Eubanks authored
In command lines with /showIncludes, clangd would output includes to stdout, breaking clients. Summary: Fixes https://github.com/clangd/clangd/issues/322. Reviewers: sammccall, kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D78836
-
Fangrui Song authored
-
Sam McCall authored
-
River Riddle authored
This revision also adds proper tests for splat detection.
-
Hongtao Yu authored
Summary: Extending the Function::viewCFG prototypes to allow for printing block probability info in form of .dot files during debugging. Also avoiding an AV when no BFI/BPI available. Reviewers: wenlei, davidxl, knaumov Reviewed By: wenlei, davidxl Subscribers: MaskRay, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77978
-
Matt Arsenault authored
We had no FP atomic load/store coverage.
-
Sergei Trofimovich authored
Reviewers: MaskRay Reviewed By: MaskRay Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78878
-
Benjamin Kramer authored
Not likely to make a big difference, but there's a fair bit of pointer chasing in large sets.
-
Ayal Zaks authored
When folding tail, branch taken count is computed during initial VPlan execution and recorded to be used by the compare computing the loop's mask. This recording should directly set the State, instead of reusing Value2VPValue mapping which serves original Values present prior to vectorization. The branch taken count may be a constant Value, which may be used elsewhere in the loop; trying to employ Value2VPValue for both leads to the issue reported in https://reviews.llvm.org/D76992#inline-721028 Differential Revision: https://reviews.llvm.org/D78847
-
- Apr 26, 2020
-
-
Florian Hahn authored
After changing the candidate iteration strategy, we should continue with the next candidate, rather than breaking out of the loop.
-
Benjamin Kramer authored
-
Sanjay Patel authored
As suggested in review for: rG4abab5c5
-
Benjamin Kramer authored
This means AttrBuilder will always create a sorted set of attributes and we can skip the sorting step. Sorting attributes is surprisingly expensive, and I recently made it worse by making it use array_pod_sort.
-
Simon Pilgrim authored
Missed this in D78815
-
Alexandre Ganea authored
This was discovered when compiling large unity/blob/jumbo files. Differential Revision: https://reviews.llvm.org/D78775
-
Simon Pilgrim authored
[X86][SSE] getFauxShuffle - support insert(truncate/extend(extract(vec0,c0)),vec1,c1) shuffle patterns at the byte level Followup to the PR45604 fix at rGe71dd7c0 where we disabled most of these cases. By creating the shuffle at the byte level we can handle any extension/truncation as long as we track how small the scalar got and assume that the upper bytes will need to be zero.
-
Simon Pilgrim authored
The X86 specific headers have to include these so we don't need to duplicate.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
This was needed when the file called cpuid but that was removed at rL233170.
-
Simon Pilgrim authored
We only need a ScheduleDAGMutation forward declaration.
-
Benjamin Kramer authored
-
Sam McCall authored
Summary: This is on by default in windows and breaks most features in template bodies. We'd already disabled it in code completion, now disable it for building ASTs. Potential regressions: - we may give spurious errors where files with templates relying on delayed parsing are directly opened - we may misparse such template bodies that are instantiated (and therefore *were* previously parsed) Still *probably* a win overall. Avoiding the regressions entirely would be substantial work and we don't have plans for it now. Fixes https://github.com/clangd/clangd/issues/302 (again) Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D78848
-
Florian Hahn authored
Integer ranges can be used for loaded/stored values. Note that widening can be disabled for loads/stores, as we only rely on instructions that cause continued increases to ranges to be widened (like binary operators). Reviewers: efriedma, mssimpso, davide Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D78433
-
Florian Hahn authored
-
Benjamin Kramer authored
-
Simon Pilgrim authored
Both PassSupport.h and PassAnalysisSupport.h are only supposed to be included via Pass.h. Differential Revision: https://reviews.llvm.org/D78815
-
Sander de Smalen authored
Some ACLE builtins leave out the argument to specify the predicate pattern, which is expected to be expanded to an SV_ALL pattern. This patch adds the flag IsAppendSVALL to append SV_ALL as the final operand. Reviewers: SjoerdMeijer, efriedma, rovka, rengolin Reviewed By: efriedma Tags: #clang Differential Revision: https://reviews.llvm.org/D77597
-
David Zarzycki authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Remove unused includes + forward declarations. Reduce unnecessary StringRef.h includes to StringRef forward declaration.
-
Benjamin Kramer authored
-
Benjamin Kramer authored
raw_string_ostream can just use the std::string as a buffer. The buffer requirement came from the days when the minimum buffer size was 128 (fixed in 2015) and std::string was non-SSO. Now we can just use the inline capacity for small things and on a good growth strategy later. This assumes that the standard library isn't doing something bad like only growing to the exact size. I checked some common implementations and they grow by 2x (libc++) or 1.5x (msvc) which is reasonable. We should still check if this incurs any performance regressions though.
-
Fangrui Song authored
-
Nikita Popov authored
The change in D78624 had a noticeable negative compile-time impact. It seems that going through a function call for the MaxUsesToExplore default is fairly expensive, at least if LLVM is not built with LTO. This patch makes MaxUsesToExpore default to 0 and assigns the actual default in the implementation instead. This recovers most of the regression. Differential Revision: https://reviews.llvm.org/D78734
-
Nikita Popov authored
Reduce size of GVN::Expression by reordering fields to reduce padding.
-