- Apr 20, 2021
-
-
Fangrui Song authored
This fixes 6 check-lldb-shell failures in a `-DLLVM_USE_SANITIZER=Leaks` build. Differential Revision: https://reviews.llvm.org/D100800
-
Kamlesh Kumar authored
* https://wg21.link/P0586 Reviewed By: #libc, curdeius, Quuxplusone Differential Revision: https://reviews.llvm.org/D94511
-
Nick Lewycky authored
Differential Revision: https://reviews.llvm.org/D100738
-
Min-Yih Hsu authored
M68kDisassembler should put M68kDesc as its direct library dependency since it uses logics releated to code beads Otherwise the build will fail when building LLVM libraries as shared objects (building LLVM libraries statically won't have this problem though)
-
Roman Tereshin authored
In an env that reuses compiler instances for multiple compilations, this omission results in non-deterministic assembly output (names of the auto-generated labels) if the order or full set of Modules compiled varies. Differential Revision: https://reviews.llvm.org/D100797
-
zoecarver authored
This is a NFC. Differential Revision: https://reviews.llvm.org/D100799
-
Alexandre Ganea authored
This reverts commit bb26fa8c.
-
Sanjay Patel authored
See D87479 for discussion.
-
Ricky Taylor authored
This is an implementation of a disassembler for M68k. Differential Revision: https://reviews.llvm.org/D98540
-
Ricky Taylor authored
This also includes PC-relative addresses since they are still referenced as absolute addresses in assembly and converted to relative addresses by the assembler. This changes, for example: - `bra #-2` -> `bra $100` - `jsr #16` -> `jsr $10` Differential Revision: https://reviews.llvm.org/D100697
-
Alexey Bataev authored
This reverts commit d6fde913 to fix compiler crashes.
-
Zequan Wu authored
The unnamedaddr property of a function is lost when using `-fwhole-program-vtables` and thinlto which causes size increase under linker's safe icf mode. The size increase of chrome on Linux when switching from all icf to safe icf drops from 5 MB to 3 MB after this change, and from 6 MB to 4 MB on Windows. There is a repro: ``` # a.h struct A { virtual int f(); virtual int g(); }; # a.cpp #include "a.h" int A::f() { return 10; } int A::g() { return 10; } # main.cpp #include "a.h" int g(A* a) { return a->f(); } int main(int argv, char** args) { A a; return g(&a); } $ clang++ -O2 -ffunction-sections -flto=thin -fwhole-program-vtables -fsplit-lto-unit -c main.cpp -o main.o && clang++ -Wl,--icf=safe -fuse-ld=lld -flto=thin main.o -o a.out && llvm-readobj -t a.out | grep -A 1 -e _ZN1A1fEv -e _ZN1A1gEv Name: _ZN1A1fEv (480) Value: 0x201830 -- Name: _ZN1A1gEv (490) Value: 0x201840 ``` Differential Revision: https://reviews.llvm.org/D100498 -
Emily Shi authored
If these sizes do not match, asan will not work as expected. If possible, assert at compile time that the vm size is less than or equal to mmap range. If a compile time assert is not possible, check at run time (for iOS) rdar://76477969 Reviewed By: delcypher, yln Differential Revision: https://reviews.llvm.org/D100239
-
Alexey Bataev authored
SLP supports perfect diamond matching for the vectorized tree entries but do not support it for gathered entries and does not support non-perfect (shuffled) matching with 1 or 2 tree entries. Patch adds support for this matching to improve cost of the vectorized tree. Differential Revision: https://reviews.llvm.org/D100495
-
David Penry authored
When the ProcResGroup has BufferSize=0, 1. if there is a subunit in the list of write resources for the scheduling class, do not attempt to schedule the ProcResGroup. 2. if there is not a subunit in the list of write resources for the scheduling class, choose a subunit to use instead of the ProcResGroup. 3. having both the ProcResGroup and any of its subunits in the resources implied by a InstRW is not supported. Used to model parallel uses from a pool of resources. Differential Revision: https://reviews.llvm.org/D98976
-
David Penry authored
Used to model structural hazards on FP issue, where some instructions take up 2 issue slots and others one as well as similar structural hazards on load issue, where some instructions take up two load lanes and others one. Differential Revision: https://reviews.llvm.org/D98977
-
Philip Reames authored
This is mostly stylistic cleanup after D100226, but not entirely. When skimming the code, I found one case where we weren't accounting for attributes on the callsite at all. I'm also suspicious we had some latent bugs related to operand bundles (which are supposed to be able to *override* attributes on declarations), but I don't have concrete test cases for those, just suspicions. Aside: The only case left in the file which directly checks attributes on the declaration is the norecurse logic. I left that because I didn't understand it; it looks obviously wrong, so I suspect I'm misinterpreting the intended semantics of the attribute. Differential Revision: https://reviews.llvm.org/D100689
-
Stephen Kelly authored
Differential Revision: https://reviews.llvm.org/D100723
-
Philip Reames authored
This change fixes a latent bug which was exposed by a change currently in review (https://reviews.llvm.org/D99802#2685032). The story on this is a bit involved. Without this change, what ended up happening with the pending review was that we'd strip attributes off intrinsics, and then selectiondag would fail to lower the intrinsic. Why? Because the lowering of the intrinsic relies on the presence of the readonly attribute. We don't have a matcher to select the case where there's a glue node needed. Now, on the surface, this still seems like a codegen bug. However, here it gets fun. I was unable to reproduce this with a standalone test at all, and was pretty much struck until skatkov provided the critical detail. This reproduces only when RS4GC and codegen are run in the same process and context. Why? Because it turns out we can't roundtrip the stripped attribute through serialized IR! We'll happily print out the missing attribute, but when we parse it back, the auto-upgrade logic has a side effect of blindly overwriting attributes on intrinsics with those specified in Intrinsics.td. This makes it impossible to exercise SelectionDAG from a standalone test case. At this point, I decided to treat this an RS4GC bug as a) we don't need to strip in this case, and b) I could write a test which shows the correct behavior to ensure this doesn't break again in the future. As an aside, I'd originally set out to handle libfuncs too - since in theory they might have the same issues - but backed away quickly when I realized how the semantics of builtin, nobuiltin, and no-builtin-x all interacted. I'm utterly convinced that no part of the optimizer handles that correctly, and decided not to open that can of worms here.
-
Nikita Popov authored
The single-use case is handled implicity by converting the icmp into a mask check first. When comparing with zero in particular, we don't need the one-use restriction, as we only produce a single icmp. https://alive2.llvm.org/ce/z/MSixcm https://alive2.llvm.org/ce/z/GwpG0M
-
Nikita Popov authored
The exact case is folded, the inexact one is not.
-
Stephen Kelly authored
Differential Revision: https://reviews.llvm.org/D100720
-
Martin Storsjö authored
On Windows, one can't use perms::none on a directory to trigger failures to read the directory entries. These remaining tests can't use GetWindowsInaccessibleDir() sensibly, e.g. for tests that rely on toggling accessibility back and forth during the test, or where the semantics of the dir provided by GetWindowsInaccessibleDir() doesn't allow for running the ifdeffed tests meaningfully. Differential Revision: https://reviews.llvm.org/D97538
-
Thomas Lively authored
We previously used splats instead of v128.const to materialize vector constants because V8 did not support v128.const. Now that V8 supports v128.const, we can use v128.const instead. Although this increases code size, it should also increase performance (or at least require fewer engine-side optimizations), so it is an appropriate change to make. Differential Revision: https://reviews.llvm.org/D100716
-
Martin Storsjö authored
Previously the decision of which library to try to autolink was based on _DLL, however the _DLL define (which is set by the compiler) is tied to whether using a dynamically linked CRT or not, and the choice of dynamic or static CRT is entirely orthogonal to whether libc++ is linked dynamically or statically. If _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS isn't defined, then all declarations are decorated with dllimport, and there's no doubt that the DLL version of the library is what must be linked. _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS is defined if building with LIBCXX_ENABLE_SHARED disabled, and thus the static library is what should be linked. If defining _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS manually but wanting to link against the DLL version of the library, that's not a canonical configuration, and then it's probably reasonable to manually define _LIBCPP_NO_AUTO_LINK too, and manually link against the desired library. This fixes, among other issues, running tests for the library if built with LIBCXX_ENABLE_STATIC disabled. Differential Revision: https://reviews.llvm.org/D100539
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D100786
-
Jonas Devlieghere authored
We no longer need this after Pavel's change to automatically find debug servers to test. (3ca7b2d0)
-
Jinsong Ji authored
XCOFF hasn't implemented lowerRelativeReference. So we need to disable new pass introduced by https://reviews.llvm.org/D94355 for AIX for now. Reviewed By: gulfem Differential Revision: https://reviews.llvm.org/D100584
-
Jonas Devlieghere authored
Adjust for the Lua error message printed by Lua 5.4.3.
-
Jonas Devlieghere authored
When formatting memory with as eFormatAddressIn and symbolication fails, fix the code address and print the symbol it points to, if any.
-
Emily Shi authored
We previously shrunk the mmap range size on ios, but those settings got inherited by apple silicon macs. Don't shrink the vm range on apple silicon Mac since we have access to the full range. Also don't shrink vm range for iOS simulators because they have the same range as the host OS, not the simulated OS. rdar://75302812 Reviewed By: delcypher, kubamracek, yln Differential Revision: https://reviews.llvm.org/D100234
-
madhur13490 authored
This patch removes -fixed-abi check for indirect calls and also adds queue-ptr which is required for indirect calls to work. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D100633
-
Pavel Iliin authored
Comparisons to zero or one after cset instructions can be safely removed in examples like: cset w9, eq cset w9, eq cmp w9, #1 ---> <removed> b.ne .L1 b.ne .L1 cset w9, eq cset w9, eq cmp w9, #0 ---> <removed> b.ne .L1 b.eq .L1 Peephole optimization to detect suitable cases and get rid of that comparisons added. Differential Revision: https://reviews.llvm.org/D98564
-
Yaxun (Sam) Liu authored
Reviewed by: Artem Belevich, Richard Smith Differential Revision: https://reviews.llvm.org/D98193
-
peter klausler authored
Define IEEE_IS_NAN, IEEE_IS_FINITE, & IEEE_REM. Differential Revision: https://reviews.llvm.org/D100599
-
LLVM GN Syncbot authored
-
Nikita Popov authored
During store promotion, we check whether the pointer was captured to exclude potential reads from other threads. However, we're only interested in captures before or inside the loop. Check this using PointerMayBeCapturedBefore against the loop header. Differential Revision: https://reviews.llvm.org/D100706
-
zoecarver authored
Differential Revision: https://reviews.llvm.org/D100682
-
Craig Topper authored
-
Philip Reames authored
-