- Sep 18, 2020
-
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
David Tenty authored
-
Adam Czachorowski authored
For style guides forbid "using" declarations for namespaces like "std". With this new config option, AddUsing can be selectively disabled on those. Differential Revision: https://reviews.llvm.org/D87775
-
Hanhan Wang authored
Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D87887
-
Sanjay Patel authored
It would also be correct to return the variable operand in these cases, but eliminating a variable use is probably better for optimization.
-
Matt Arsenault authored
This was just inspecting the IR to begin with, and is useful to check in some places in the IR.
-
Matt Arsenault authored
-
Matt Arsenault authored
This reverts commit c3492a1a. I think this is the wrong strategy and wrong place to do this transform anyway. Also reverts follow up commit 7d593d0d.
-
Alexey Bataev authored
If some leaves have the same instructions to be vectorized, we may incorrectly evaluate the best order for the root node (it is built for the vector of instructions without repeated instructions and, thus, has less elements than the root node). In this case we just can not try to reorder the tree + we may calculate the wrong number of nodes that requre the same reordering. For example, if the root node is \<a+b, a+c, a+d, f+e\>, then the leaves are \<a, a, a, f\> and \<b, c, d, e\>. When we try to vectorize the first leaf, it will be shrink to \<a, b\>. If instructions in this leaf should be reordered, the best order will be \<1, 0\>. We need to extend this order for the root node. For the root node this order should look like \<3, 0, 1, 2\>. This patch allows extension of the orders of the nodes with the reused instructions. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D45263
-
Mirko Brkusanin authored
Alignment requirements for ds_read/write_b96/b128 for gfx9 and onward are now the same as for other GCN subtargets. This way we can avoid any unintentional use of these instructions on systems that do not support dword alignment and instead require natural alignment. This also makes 'SH_MEM_CONFIG.alignment_mode == STRICT' the default. Differential Revision: https://reviews.llvm.org/D87821
-
Sanjay Patel authored
-
Daniel Kiss authored
Unwinding leaf function is useful in cases when the backtrace finds a leaf function for example when it caused a signal. This patch also add the support for the DW_CFA_undefined because it marks the end of the frames. Ryan Prichard provided code for the tests. Reviewed By: #libunwind, mstorsjo Differential Revision: https://reviews.llvm.org/D83573 Reland with limit the test to the x86_64-linux target.
-
Xing GUO authored
This patch makes the include_directories, file_names and opcodes fields of the line table optional. This helps us simplify some tests. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D87878
-
Xing GUO authored
This patch makes checkers stricter so that we are able to avoid some potential problems earlier. Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D87876
-
David Greene authored
Add the --include-generated-funcs option to update_cc_test_checks.py so that any functions created by the compiler that don't exist in the source will also be checked. We need to maintain the output order of generated function checks so that CHECK-LABEL works properly. To do so, maintain a list of functions output for each prefix in the order they are output. Use this list to output checks for generated functions in the proper order. Differential Revision: https://reviews.llvm.org/D83004
-
Max Kazantsev authored
-
Florian Hahn authored
The type of the map the SCEVParameterRewriter takes has been changed in 4635f605. Update the single use in polly to use SCEV* as type of the values.
-
Nicolas Vasilache authored
This revision allows representing a reduction at the level of linalg on tensors for named ops. When a structured op has a reduction and returns tensor(s), new conventions are added and documented. As an illustration, the syntax for a `linalg.matmul` writing into a buffer is: ``` linalg.matmul ins(%a, %b : memref<?x?xf32>, tensor<?x?xf32>) outs(%c : memref<?x?xf32>) ``` , whereas the syntax for a `linalg.matmul` returning a new tensor is: ``` %d = linalg.matmul ins(%a, %b : tensor<?x?xf32>, memref<?x?xf32>) init(%c : memref<?x?xf32>) -> tensor<?x?xf32> ``` Other parts of linalg will be extended accordingly to allow mixed buffer/tensor semantics in the presence of reductions. -
Florian Hahn authored
This switches to using DSE + MemorySSA by default again, after fixing the issues reported after the first commit. Notable fixes fc820063, a0017c2b. This reverts commit 3a59628f.
-
Daniel Kiss authored
This reverts commit 23bef7ee.
-
Florian Hahn authored
This patch extends SCEVParameterRewriter to support rewriting unknown epxressions to arbitrary SCEV expressions. It will be used by further patches. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D67176
-
Gabriel Hjort Åkerlund authored
When generating matching tables for GlobalISel, TableGen would output "::zero_reg" whenever encountering the zero_reg, which in turn would result in compilation error. This patch fixes that by instead outputting NoRegister (== 0), which is the same result that TableGen produces when generating matching tables for ISelDAG. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D86215
-
Tim Northover authored
This turns all jump table entries into deltas within the target function because in the small memory model all code & static data must be in a 4GB block somewhere in memory. When the entries were a delta between the table location and a basic block, the 32-bit signed entries are not enough to guarantee reachability. https://reviews.llvm.org/D87286
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Teresa Johnson authored
Split out of D87120 (memory profiler). Added unit testing of the new printing facility. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D87792
-
Nikita Popov authored
This reverts commit 05d4c4eb. mstorsjo reports a miscompile after this change in https://reviews.llvm.org/D87188#2281093. Reverting until I can investigate this.
-
Vitaly Buka authored
The test started to consistently fail after unrelated 2ffaa9a1. Even before the patch it was possible to fail the test, e.g. -seed=1660180256 on my workstation. Also this checks do not look related to strcmp.
-
Andrew Wei authored
-
Serge Pavlov authored
Previously methods `FPOptions::get*` returned unsigned value even if the corresponding property was represented by specific enumeration type. With this change such methods return actual type of the property. It also allows printing value of a property as text rather than integer code. Differential Revision: https://reviews.llvm.org/D87812
-
Artur Bialas authored
This reverts commit 9d54b166.
-
Artur Bialas authored
-
Craig Topper authored
The number of ones in the mask for the PDEP determines how many bits of the other operand are used. If the mask is constant we can use this to build a mask for SimplifyDemandedBits. This can be used to replace the extends in the test with anyextend.
-
Andrew Wei authored
When the source of the zext is AssertZext or AssertSext, it is hard to know any information about the upper 32 bits, so we should insert a zext move before emitting SUBREG_TO_REG to define the lower 32 bits. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D87771
-
Teresa Johnson authored
This reverts commit 2ffaa9a1. There were 2 reported bot failures that need more investigation: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/69871/steps/stage%201%20check/logs/stdio This one is in my new test. http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer/builds/39187/steps/check-fuzzer/logs/stdio This one seems completely unrelated.
-
Tue Ly authored
Truncating the sum of squares, and then use shift-and-add algorithm to compute its square root. Required MPFR testing infra is updated in https://reviews.llvm.org/D87514 Differential Revision: https://reviews.llvm.org/D87516
-
Teresa Johnson authored
Split out of D87120 (memory profiler). Added unit testing of the new printing facility. Differential Revision: https://reviews.llvm.org/D87792
-
Vitaly Buka authored
-
Vitaly Buka authored
-