- Nov 30, 2022
-
-
Sebastian Neubauer authored
D138205 added all the new vector types, so the todo is fixed now. Differential Revision: https://reviews.llvm.org/D139002
-
David Green authored
The logic in isWideningInstruction handles instructions like uaddw and smull, where 'add(x, zext(y))' or 'mul(sext(x), sext(y))' can be converted to single instructions, making the extends free. This doesn't apply the same to SVE instructions though. https://godbolt.org/z/695d3nhGd (There are instructions like SMULLT/B, but they require top/bottom lane interleaving. That is similar to MVE instructions, which required a special pass to perform the lane interleaving). This patch just bails out of the call to isWideningInstruction if the vector is scalable, getting a more accurate cost. Differential Revision: https://reviews.llvm.org/D138591
-
ShihPo Hung authored
This patch adds basic broadcast shuffle costs in order to enable SLP vectorization. And adds `getLMULCost` to consider reciprocal throughput for different LMUL. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D137276
-
Aaron Ballman authored
This addresses the issue found by: https://lab.llvm.org/buildbot/#/builders/92/builds/36449
-
Jean Perier authored
These operations allow creating an HLFIR variable from a HLFIR value and destroying it at the end of the variable lifetime. This will both be used to implement procedure reference arguments association when the actual is an expression, and to implement the Fortran associate construct when the associated entity is an expression. See https://github.com/llvm/llvm-project/blob/main/flang/docs/HighLevelFIR.md for more details. Differential Revision: https://reviews.llvm.org/D138996
-
Simon Pilgrim authored
This was an old patch from when I was trying to improve pre-AVX scheduler support as part of D103695, we were missing port mappings entirely for these targets - although tbh they don't map well to the SandyBridge model that they currently use.
-
Sara Bellei authored
Differential revision: https://reviews.llvm.org/D138698
-
Sylvain Audi authored
This patch fixes crashes related with how PatchableFunction selects the instruction to make patchable: - Ensure PatchableFunction skips all instructions that don't generate actual machine instructions. - Handle the case where the first MachineBasicBlock is empty - Removed support for 16 bit x86 architectures. Note: another issue remains related with PatchableFunction, in the lowering part. See https://github.com/llvm/llvm-project/issues/59039 Differential Revision: https://reviews.llvm.org/D137642
-
Pierre van Houtryve authored
Fixes a longstanding TODO in the codebase where we were using S_GETREG + shift to do something that could simply be done with an inline constant (register). Patch based on D31874 by @kzhuravl Depends on D137767 Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D137542
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D138710
-
Tim Northover authored
The probes are all inserted at the iterator passed into the functions, so that's where any EFLAGS clobbering will happen and where we need it to be dead. Fixes: https://github.com/llvm/llvm-project/issues/59121
-
Jay Foad authored
-
Nicolai Hähnle authored
-
Muhammad Omair Javaid authored
Flang build on windows with MSVC environment and clang-cl compiler requires clang_rt.builtin.${target} library. This patch allows us to locate and include this link library. This is mostly needed for flang runtime and associated unittests as it requires the uint128 division builtin function __udivti3. Reviewed By: DavidTruby Differential Revision: https://reviews.llvm.org/D138023 -
Gabor Buella authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D138386
-
Vignesh Balasubramanian authored
This reverts commit 451c017a.
-
Tom Eccles authored
-
Nicolai Hähnle authored
Following up on the removal of BufferPSV in commit 43b86bf9 ("AMDGPU: Remove BufferPseudoSourceValue") It is unclear what exactly the right address space for images should be. They seem morally closest to buffers, so that's what I went with. In practical terms, address space 7 is better than address space 0 because it can't alias with LDS. Differential Revision: https://reviews.llvm.org/D138949
-
Corentin Jabot authored
-
Corentin Jabot authored
Implement https://cplusplus.github.io/CWG/issues/2631.html. Immediate calls in default arguments and defaults members are not evaluated. Instead, we evaluate them when constructing a `CXXDefaultArgExpr`/`BuildCXXDefaultInitExpr`. The immediate calls are executed by doing a transform on the initializing expression. Note that lambdas are not considering subexpressions so we do not need to transform them. As a result of this patch, unused default member initializers are not considered odr-used, and errors about members binding to local variables in an outer scope only surface at the point where a constructor is defined. Reviewed By: aaron.ballman, #clang-language-wg Differential Revision: https://reviews.llvm.org/D136554
-
Vignesh Balasubramanian authored
It was disabled due to different failures it different llvm bots. Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D138411
-
gonglingqin authored
This patch is required by OpenMP. After applying this patch, OpenMP regression test passed. To reduce review difficulty caused by too large patches, atomicrmw min/max operations on LA32 will be added later. Differential Revision: https://reviews.llvm.org/D138177
-
Timm Bäder authored
The calling convention is: [RVO pointer] [instance pointer] [... args ...] We handle the instance pointer ourselves, BUT for the RVO pointer, we just assumed in visitReturnStmt() that it is on top of the stack. Which isn't true if there are other args present (and a this pointer, maybe). Fix this by recording the RVO pointer explicitly when creating an InterpFrame, just like we do with the instance/This pointer. There is already a "RVOAndParams()" test in test/AST/Inter/records.cpp, that was supposed to test this, however, it didn't trigger any problematic behavior because the parameter and the return value have the same type. Differential Revision: https://reviews.llvm.org/D137392
-
Dmitry Vyukov authored
epoll_pwait2 is new and may not be present in libc and/or kernel. Since we effectively add it to libc (as will be probed by the program using dlsym or a weak function pointer) we need to handle the case when it's not present in the actual libc. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D138929
-
Timm Bäder authored
This way we're invoking the copy constructor, which might be necessary if the argument is not trivially constructible. Differential Revision: https://reviews.llvm.org/D138554
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D136936
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D136920
-
Valentin Clement authored
Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138921
-
Dmitry Vyukov authored
This reverts commit e6aea4a5. Broke tests: https://lab.llvm.org/buildbot/#/builders/16/builds/38992
-
Matthias Springer authored
The previous error message was confusing. Also improve code documentation and some minor code cleanups. Differential Revision: https://reviews.llvm.org/D138902
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D136457
-
wangpc authored
The original intention is adding a list of SchedWrites (which is a default argument of ReadAdvance) to LMULReadAdvance, but it may not be practical that there are two default arguments in one class. So we add variants that are intended for widening and narrowing instructions with postfix "W" and remove lmuls argument. Reviewed By: michaelmaitland Differential Revision: https://reviews.llvm.org/D138640
-
Dmitry Vyukov authored
Currently per-function metadata consists of: (start-pc, size, features) This adds a new UAR feature and if it's set an additional element: (start-pc, size, features, stack-args-size) Reviewed By: melver Differential Revision: https://reviews.llvm.org/D136078
-
Thomas Symalla authored
This function removes the mentioned function, as it only does two checks which are already implemented as part of SelectionDAG::isKnownNeverNaN - which is called there. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D138938
-
Rong Xu authored
We need to flatten the SampleFDO profile in profile supplementation because the InstrFDO profile does not have inlined callsite counters. Without flattening profile, FDO optimizations are not stable: we will not supplement the second generation profile when the modified functions are all inlined. This patch fixes this issue: we will flatten the profile for functions that appears in FDO profile. Note that we only need to find the hot/warm functions in SampleFDO profile, so we will not perform a full flatten. We will use a DFS traversal to compute the accumulated entry count and max bodycount. This is much cheaper than full flattening. Differential Revision: https://reviews.llvm.org/D138893
-
Petr Hosek authored
It may be necessary to build additional targets before running perf-training, the typical use case would be builtins and runtimes. This change allows users to specify those dependencies as: set(CLANG_PERF_TRAINING_DEPS builtins runtimes CACHE STRING "") Differential Revision: https://reviews.llvm.org/D138974
-
Evgenii Kudriashov authored
Reviewed By: RKSimon, pengfei Differential Revision: https://reviews.llvm.org/D138734
-
Gabriel F. T. Gomes authored
The -fcf-protection option takes an optional argument, which allows the requesting of control-flow protection on returns, or on indirect jumps and calls, or both. One of the comments in the code applies to returns, yet it mentions branches (for indirect calls and jumps). This patch fixes this obvious typo. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D117836
-
Petr Hosek authored
.cc and .test are commonly used and supported by other lit test suites. Differential Revision: https://reviews.llvm.org/D138975
-
Vasileios Porpodas authored
Currently the only way to do this is to work with the instruction list directly. This is part of a series of cleanup patches towards making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D138875
-