- Apr 04, 2022
-
-
Martin Sebor authored
If the memchr() size is 1, then we can convert the call into a single-byte comparison. This works even if both the string and the character are unknown. Split off from https://reviews.llvm.org/D122836.
-
Martin Sebor authored
And fix some test names / comments.
-
Florian Hahn authored
At the moment this is NFC, but will be needed once nested loops are also modeled as regions. Preparation for D123005.
-
Nikita Popov authored
As discussed on https://github.com/llvm/llvm-project/issues/54682, MemorySSA currently has a bug when computing the clobber of calls that access loop-varying locations. I think a "proper" fix for this on the MemorySSA side might be non-trivial, but we can easily work around this in MemCpyOpt: Currently, MemCpyOpt uses a location-less getClobberingMemoryAccess() call to find a clobber on either the src or dest location, and then refines it for the src and dest clobber. This was intended as an optimization, as the location-less API is cached, while the location-affected APIs are not. However, I don't think this really makes a difference in practice, because I don't think anything will use the cached clobbers on those calls later anyway. On CTMark, this patch seems to be very mildly positive actually. So I think this is a reasonable way to avoid the problem for now, though MemorySSA should also get a fix. Differential Revision: https://reviews.llvm.org/D122911
-
Nikita Popov authored
The range calculation in walkForwards() assumes that the ranges of the operands have already been calculated. With the used visit order, this is not necessarily the case when there are multiple roots. (There is nothing guaranteeing that instructions are visited in topological order.) Fix this by queuing instructions for reprocessing if the operand ranges haven't been calculated yet. Fixes https://github.com/llvm/llvm-project/issues/54669. Differential Revision: https://reviews.llvm.org/D122817
-
Jean Perier authored
In case a character component PDT length only depends on kind parameters, fold it while instantiating the PDT. This is especially important if the component has an initializer because later semantic phases (offset computation or runtime type info generation) might get confused and generate offset/type info that will lead to crashes in lowering. Differential Revision: https://reviews.llvm.org/D122938
-
Valentin Clement authored
This patch adds FIR to LLVM test for fir.address_of. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D122889 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Fangrui Song authored
Reported at https://github.com/llvm/llvm-project/issues/54679#issuecomment-1086862116
-
Min-Yih Hsu authored
This patch is covered by existing MC tests.
-
Min-Yih Hsu authored
The associated test had a redundant CHECK-LABEL directive that might fail the test since the inception, but this issue was "burried" by a missing colon, which was addressed in fb65aaf0. Thus, the test finally failed after the said commit. This patch remove that CHECK-LABEL directive.
-
Yuanfang Chen authored
This relands commit a87ba5c8. Adjust llvm/utils/lit/tests/googletest-timeout.py for new test output.
-
Argyrios Kyrtzidis authored
The LLVM builders that were doing that have been updated to use "-DLLVM_CCACHE_BUILD=ON" instead.
-
Augie Fackler authored
I didn't dig into this very much because it appears to be totally valid (especially once these properties can come from attributes instead of only from hard-coded library functions) for TLI to not be defined, and nothing broke when I added this check, including with all my other patches applied. Differential Revision: https://reviews.llvm.org/D122917
-
Augie Fackler authored
Prior to this change, CallBase::hasFnAttr checked the called function to see if it had an attribute if it wasn't set on the CallBase, but getFnAttr didn't do the same delegation, which led to very confusing behavior. This patch fixes the issue by making CallBase::getFnAttr also check the function under the same circumstances. Test changes look (to me) like they're cleaning up redundant attributes which no longer get specified both on the callee and call. We also clean up the one ad-hoc implementation of this getter over in InlineCost.cpp. Differential Revision: https://reviews.llvm.org/D122821
-
Philip Reames authored
In general, anywhere we might need to insert a blind bitcast, we need to make sure the types are losslessly convertible. This fixes pr54634.
-
Philip Reames authored
The search for the clobbering call is fairly expensive if uses are not optimized at construction. Defer the clobber walk to the point in the implementation we need it; there are a bunch of bailouts before that point. (e.g. If the source pointer is not an alloca, we can't do callslotopt.) On a test case which involves a bunch of copies from argument pointers, this switches memcpyopt from > 1/2 second to < 10ms.
-
Yuanfang Chen authored
This reverts commit a87ba5c8. Breaks bots: https://lab.llvm.org/buildbot/#/builders/196/builds/10454
-
Yuanfang Chen authored
This helps lit unit test performance by a lot, especially on windows. The performance gain comes from launching one gtest executable for many subtests instead of one (this is the current situation). The shards are executed by the test runner and the results are stored in the json format supported by the GoogleTest. Later in the test reporting stage, all test results in the json file are retrieved to continue the test results summary etc. On my Win10 desktop, before this patch: `check-clang-unit`: 177s, `check-llvm-unit`: 38s; after this patch: `check-clang-unit`: 37s, `check-llvm-unit`: 11s. On my Linux machine, before this patch: `check-clang-unit`: 46s, `check-llvm-unit`: 8s; after this patch: `check-clang-unit`: 7s, `check-llvm-unit`: 4s. Reviewed By: yln, rnk Differential Revision: https://reviews.llvm.org/D122251
-
Xiang1 Zhang authored
-
Dávid Bolvanský authored
This reverts commit 14e3450f.
-
Dávid Bolvanský authored
-
Dávid Bolvanský authored
-
Dávid Bolvanský authored
-
Nico Weber authored
This reverts commit 4cf98f97. The test fails on mac bots, see comments on https://reviews.llvm.org/D122820 Also reverts follow-ups eb920989 and 861c189d.
-
David Green authored
The WideningBaseCost is always 0. This removes it to clean up the code.
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D122999
-
Dávid Bolvanský authored
-
Kazu Hirata authored
-
Dávid Bolvanský authored
-
Louis Dionne authored
-
Vladislav Khmelevsky authored
Read static relocs on the same address, as dynamic in order to update constant island data address properly. Differential Revision: https://reviews.llvm.org/D122100
-
- Apr 03, 2022
-
-
Kiran Chandramohan authored
Revert "[Flang][OpenMP] Add semantic check for OpenMP Private, Firstprivate and Lastprivate clauses." This reverts commit a2ca6bbd. D93213 performs some checks to ensure that variables that appear in statement functions are not in privatisation clauses. The point at which this check is currently performed, there can be misparses that cause more constructs to be identified as statement functions. This can lead to various kinds of errors, hence reverting. This revert hopefully fixes: https://github.com/llvm/llvm-project/issues/54477 https://github.com/llvm/llvm-project/issues/54161 https://github.com/llvm/llvm-project/issues/54163 Reviewed By: shraiysh Differential Revision: https://reviews.llvm.org/D122650
-
Luboš Luňák authored
Just like the non-gui listing already does.
-
Luboš Luňák authored
-
Luboš Luňák authored
It is the PC line, selected or not, that gets the blue-background highlight. Without this, a keyword like 'bool' got black background if the line wasn't selected. And the blue-background highlight is handled by OutputColoredStringTruncated(), so no point in setting it explicitly in the calling code.
-
Luboš Luňák authored
-
Kazu Hirata authored
This reverts commit 0fe01a9346658c0955b68b123f2b470b018114b1. The commit caused build failures like: llvm/lib/Support/Debug.cpp:65:3: error: ‘setCurrentDebugTypes’ was not declared in this scope; did you mean ‘setCurrentDebugType’?
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
Reviewed By: Mordante, var-const, #libc Spies: sstefan1, libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D122002
-
Kazu Hirata authored
-