- Jul 13, 2021
-
-
Jeroen Dobbelaere authored
It is possible that the remangled name for an intrinsic already exists with a different (and wrong) prototype within the module. As the bitcode reader keeps both versions of all remangled intrinsics around for a longer time, this can result in a crash, as can be seen in https://bugs.llvm.org/show_bug.cgi?id=50923 This patch makes 'remangleIntrinsicFunction' aware of this situation. When it is detected, it moves the version with the wrong prototype to a different name. That version will be removed anyway once the module is completely loaded. With thanks to @asbirlea for reporting this issue when trying out an lto build with the full restrict patches, and @efriedma for suggesting a sane resolution mechanism. Reviewed By: apilipenko Differential Revision: https://reviews.llvm.org/D105118
-
Rainer Orth authored
The Solaris/amd64 buildbot <https://lab.llvm.org/staging/#/builders/101/builds/2845> has recently been broken several times, at least one of those remains unfixed: [63/446] Generating Sanitizer-x86_64-Test [...] Undefined first referenced symbol in file _ZN11__sanitizer15internal_usleepEy /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/stage1/projects/compiler-rt/lib/sanitizer_common/tests/libRTSanitizerCommon.test.x86_64.a(sanitizer_common.cpp.o) ld: fatal: symbol referencing errors Thist patch fixes it by defining the missing `internal_usleep`. Tested on `amd64-pc-solaris2.11.` Differential Revision: https://reviews.llvm.org/D105878
-
Jeroen Dobbelaere authored
Just like intrinsics are not tracked for IFI.InlinedCalls, they should not be tracked for IFI.InlinedCallSites. In the current top-of-tree this change is a NFC, but the full restrict patches (D68484) potentially trigger an read-after-free if intrinsics are also added to the InlindeCallSites, due to a late optimization potentially removing some of the inlined intrinsics. Also see https://lists.llvm.org/pipermail/llvm-dev/2021-July/151722.html for a discussion about the problem. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D105805
-
Dmitry Vyukov authored
Currently we allocate MemoryMapper per size class. MemoryMapper mmap's and munmap's internal buffer. This results in 50 mmap/munmap calls under the global allocator mutex. Reuse MemoryMapper and the buffer for all size classes. This radically reduces number of mmap/munmap calls. Smaller size classes tend to have more objects allocated, so it's highly likely that the buffer allocated for the first size class will be enough for all subsequent size classes. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D105778
-
Qiu Chaofan authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D105789
-
Stanislav Mekhanoshin authored
This is a pilot change to verify the logic. The rest will be done in a same way, at least the rest of VOP1. Differential Revision: https://reviews.llvm.org/D105742
-
Qiu Chaofan authored
a22ecb45 fixed a crash on big endian subtargets. This commit fixes a typo in that commit which may cause miscompile.
-
hyeongyu kim authored
This patch fixes the problem of SimplifyBranchOnICmpChain that occurs when extra values are Undef or poison. Suppose the %mode is 51 and the %Cond is poison, and let's look at the case below. ``` %A = icmp ne i32 %mode, 0 %B = icmp ne i32 %mode, 51 %C = select i1 %A, i1 %B, i1 false %D = select i1 %C, i1 %Cond, i1 false br i1 %D, label %T, label %F => br i1 %Cond, label %switch.early.test, label %F switch.early.test: switch i32 %mode, label %T [ i32 51, label %F i32 0, label %F ] ``` incorrectness: https://alive2.llvm.org/ce/z/BWScX Code before transformation will not raise UB because %C and %D is false, and it will not use %Cond. But after transformation, %Cond is being used immediately, and it will raise UB. This problem can be solved by adding freeze instruction. correctness: https://alive2.llvm.org/ce/z/x9x4oY Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D104569
-
David Green authored
-
David Green authored
Similar to D91921 (and D104515) this introduces two MVESEXT and MVEZEXT nodes that larger-than-legal sext and zext are lowered to. These either get optimized away or end up becoming a series of stack loads/store, in order to perform the extending whilst keeping the order of the lanes correct. They are generated from v8i16->v8i32, v16i8->v16i16 and v16i8->v16i32 extends, potentially with a intermediate extend for the larger v16i8->v16i32 extend. A number of combines have been added for obvious cases that come up in tests, notably MVEEXT of shuffles. More may be needed in the future, but this seems to cover most of the cases that come up in the tests. Differential Revision: https://reviews.llvm.org/D105090
-
hyeongyu kim authored
-
Chen Zheng authored
-
Nathan Ridge authored
Differential Revision: https://reviews.llvm.org/D105457
-
Vitaly Buka authored
-
Vitaly Buka authored
Fails here https://lab.llvm.org/buildbot/#/builders/37/builds/5267 This reverts commit e4aa6ad1.
-
Jessica Paquette authored
Generalize the existing eq/ne case using `extractParts`. The original code only handled narrowings for types of width 2n->n. This generalization allows for any type that can be broken down by `extractParts`. General overview is: - Loop over each narrow-sized part and do exactly what the 2-register case did. - Loop over the leftover-sized parts and do the same thing - Widen the leftover-sized XOR results to the desired narrow size - OR that all together and then do the comparison against 0 (just like the old code) This shows up a lot when building clang for AArch64 using GlobalISel, so it's worth fixing. For the sake of simplicity, this doesn't handle the non-eq/ne case yet. Also remove the code in this case that notifies the observer; we're just going to delete MI anyway so talking to the observer shouldn't be necessary. Differential Revision: https://reviews.llvm.org/D105161
-
Vitaly Buka authored
Breaks https://lab.llvm.org/buildbot/#/builders/sanitizer-x86_64-linux-qemu This reverts commit 5511bfdb.
-
SharmaRithik authored
Summary: This patch is a part of an attempt to obtain more timer data from the analyzer. In this patch, we try to use LLVM::TimeRecord to save time before starting the analysis and to print the time that a specific function takes while getting analyzed. The timer data is printed along with the -analyzer-display-progress outputs. ANALYZE (Syntax): test.c functionName : 0.4 ms ANALYZE (Path, Inline_Regular): test.c functionName : 2.6 ms Authored By: RithikSharma Reviewer: NoQ, xazax.hun, teemperor, vsavchenko Reviewed By: NoQ Differential Revision: https://reviews.llvm.org/D105565
-
Arthur Eubanks authored
-
Arthur Eubanks authored
Reviewed By: #opaque-pointers, dblaikie Differential Revision: https://reviews.llvm.org/D105710
-
David Blaikie authored
-
David Blaikie authored
This call would incorrectly overwrite (with the .debug_rnglists.dwo from the executable, if there was one) the rnglists section instead of the correct value (from the .debug_rnglists.dwo in the .dwo file) that's applied in DWARFUnit::tryExtractDIEsIfNeeded
-
Aart Bik authored
Integral AND and OR follow the simple conjunction and disjuction rules for lattice building. This revision also completes some of the Merge refactoring by moving the remainder parts that are merger specific from sparsification into utils files. Reviewed By: gussmith23 Differential Revision: https://reviews.llvm.org/D105851
-
Fangrui Song authored
For Clang, `MCUseDwarfDirectory` is true by default for the majority cases (-fintegrated-as or -gdwarf-5; most targets use -fintegrated-as by default). Defaulting MCUseDwarfDirectory to true can reduce the differences between clang and llc. Reviewed By: #debug-info, dblaikie Differential Revision: https://reviews.llvm.org/D105856
-
Hanhan Wang authored
Reviewed By: gysit, hanchung Differential Revision: https://reviews.llvm.org/D105329
-
Leonard Chan authored
This moves logic for setting kAliasRegionStart into hwasan_allocator.cpp so other platforms that do not support aliasing mode will not need to define kAliasRegionStart. Differential Revision: https://reviews.llvm.org/D105725
-
Marco Elver authored
It turns out that COMPILER_RT_TEST_COMPILER_CFLAGS is actually a string that is being appended to and not a list. Therefore, append the thread-safety flags to the string. Because CMake separates list elements by ';' when turning into a string, also substitute ';' with ' '. Reviewed By: hctim Differential Revision: https://reviews.llvm.org/D105829
-
Fangrui Song authored
While GNU as only allows the directory form of the .file directive for DWARF v5, the integrated assembler prefers the directory form on all DWARF versions (-fdwarf-directory-asm). We currently set CC1 -fno-dwarf-directory-asm for -fno-integrated-as -gdwarf-5 which may cause the directory entry 0 and the filename entry 0 to be incorrect (see D105662 and the example below). This patch makes -fno-integrated-as -gdwarf-5 use -fdwarf-directory-asm as well. ``` cd /tmp/c before % clang -g -gdwarf-5 -fno-integrated-as e/a.c -S -o - | grep '\.file.*0' .file 0 "/tmp/c/e/a.c" md5 0x97e31cee64b4e58a4af8787512d735b6 % clang -g -gdwarf-5 -fno-integrated-as e/a.c -c % llvm-dwarfdump a.o | grep include_directories include_directories[ 0] = "/tmp/c/e" after % clang -g -gdwarf-5 -fno-integrated-as e/a.c -S -o - | grep '\.file.*0' .file 0 "/tmp/c" "e/a.c" md5 0x97e31cee64b4e58a4af8787512d735b6 % clang -g -gdwarf-5 -fno-integrated-as e/a.c -c % llvm-dwarfdump a.o | grep include_directories include_directories[ 0] = "/tmp/c" ``` Reviewed By: #debug-info, dblaikie, osandov Differential Revision: https://reviews.llvm.org/D105835 -
Rob Suderman authored
Pool operations perform the same shape propagation. Included the shape propagation and tests for these avg_pool2d and max_pool2d. Differential Revision: https://reviews.llvm.org/D105665
-
Jon Roelofs authored
-
Eli Friedman authored
Saves one instruction for signed, uses a cheaper instruction for unsigned. Differential Revision: https://reviews.llvm.org/D105770
-
Wouter van Oortmerssen authored
Differential Revision: https://reviews.llvm.org/D105849
-
Aart Bik authored
Right now, we only accept x/c with nonzero c, since this conceptually can be treated as a x*(1/c) conjunction for both FP and INT as far as lattice computations go. The codegen keeps the division though to preserve precise semantics. See discussion: https://llvm.discourse.group/t/sparse-tensors-in-mlir/3389/28 Reviewed By: gussmith23 Differential Revision: https://reviews.llvm.org/D105731
-
Eli Friedman authored
Not really useful on its own, but D105673 depends on it. Differential Revision: https://reviews.llvm.org/D105840
-
Louis Dionne authored
-
Louis Dionne authored
-
Jim Ingham authored
This reverts commit 82a38837. The original version had a copy-paste error: using the Interrupt timeout for the ResumeSynchronous wait, which is clearly wrong. This error would have been evident with real use, but the interrupt is long enough that it only caused one testsuite failure (in the Swift fork). Anyway, I found that mistake and fixed it and checked all the other places where I had to plumb through a timeout, and added a test with a short interrupt timeout stepping over a function that takes 3x the interrupt timeout to complete, so that should detect a similar mistake in the future.
-
Amy Kwan authored
[PowerPC] Fix the splat immediate in PPCMIPeephole depending on if we have an Altivec and VSX splat instruction. An assertion of the following can occur because Altivec and VSX splats use a different operand number for the immediate: ``` int64_t llvm::MachineOperand::getImm() const: Assertion `isImm() && "Wrong MachineOperand accessor"' failed. ``` This patch updates PPCMIPeephole.cpp assign the correct splat immediate. Differential Revision: https://reviews.llvm.org/D105790
-
Louis Dionne authored
- Remove symlinks that are not used anymore - Stop installing GCC 10, which isn't tested anymore
-
Louis Dionne authored
-