- Nov 30, 2022
-
-
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
-
Murali Vijayaraghavan authored
[mlir][linalg] Changing the positions of introduced parallel loop in SplitReduction to be consistent with IREE's downstream passes IREE's passes depend on the behavior of SplitReduction's introduced parallel loop being the same as the introduced dimension in the intermediate tensor (the order of loops was changed in https://reviews.llvm.org/D137478). Differential Revision: https://reviews.llvm.org/D138972
-
Freddy Ye authored
Reviewed By: LuoYuanke, pengfei Differential Revision: https://reviews.llvm.org/D138900
-
Petr Hosek authored
We already know that there are no free blocks above Region->AllocatedUser. This results in a smaller RegionPageMap and faster releaseFreeMemoryToOS. Patch By: fabio-d Differential Revision: https://reviews.llvm.org/D138794
-
Petr Hosek authored
Fixes a warning about a potentially unsupported template argument deduction by explicitly specifying the template type in std::lock_guard. Patch By: brettw Differential Revision: https://reviews.llvm.org/D138961
-
chenglin.bi authored
(X || Y) ? X : Y --> X https://alive2.llvm.org/ce/z/oRQJee Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D138815
-
Craig Topper authored
We need the vlse node to have a chain output and it should replace the chain output of the original load.
-
Vasileios Porpodas authored
Differential Revision: https://reviews.llvm.org/D138605
-
Jakub Kuderski authored
Add a new version of `zip` that assumes that all iteratees have equal lengths. The difference compared to `zip_first` is that `zip_equal` checks this assumption in builds with assertions enabled. This will allow us to clearly express the intent when working with equally-sized ranges without having to write this assertion manually. This is similar to Python's `zip(..., equal=True)` [1] or `more_itertools.zip_equal` [2]. I saw this first suggested by @benvanik. [1] https://peps.python.org/pep-0618/ [2] https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.zip_equal Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D138865
-
Jakub Kuderski authored
Update the documentation comment and add a new test case. Add an assertion in `zip_first` checking the iteratee length precondition. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D138858
-
Michael Maitland authored
It is likley that subtargets act differently for vector fixed-point arithmetic instructions based on the LMUL. This patch creates seperate SchedRead, SchedWrite, WriteRes, ReadAdvance for each relevant LMUL. Differential Revision: https://reviews.llvm.org/D137342
-
Peter Rong authored
Randomlly select an instruction and try to use it in the future by replacing it with another instruction's operand. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D138948
-
Matt Arsenault authored
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: #libc_vendors, EricWF, libcxx-commits Differential Revision: https://reviews.llvm.org/D137502
-
Nikolas Klauser authored
This allows compiling libc++, even when the C library doesn't support floating point math. Reviewed By: ldionne, #libc Spies: daltenty, xingxue, libcxx-commits, michaelplatings Differential Revision: https://reviews.llvm.org/D136393
-
Nikolas Klauser authored
This is required to compile custom clang-tidy checks Reviewed By: Mordante, #libc Spies: libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D138728
-
Hanhan Wang authored
The outer_dims_perm must be a permutation or empty. Reviewed By: chelini Differential Revision: https://reviews.llvm.org/D138936
-
Matt Arsenault authored
-
Matt Arsenault authored
We were missing legality checks. The device library build was broken for targets without f16 support. Technically the first pattern isn't tested by this patch; it only triggers with the isBeforeLegalize check in performAndCombine removed. I'm not sure how to trick this into appearing post-legalization.
-
Matt Arsenault authored
-
Matt Arsenault authored
Done purely with the script.
-
Matt Arsenault authored
This one was slightly tricky. The AA debug printing usually, but not always, uses the old pointer syntax. Also, we need to stop folding out 0 index GEPs in a few of these cases.
-
Matt Arsenault authored
fmax_legacy.ll had one test that produced "ptraddrspace(1)", since somehow "i1addrspace(1)*" used to parse.
-
Benjamin Kramer authored
-
Brett Wilson authored
Previously file naming and directory layout was handled on a per Info object basis by ClangDocMain and the generators blindly wrote to the files given. This means all generators must use the same file layout and caused problems where multiple objects mapped to the same file. The object collision problem happens most easily with template specializations because the template parameters are not part of the "name". This patch moves the responsibility for output file organization to the generators. Currently HTML and MD use the same structure as before. But they now collect all objects that map to a given file and combine them, avoiding the corruption problems. Converts the YAML generator to naming files based on USR in one directory. This is easier for downstream tools to manage and avoids the naming problems with template specializations. Since this change requires backward-incompatible output changes to referenced files anyway (since each one is now an array), this is a good time to introduce this change. Differential Revision: https://reviews.llvm.org/D138073
-
varconst authored
Focus on the not-yet-implemented features: remove most details about the already-implemented C++20 stuff, list out the major C++23 additions. Differential Revision: https://reviews.llvm.org/D136657
-
Alex Lorenz authored
-
Krzysztof Parzyszek authored
* Concatenate partial shuffles into longer ones whenever possible: In selection DAG, shuffle's operands and return type must all agree. This is not the case in LLVM IR, and non-conforming IR-level shuffles will be rewritten to match DAG's requirements. This can also make a shuffle that can be matched to a single HVX instruction become shuffles that require more complex handling. Example: anything that takes two single vectors and returns a pair (e.g. V6_vshuffvdd). This is avoided by concatenating such shuffles into ones that take a vector pair, and an undef pair, and produce a vector pair. * Recognize perfect shuffles when masks contain `undef` values. * Use funnel shifts for contracting shuffles. * Recognize rotations as a separate step. These changes go into a single commit, because each one on their own introduced some regressions.
-
Wael Yehia authored
Reviewed By: rzurob Differential Revision: https://reviews.llvm.org/D138944
-
Nicolai Hähnle authored
Found by our downstream CI.
-
Konstantin Varlamov authored
Also add tests for the file. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D135635
-