- Jul 13, 2021
-
-
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
-
Yaxun (Sam) Liu authored
Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D105035
-
Gus Smith authored
This is a fix of https://reviews.llvm.org/D104956, which broke the gcc5 build. We opt to use unit tests rather than check tests as the lattice/merger code is a small C++ component with a well-defined API. Testing this API via check tests would be far less direct and readable. In addition, as the check tests will only be able to test the API indirectly, the tests may break based on unrelated changes; e.g. changes in linalg. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D105828
-
Martin Storsjö authored
Make sure that the detached thread has started up before exiting the process. This is exactly the same fix as D105592, with the same pattern being present in a different test case. Differential Revision: https://reviews.llvm.org/D105736
-
Felix Berger authored
When deleting the copy assignment statement because copied variable is not used only remove trailing comments on the same line. Differential Revision: https://reviews.llvm.org/D105734 Reviewed-by: ymandel
-
Walter Erquinigo authored
The error UndefinedBehaviorSanitizer: undefined-behavior /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/tools/lldb-vscode/ProgressEvent.cpp:89:64 in was found in https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-sanitized/1910/consoleFull#-15641370498254eaf0-7326-4999-85b0-388101f2d404 It turns out that we were not setting m_event_type when initializatin and update case. The fix is very simple. Differential Revision: https://reviews.llvm.org/D105832
-
Nikita Popov authored
Continuing from D105763, this allows placing certain properties about attributes in the TableGen definition. In particular, we store whether an attribute applies to fn/param/ret (or a combination thereof). This information is used by the Verifier, as well as the ForceFunctionAttrs pass. I also plan to use this in LLParser, which also duplicates info on which attributes are valid where. This keeps metadata about attributes in one place, and makes it more likely that it stays in sync, rather than in various functions spread across the codebase. Differential Revision: https://reviews.llvm.org/D105780
-