- Mar 30, 2023
-
-
Jay Foad authored
This tries to remove all cases where we repeat the instruction name as both an identifier (the tablegen name) and as a string (the assembler/ disassembler name). It uses tablegen's new !tolower operator. Differential Revision: https://reviews.llvm.org/D147216
-
Timm Bäder authored
This broke builders, e.g. https://lab.llvm.org/buildbot/#builders/139/builds/38250
-
Momchil Velikov authored
... when finding all memory uses for an address and make it a parameter. Now that we have avoided potentially exponential run time of `FindAllMemoryUses` in D143893. it'd be beneficial to increase the limit up from 20. Reviewed By: mkazantsev Differential Revision: https://reviews.llvm.org/D143894 Change-Id: I3abdf40332ef65e9b2f819ac32ac60e4200ec51d
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D141472
-
Momchil Velikov authored
The counter of the number of instructions seen in `FindAllMemoryUses` is reset after returning from a recursive invocation of `FindAllMemoryUses` to the value it had before the call. In effect, depending on the shape of the uses graph, the function may scan up to `2^N-1` instructions where `N` is the scan limit (`MaxMemoryUsesToScan`). This does not look intuitive or intended. This patch changes the counting to just count the scanned instructions, independent of the shape of the references. Reviewed By: mkazantsev Differential Revision: https://reviews.llvm.org/D143893 Change-Id: I99f5de55e84843cf2fbea287d6ae4312fa196240
-
Erich Keane authored
Seemingly we never tested this, but the constraint on a NTTP was being swtiched to the 'instantiated' version, but constraints need to be relative to the 'top level', so this was causing us to not be able to check the constraint on final use. This patch corrects the issue by making the constraint created with the un-instantiated version in the case of dependent constraint attachment. Fixes: #61777
-
Ivan Kosarev authored
-
Jon Chesterfield authored
std::optional<uint32_t> can be compared to uint32_t without warning, but does not compare to the value within the optional. It needs to be prefixed *. Wconversion does not warn about this. ``` bool bug(uint32_t Offset, std::optional<uint32_t> Expect) { return (Offset != Expect); } bool deref(uint32_t Offset, std::optional<uint32_t> Expect) { return (Offset != *Expect); } ``` Both compile without warnings. Wrote the former, intended the latter. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D146775 -
Max Kazantsev authored
-
Mikhail Maltsev authored
The llvm.memcpy.inline intrinsic must be expanded into code that does not contain any function calls because it is intended for the implementation of low-level functions like memcpy. Currently the MemCpyOpt might covert llvm.memcpy.inline into llvm.memmove in certain circumstances. This patch fixes the issue. Fixes https://github.com/llvm/llvm-project/issues/61791. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D147162
-
Ingo Müller authored
Reviewed By: ingomueller-net Differential Revision: https://reviews.llvm.org/D147220
-
Simon Pilgrim authored
Reduces size of all/anyof comparison mask and is more likely to further fold with source vectors. MOVMSKPD is trickier to match as if we had the CMPEQQ instruction we'd be using the PTEST path
-
Simon Pilgrim authored
[X86] combineVectorShiftImm - fold (shift (logic X, C2), C1) -> (logic (shift X, C1), (shift C2, C1)) Helps expose a number of cases that we could/should reassociate - if only the vector constants hadn't already been lowered :( It also forms a number of additional VPTERNLOG nodes, bringing together logic ops that had been stuck on either side of a shift op
-
Haojian Wu authored
There is no need to add headers for builtin symbols. Additionally, there is a bonus benefit which help eliminate some bugs -- builtin functions are modeled as implicit FunctionDecls in the clang AST, which results in them being treated as normal FunctionDecls in the implementation of the include-cleaner (going through the path: ast-node -> decl -> source location -> header). And, the source location of these built-in symbols' AST nodes is not precise (e.g. points to the first call site), which leads to subtle behavior that inserts a header of the call site. Differential Revision: https://reviews.llvm.org/D147213
-
Johannes de Fine Licht authored
These operations do not on their own require special handling to be inlined, and can just be inlined as is. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D147148
-
Timm Bäder authored
Emit destructors for non-primitive (array) variables on scope ends. Differential Revision: https://reviews.llvm.org/D145545
-
Louis Dionne authored
The use_system_cxx_lib Lit feature was only used for back-deployment testing. However, one immense hole in that setup was that we didn't have a proper way to test Apple's own libc++ outside of back-deployment, which was embodied by the fact that we needed to define _LIBCPP_DISABLE_AVAILABILITY when testing (see change in libcxx/utils/libcxx/test/params.py). This led to the apple-system testing configuration not checking for availability markup, which is obviously quite bad since the library we ship actually has availability markup. Using stdlib=<VENDOR>-libc++ instead to encode back-deployment restrictions on tests is simpler and it makes it possible to naturally support tests such as availability markup checking even in the tip-of-trunk Apple-libc++ configuration. Differential Revision: https://reviews.llvm.org/D146366
-
Pavel Labath authored
This is a follow-up to D116372, which had a rather unfortunate side effect of making the processing of a single SIGCHLD quadratic in the number of threads -- which does not matter for simple applications, but can get really bad for applications with thousands of threads. This patch fixes the problem by implementing the other possibility mentioned in the first patch -- doing waitpid(-1) centrally and then routing the events to the correct process instance. The "uncollected" threads are held in the process factory class -- which I've renamed to Manager for this purpose, as it now does more than creating processes. Differential Revision: https://reviews.llvm.org/D146977
-
Jay Foad authored
-
Mariya Podchishchaeva authored
Since each `DumpModuleInfoAction` can now contain a pointer to a `raw_ostream`, saving there a poiter that owned by a local `unique_ptr` may cause use-after-free. Clarify ownership and save a `shared_ptr` inside of `DumpModuleInfoAction` instead. Found by static analyzer. Reviewed By: tahonermann, aaron.ballman Differential Revision: https://reviews.llvm.org/D146412
-
Nico Weber authored
This reverts commit 8ff48326. Breaks tests, see https://reviews.llvm.org/D146811#4232839
-
Matthias Springer authored
This was an oversight in D147206. The function should not have been made `const` (just like the other `notify...` functions).
-
Kadir Cetinkaya authored
Differential Revision: https://reviews.llvm.org/D147139
-
Jay Foad authored
These were left over after https://reviews.llvm.org/D98663
-
Alexander Belyaev authored
When low/high padding is folded in padOp, there should be inserted a tensor.cast back to the original result type. Right now, there is a no-op tensor.cast from new type to new type... Differential Revision: https://reviews.llvm.org/D147210
-
Nikita Popov authored
D130163 added support for folding setcc (iN (bitcast (vNi1 X))), 0, (eq|ne) to setcc (iN (zext (i1 (vecreduce_or (vNi1 X))))), 0, (eq|ne). There is a conjugate fold for comparison with -1 which uses vecreduce_and and sext instead. Proof: https://alive2.llvm.org/ce/z/Zz--xy Differential Revision: https://reviews.llvm.org/D146518
-
Matthias Springer authored
Derived classes can implement `notifyPayloadReplacementNotFound` for custom error checking. Differential Revision: https://reviews.llvm.org/D147206
-
Adrian Kuegel authored
-
Jean Perier authored
Block merging is disabled with FIR: some FIR value should not be promoted to block arguments, and the region simplification block merging is promoting all SSA value types to block argument when two blocks are similar except for the usage these values. Differential Revision: https://reviews.llvm.org/D147130
-
Dmitry Makogon authored
Fixes https://github.com/llvm/llvm-project/issues/61182. LoopStrengthReduce may sometimes break LCSSA form when applying a rewrite for an instruction used in a PHI. It happens if: - The PHI is in a loop exit block, - The edge from the corresponding exiting block to that exit is critical, - The PHI has at least two inputs coming from loop blocks, - and the rewritten instruction is inserted in the loop. In such case we split the critical edge and then replace PHI inputs with the rewritten instruction. However ExitBlock is no longer a loop exit, so LCSSA form is broken. This patch fixes it by collecting all inserted instructions for PHIs whose parent block is not a loop exit and then forming LCSSA for them. Differential Revision: https://reviews.llvm.org/D146811
-
Peter Rong authored
CodeGenPare may optimize memory access modes. During such optimization, it might create a new instruction representing combined value. Later, If the optimization failed, the generated value is not removed and remains a dead instruction. Normally this won't be a problem as dead code will be eliminated later. However, in this case (Issue 58538), the generated instruction may trigger an infinite loop. The infinite loop involves `sinkCmpExpression`, where it tries to optimize the placeholder generated by us. (See the test case detailed in the issue) To fix this, we remove the unnecessary placeholder immediately when we abort the optimization. `AddressingModeCombiner` will keep track of the placeholder, and remove it if it is an inserted placeholder and has no uses. This patch fixes https://github.com/llvm/llvm-project/issues/58538, a test is also included. Reviewed By: skatkov Differential Revision: https://reviews.llvm.org/D147041
-
Craig Topper authored
There are several other calls to isDigit in RISCVISAInfo.cpp
-
Serge Pavlov authored
These tests check GNU-compatible output if llvm-symbolizer is called with the option --output-style=GNU and LLVM-style output if llvm-addr2line is called with --output-style=LLVM. Differential Revision: https://reviews.llvm.org/D147110
-
Kazu Hirata authored
-
Craig Topper authored
We're just slicing off part of an existing StringRef. No need to allocate any new storage.
-
Peter Rong authored
Signed-off-by:Peter Rong <PeterRong96@gmail.com>
-
Hau Hsu authored
Previously the detection compares "CMAKE_SYSTEM_NAME" and "CMAKE_TARGET_SYSTEM_NAME", which only contains OS names like "Linux". This is not sufficient when cross-compiling for different target CPUs. This patch uses CMAKE_CROSSCOMPILING, which sets automatically by CMake when cross compiling. Reviewed By: smeenai, phosek Differential Revision: https://reviews.llvm.org/D147103
-
Jonas Devlieghere authored
Fix an inconsistency between input and output verification in dsymutil. Previously, output verification would be controlled by the verbose flag, while input verification would unconditionally dump to stdout. Make input and output verification behave the same by printing verification error to stderr in verbose mode only.
-
Craig Topper authored
We're calling functions that take a StringRef. We can create one from a single character variable without using std::string.
-
Kazu Hirata authored
-