- May 19, 2022
-
-
Sheng authored
Sorry for my reckless patch. In some cases `RoundUp` is less than the bit width of APInt. We need to check this before we do zext.
-
David Green authored
A TBL instruction will fill out-of-range values with 0's, something used in D121139 to turn tbl2 with a zero input into tbl1s. This works OK for v16i8, but for v8i8 the input is still treated as a v16i8, so out-of-range values (like a lane index of 8) would end up loading values from the top half of the input register. Clean this up by detecting the out of range values and making sure they really use out of range values. There is a fix for swapped indices of 64bit input vectors too, which could be incorrectly adjusted if the zerovector was the first operand. Fixes #55545 Differential Revision: https://reviews.llvm.org/D125865
-
Sheng authored
This is a follow up to D125558
-
David Spickett authored
This reverts commit 3e928c4b. This fixes an issue seen on Windows where we did not properly get the section names of regions if they overlapped. Windows has regions like: [0x00007fff928db000-0x00007fff949a0000) --- [0x00007fff949a0000-0x00007fff949a1000) r-- PECOFF header [0x00007fff949a0000-0x00007fff94a3d000) r-x .hexpthk [0x00007fff949a0000-0x00007fff94a85000) r-- .rdata [0x00007fff949a0000-0x00007fff94a88000) rw- .data [0x00007fff949a0000-0x00007fff94a94000) r-- .pdata [0x00007fff94a94000-0x00007fff95250000) --- I assumed that you could just resolve the address and get the section name using the start of the region but here you'd always get "PECOFF header" because they all have the same start point. The usual command repeating loop used the end address of the previous region when requesting the next, or getting the section name. So I've matched this in the --all scenario. In the example above, somehow asking for the region at 0x00007fff949a1000 would get you a region that starts at 0x00007fff949a0000 but has a different end point. Using the load address you get (what I assume is) the correct section name.
-
David Green authored
-
Andrzej Warzynski authored
`-module-dir` is Flang's equivalent for `-J` from GFortran (in fact, `-J` is an alias for `-module-dir` in Flang). Currently, only `-module-dir <value>` is accepted. However, `-J` (and other options for specifying various paths) accepts `-J<value>` as well as `-J <value>`. This patch makes sure that `-module-dir` behaves consistently with other such flags. Differential Revision: https://reviews.llvm.org/D125957
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D125888
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D125558
-
Jay Foad authored
Most clients only used these methods because they wanted to be able to extend or truncate to the same bit width (which is a no-op). Now that the standard zext, sext and trunc allow this, there is no reason to use the OrSelf versions. The OrSelf versions additionally have the strange behaviour of allowing extending to a *smaller* width, or truncating to a *larger* width, which are also treated as no-ops. A small amount of client code relied on this (ConstantRange::castOp and MicrosoftCXXNameMangler::mangleNumber) and needed rewriting. Differential Revision: https://reviews.llvm.org/D125557
-
Ivan Kosarev authored
Discovered with D125604. Reviewed By: #amdgpu, arsenm Differential Revision: https://reviews.llvm.org/D125900
-
Kirill Bobyrev authored
-
Kirill Bobyrev authored
-
Lian Wang authored
Re-landed D125206 Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D125206
-
Konrad Kleine authored
Revert "Add cmake/ to release tarballs via concatenation" This reverts commit 3a33664e. Revert "Add cmake to source release tarballs" This reverts commit 32a0482a. Reviewed By: tstellar, aaronpuchert Differential Revision: https://reviews.llvm.org/D125798
-
Alex Bradbury authored
[4e8b2ac7](https://reviews.llvm.org/rG4e8b2ac7c019) contained unintended tabs. This commit fixes that.
-
Guillaume Chatelet authored
Some functions like `stpncpy` are implemented in terms of `memset` but are not currently using `-fno-builtin-memset`. This is somewhat hidden by the fact that we use `-ffreestanding` globally and that `-ffreestanding` implies `-fno-builtin` for Clang. This patch also removes `-mllvm -combiner-global-alias-analysis` that is Clang specific and that does not bring substantial gains on modern processors. Also we keep `-mllvm --tail-merge-threshold=0` for aarch64 in CMakeLists.txt but we omit it in the Bazel config. This is because Bazel consumes the source files directly and so it can use PGO to take optimal decisions locally. Differential Revision: https://reviews.llvm.org/D125894
-
Alex Bradbury authored
Related to <https://github.com/llvm/llvm-project/issues/55566>. Committing directly (per LLVM's code review policy) as this is a trivial fix.
-
LLVM GN Syncbot authored
-
Sam McCall authored
-
Lian Wang authored
Reviewed By: craig.topper, frasercrmck Differential Revision: https://reviews.llvm.org/D125446
-
Daniel Kiss authored
Reland after dependent change reland.
-
Sam McCall authored
Much of the size of PCH/PCM files comes from stored SourceLocations. These are encoded using (almost) their raw value, VBR-encoded. Absolute SourceLocations can be relatively large numbers, so this commonly takes 20-30 bits per location. We can reduce this by exploiting redundancy: many "nearby" SourceLocations are stored differing only slightly and can be delta-encoded. Randam-access loading of AST nodes constrains how long these sequences can be, but we can do it at least within a node that always gets deserialized as an atomic unit. TypeLoc is implemented in this patch as it's a relatively small change that shows most of the API. This saves ~3.5% of PCH size, I have local changes applying this technique further that save another 3%, I think it's possible to get to 10% total. Differential Revision: https://reviews.llvm.org/D125403
-
Lian Wang authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D125739
-
Lian Wang authored
Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D125858
-
Sam McCall authored
-
Sam McCall authored
Explicitly sizing Kind enum suggests that too-large values are allowed, and that putting it in a bitfield is dangerous. GCC doesn't like condition ? integer : enum.
-
LLVM GN Syncbot authored
-
Sam McCall authored
-
Sam McCall authored
Tracked down the crash, which was argument-evaluation-order UB in the wrapping indexStandardLibrary(). Sorry for the churn! This reverts commit 77533ea4.
-
Stella Laurenzo authored
Differential Revision: https://reviews.llvm.org/D125852
-
Stella Laurenzo authored
The approach I took was to define a dialect 'extern' attribute that a GlobalOp can take as a value to signify external linkage. I think this approach should compose well and should also work with wherever the OpaqueElements work goes in the future (since that is just another kind of attribute). I special cased the GlobalOp parser/printer for this case because it is significantly easier on the eyes. In the discussion, Jeff Niu had proposed an alternative syntax for GlobalOp that I ended up not taking. I did try to implement it but a) I don't think it made anything easier to read in the common case, and b) it made the parsing/printing logic a lot more complicated (I think I would need a completely custom parser/printer to do it well). Please have a look at the common cases where the global type and initial value type match: I don't think how I have it is too bad. The less common cases seem ok to me. I chose to only implement the direct, constant load op since that is non side effecting and there was still discussion pending on that. Differential Revision: https://reviews.llvm.org/D124318
-
Alexander Pivovarov authored
-
lizhijin authored
This patch changes the strategy for vectorizing freeze instrucion, from replicating multiple times to widening according to selected VF. Fixes #54992 Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D125016
-
Zi Xuan Wu (Zeson) authored
[NFC][RISCV] Enable TuneNoDefaultUnroll feature to control targets which use default unroll preference In RISCVTargetTransformInfo, enumerating the processor family is not a good way to predict. Because it needs to enumerate many subtarget family and is hard to update if add new subtarget. Instead, create a feature to distinguish whether targets want to use default unroll preference or not. Keep TuneSiFive7 because it's flag to indicate subtarget family, which may used in other place. Differential Revision: https://reviews.llvm.org/D125741
-
Med Ismail Bennani authored
This should fix the issues introduced by d71d1a94 , which skipped all the test setup commands. This also fixes the test failures happening in TestAutosuggestion.py. Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Med Ismail Bennani authored
This reverts commit 80589f27.
-
Chenbing Zheng authored
In this patch we add a function foldICmpInstWithConstantAllowUndef to fold integer comparisons with a constant operand: icmp Pred X, C where X is some kind of instruction and C is AllowUndef. We move this fold to the new function, so that it can solve undef elts in a vector. Reviewed By: spatel, RKSimon Differential Revision: https://reviews.llvm.org/D125220
-
Chenbing Zheng authored
Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D125671
-
Jon Roelofs authored
Fixes #55284
-
Med Ismail Bennani authored
This reverts commit 821ee172, that landed by mistake.
-