- Dec 31, 2021
-
-
Luís Ferreira authored
LLVM core library supports demangling other mangled symbols other than itanium, such as D and Rust. LLD should use those demanglers in order to output pretty demangled symbols on error messages. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D116279
-
Sanjay Patel authored
((X << C) + Y) >>u C --> (X + (Y >>u C)) & (-1 >>u C) https://alive2.llvm.org/ce/z/DY9DPg This replaces a shift with an 'and', and in the case where the add has a constant operand, it eliminates both shifts. As noted in the TODO comment, we already have this fold when the shifts are in the opposite order (and that code handles bitwise logic ops too). Fixes #52851
-
Sanjay Patel authored
This reverts commit 2e3e0a5c. Some unintended diffs snuck into this patch.
-
Sanjay Patel authored
((X << C) + Y) >>u C --> (X + (Y >>u C)) & (-1 >>u C) https://alive2.llvm.org/ce/z/DY9DPg This replaces a shift with an 'and', and in the case where the add has a constant operand, it eliminates both shifts. As noted in the TODO comment, we already have this fold when the shifts are in the opposite order (and that code handles bitwise logic ops too). Fixes #52851
-
Krzysztof Parzyszek authored
Co-authored-by:Anirudh Sundar Subramaniam <quic_sanirudh@quicinc.com>
-
- Dec 30, 2021
-
-
Krzysztof Parzyszek authored
This reverts commit ba07f300. A build-vector sequence is made of pairs: rotate+insert. When constructing a single vector, this results in a chain of 2*N instructions. The rotate operation is a permute operation, but the insert uses a multiplication resource: insert and rotate can execute in the same cycle, but obviously they cannot operate on the same vector. The original halving idea is still beneficial since it does allow for insert/rotate overlap, and for hiding insert's latency.
-
Nuno Lopes authored
-
Nicolas Vasilache authored
vector.transfer operations do not have rank-reducing semantics. Bail on illegal rank-reduction: we need to check that the rank-reduced dims are exactly the leading dims. I.e. the following is illegal: ``` %0 = vector.transfer_write %v, %t[0,0], %cst : vector<2x4xf32>, tensor<2x4xf32> %1 = tensor.insert_slice %0 into %tt[0,0,0][2,1,4][1,1,1] : tensor<2x4xf32> into tensor<2x1x4xf32> ``` Cannot fold into: ``` %0 = vector.transfer_write %v, %t[0,0,0], %cst : vector<2x4xf32>, tensor<2x1x4xf32> ``` For this, check the trailing `vectorRank` dims of the insert_slice result tensor match the trailing dims of the inferred result tensor. Differential Revision: https://reviews.llvm.org/D116409 -
Nuno Lopes authored
This matches NewGVN's behavior.
-
Pavel Labath authored
This small patch adds two useful improvements: - allows one to specify the emulator path as a bare filename, and have it be looked up in the PATH - allows one to leave the path empty and have the filename be derived from the architecture.
-
Nuno Lopes authored
-
Sjoerd Meijer authored
In D109958 it was noticed that we could optimise the pipeline and avoid rerunning LoopSimplify/LCSSA for LoopFlatten by moving it to a LoopPassManager. Differential Revision: https://reviews.llvm.org/D110057
-
Nuno Lopes authored
-
Nuno Lopes authored
-
Pavel Labath authored
It was being used only in some very old tests (which pass even without it) and its implementation is highly questionable. These days we have different mechanisms for requesting a build with a particular kind of c++ library (USE_LIB(STD)CPP in the makefile).
-
Roman Lebedev authored
The bitcode reader expected that the pointers are typed, so that it can extract the function type for the assembly so `bitc::CST_CODE_INLINEASM` did not explicitly store said function type. I'm not really sure how the upgrade path will look for existing bitcode, but i think we can easily support opaque pointers going forward, by simply storing the function type. Reviewed By: #opaque-pointers, nikic Differential Revision: https://reviews.llvm.org/D116341
-
Roman Lebedev authored
-
jacquesguan authored
Differential Revision: https://reviews.llvm.org/D116307
-
Sjoerd Meijer authored
This reverts commit ada028c3. A performance regression was reported that we need to investigate: https://github.com/llvm/llvm-project/issues/52919
-
Fangrui Song authored
-
jacquesguan authored
[RISCV] Pre-commit test for Teach VSETVLInsert to eliminate redundant vsetvli for vmv.s.x and vfmv.s.f. Differential Revision: https://reviews.llvm.org/D116306
-
Fangrui Song authored
Add missing coverage like .tdata/.data1/.rodata1
-
Fangrui Song authored
-
Serge Pavlov authored
The function `ConstantFoldCompareInstruction` uses `unsigned short` to represent compare predicate, although all usesrs of the respective include file use definition of CmpInst also. This change replaces predicate argument type in this function to `ICmpInst::Predicate`, which allows to make code a bit clearer and simpler. No functional changes. Differential Revision: https://reviews.llvm.org/D116379
-
John Ericson authored
There was one more reference the word "install" I forgot to remove. Follow-up to bde561c4 / https://reviews.llvm.org/D115746
-
John Ericson authored
It is likely to become used again, if other projects want their own per-project install directory variables. `install` is removed from the name since it is not inherently about installing. Reviewed By: stephenneuendorffer Differential Revision: https://reviews.llvm.org/D115746
-
Shilei Tian authored
In most cases, hidden helper task behave similar as detached tasks. That means, for example, if we have to wait for detached tasks, we have to do the same thing for hidden helper tasks as well. This patch adds the missing condition for hidden helper task accordingly along with detached task. Reviewed By: AndreyChurbanov Differential Revision: https://reviews.llvm.org/D107316
-
jacquesguan authored
Use integer vector scalar move instruction when move 0 to avoid add a integer-float move instruction. Differential Revision: https://reviews.llvm.org/D116365
-
Qiu Chaofan authored
The run line of stack-protector-guard.c doesn't specify the triple, which means it depends on the platform running the test. This makes some failure hidden. Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D116003
-
Chenbing.Zheng authored
The patterns of the immediate comparison instruction is rewrite here, and put similar code to a class. Do not change any function of the original code, making the code more concise. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D116215
-
David Blaikie authored
-
Mehdi Amini authored
This is just fixing the build itself, the test won't pass right now.
-
David Blaikie authored
-
David Blaikie authored
Otherwise these look a lot like actual templates (they have a name and they have template parameters) but they don't participate in naming (this doesn't come up in practice because a template parameter pack DIE is never referenced from another DIE (so we don't do full name rebuilding for it) or the subject of simplified template name rebuilding (never has the _STN prefix)) - it could be tested with some hand crafted DWARF but doesn't seem important/useful to do so. This change is just for performance - to avoid trying to parse more DIEs, etc, when it's not needed when computing the name in the DWARF verifier.
-
David Blaikie authored
-
Arthur O'Dwyer authored
Differential Revision: https://reviews.llvm.org/D116382
-
David Blaikie authored
Avoid trying to resolve nested types that may not be needed because the name is already provided by the outer DIE.
-
Sanjay Patel authored
((Op1 + C) & C) u< Op1 --> Op1 != 0 ((Op1 + C) & C) u>= Op1 --> Op1 == 0 Op0 u> ((Op0 + C) & C) --> Op0 != 0 Op0 u<= ((Op0 + C) & C) --> Op0 == 0 https://alive2.llvm.org/ce/z/iUfXJN https://alive2.llvm.org/ce/z/caAtjj define i1 @src(i8 %x, i8 %y) { ; the add/mask must be with a low-bit mask (0x01ff...) %y1 = add i8 %y, 1 %pop = call i8 @llvm.ctpop.i8(i8 %y1) %ismask = icmp eq i8 %pop, 1 call void @llvm.assume(i1 %ismask) %a = add i8 %x, %y %m = and i8 %a, %y %r = icmp ult i8 %m, %x ret i1 %r } define i1 @tgt(i8 %x, i8 %y) { %r = icmp ne i8 %x, 0 ret i1 %r } I suspect this can be generalized in some way, but this is the pattern I'm seeing in a motivating test based on issue #52851.
-
Sanjay Patel authored
-
Sanjay Patel authored
-