This project is mirrored from https://github.com/llvm/llvm-project.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
- Oct 28, 2021
-
-
Douglas Yung authored
This test was failing on the PS4 bot because the test attempts to link, but the PS4 platform requires an external linker that is not present, causing the test to fail. This should get the PS4 bot green again.
-
Nico Weber authored
WordLiteralSection dedupes literals by content. WordLiteralInputSection::getOffset() used to read a literal at the passed-in offset and look up this value in the deduping map to find the offset of the deduped value. But it's possible that (e.g.) a 16-byte literal's value is accessed 4 bytes in. To get the offset at that address, we have to get the deduped value at offset 0 and then apply the offset 4 to the result. (See also WordLiteralSection::finalizeContents() which fills in those maps.) Only a problem on arm64 because in x86_64 the offset is part of the instruction instead of a separate ARM64_RELOC_ADDEND relocation. (See bug for more details.) Fixes PR51999. Differential Revision: https://reviews.llvm.org/D112584
-
Alexandre Rames authored
This was deprecated as part of a54f4eae. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D112638
-
Sam Clegg authored
Differential Revision: https://reviews.llvm.org/D112590
-
Kirill Bobyrev authored
Doing otherwise leads to crashing. Way to reproduce: open "gmock/gmock.h" in the LLVM source tree. Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D112608
-
Michael Jones authored
Add an implementation for strdup. Reviewed By: lntue, sivachandra Differential Revision: https://reviews.llvm.org/D111584
-
Michael Jones authored
malloc, calloc, realloc, and free are all functions that other libc functions depend on, but are pulled from external sources, instead of having an internal implementation. This patch adds a way to include functions like that as entrypoints in the list of external entrypoints, and includes the malloc functions using this new path. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112104
-
Michael Liao authored
- Both LLVM_REQUIRES_RTTI and LLVM_REQUIRES_EH are internal flags that individual targets can use to force RTTI/EH. Turning off LLVM_REQUIRES_RTTI should honor if that variable is set explicitly for an individual target.
-
Fangrui Song authored
For `InputSection` `.foo`, its `InputBaseSection::{areRelocsRela,firstRelocation,numRelocation}` basically encode the information of `.rel[a].foo`. However, one uint32_t (the relocation section index) suffices. See the implementation of `relsOrRelas`. This change decreases sizeof(InputSection) from 184 to 176 on 64-bit Linux. The maximum resident set size linking a large application (1.2G output) decreases by 0.39%. Differential Revision: https://reviews.llvm.org/D112513
-
Roman Lebedev authored
It's a no-op, no overflow happens ever: https://alive2.llvm.org/ce/z/Zw89rZ While generally i don't like such hacks, we have a very good reason to do this: here we are expanding a run-time correctness check for the vectorization, and said `umul_with_overflow` will not be optimized out before we query the cost of the checks we've generated. Which means, the cost of run-time checks would be artificially inflated, and after https://reviews.llvm.org/D109368 that will affect the minimal trip count for which these checks are even evaluated. And if they aren't even evaluated, then the vectorized code certainly won't be run. We could consider doing this in IRBuilder, but then we'd need to also teach `CreateExtractValue()` to look into chain of `insertvalue`'s, and i'm not sure there's precedent for that. Refs. https://reviews.llvm.org/D109368#3089809
-
Fangrui Song authored
Similar to D100544 for AArch64. Reviewed By: arichardson Differential Revision: https://reviews.llvm.org/D112592
-
Kazu Hirata authored
This function seems to be unused for at least one year.
-
Kazu Hirata authored
This field seems to be unused for at least one year.
-
Kazu Hirata authored
This field seems to be unused for at least one year.
-
Dmitry Vyukov authored
Commit D112602 ("sanitizer_common: tighten on_print hook test") changed fopen to open in this test. fopen created the file if if does not exist, but open does not. This was unnoticed during local testing because lit is not hermetic and reuses files from previous runs, but it started failing on bots. Fix the open call. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D112630
-
- Oct 27, 2021
-
-
Mikhail Dvorskiy authored
Reviewed By: nadiasvertex, ldionne Differential Revision: https://reviews.llvm.org/D112125
-
Alexey Bataev authored
Gathered loads/extractelements/extractvalue instructions should be checked if they can represent a vector reordering node too and their order should ve taken into account for better graph reordering analysis/ Also, if the gather node has reused scalars, they must be reordered instead of the scalars themselves. Differential Revision: https://reviews.llvm.org/D112454
-
Raphael Isemann authored
-
Djordje Todorovic authored
-
Aaron Ballman authored
When reaching the end of a function body, we need to ensure that the ExitFunctionBodyRAII object is destroyed before we pop the declaration context for the function. Exiting the function body causes us to handle immediate invocations, which involves template transformations that need to know the correct type for this. This addresses PR48235.
-
Gabor Marton authored
We can reuse the "adjustment" handling logic in the higher level of the solver by calling `State->assume`. Differential Revision: https://reviews.llvm.org/D112296
-
David Sherwood authored
This patch changes the definition of getStepVector from: Value *getStepVector(Value *Val, int StartIdx, Value *Step, ... to Value *getStepVector(Value *Val, Value *StartIdx, Value *Step, ... because: 1. it seems inconsistent to pass some values as Value* and some as integer, and 2. future work will require the StartIdx to be an expression made up of runtime calculations of the VF. In widenIntOrFpInduction I've changed the code to pass in the value returned from getRuntimeVF, but the presence of the assert: assert(!VF.isScalable() && "scalable vectors not yet supported."); means that currently this code path is only exercised for fixed-width VFs and so the patch is still NFC. Differential revision: https://reviews.llvm.org/D111882
-
Roman Lebedev authored
Refs. https://reviews.llvm.org/D109368#3089809
-
Roman Lebedev authored
There is no guarantee that the constant is on RHS here, we have to handle both cases. Refs. https://reviews.llvm.org/D109368#3089809
-
Roman Lebedev authored
While we could emit such a tautological `select`, it will stick around until the next instsimplify invocation, which may happen after we count the cost of this redundant `select`. Which is precisely what happens with loop vectorization legality checks, and that artificially increases the cost of said checks, which is bad. There is prior art for this in `IRBuilderBase::CreateAnd()`/`IRBuilderBase::CreateOr()`. Refs. https://reviews.llvm.org/D109368#3089809
-
Roman Lebedev authored
-
Gabor Marton authored
Initiate the reorganization of the equality information during symbol simplification. E.g., if we bump into `c + 1 == 0` during simplification then we'd like to express that `c == -1`. It makes sense to do this only with `SymIntExpr`s. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D111642
-
OCHyams authored
D109833 makes the flags `--builder` and `--binary` mutually exclusive, which caused some regression tests to fail. Add a new substitution `%dexter_regression_base` that doesn't include the `--builder`, `--cflags` or `--ldflags` flags and use that for tests that use the `--binary` flag. Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D112624
-
Alexey Bataev authored
This reverts commit f719b794 to fix instability in tests.
-
AndreyChurbanov authored
-
AndreyChurbanov authored
According to dlsym description, the value of symbol could be NULL, and there is no error in this case. Thus dlerror will also return NULL in this case. We need to check the value returned by dlerror before printing it. Differential Revision: https://reviews.llvm.org/D112174
-
Nico Weber authored
-
Nico Weber authored
lld/mac should be stable enough to use it as host linker. I've been using `use_lld=true` in my local args.gn for many months now and it works fine (and links much faster than ld64). Differential Revision: https://reviews.llvm.org/D112622
-
Nico Weber authored
-
Nico Weber authored
It seems to build fine (even though some tests fail), so might as well let the bots build it. If it turns out to break a lot, we can always turn it back off. Differential Revision: https://reviews.llvm.org/D112620
-
Jeremy Morse authored
Over in e7084cea the InstrRefBasedLDV class grew a MachineRegisterInfo pointer to lookup register sizes -- however, that field wasn't initialized in the corresponding unit tests. This patch initializes it! Fixes a buildbot failure reported on D112006
-
Kerry McLaughlin authored
PromoteIntRes_MLOAD always sets the extension type to `EXTLOAD`, which results in a sign-extended load. If the type returned by getExtensionType() for the load being promoted is something other than `NON_EXTLOAD`, we should instead pass this to getMaskedLoad() as the extension type. Reviewed By: CarolineConcatto Differential Revision: https://reviews.llvm.org/D112320
-
Dmitry Vyukov authored
The new tsan runtime does not support arbitrary forms of recursing into the runtime from hooks. Disable instrumentation of the hook and use write instead of fwrite (calls malloc internally). The new version still recurses (write is intercepted), but does not fail now (the issue at hand was malloc). Depends on D112601. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D112602
-
Dmitry Vyukov authored
Gtest's EXPECT calls whole lot of libc functions (mem*, malloc) even when EXPECT does not fail. This does not play well with tsan runtime unit tests b/c e.g. we call some EXPECTs with runtime mutexes locked. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D112601
-