- Oct 27, 2021
-
-
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
-
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
-
Nico Weber authored
Needed by tests after 30a3652b.
-
Nico Weber authored
No behavior change. Differential Revision: https://reviews.llvm.org/D112543
-
Nico Weber authored
And make it final while here. No behavior change. Differential Revision: https://reviews.llvm.org/D112542
-
Caroline Concatto authored
Widens the result and first input vector because they have the same size. The subvector to be inserted is widened in the operand widen function. Differential Revision: https://reviews.llvm.org/D112187
-
Nikita Popov authored
BasicAA currently tries to determine that the offset is positive by checking whether all variable indices are positive based on known bits, multiplied by a positive scale. However, this is incorrect if the scale multiplication might overflow. In the modified test case the original value is positive, but may be negative after a left shift. Fix this by converting known bits into a constant range and reusing the range-based logic, which handles overflow correctly. Differential Revision: https://reviews.llvm.org/D112611
-
djtodoro authored
Catch that llvm-dwarfdump detected an overflow in statistics. Differential Revision: https://reviews.llvm.org/D110621
-
Daniel Kiss authored
This reverts commit da1d1a08.
-
Jan Svoboda authored
This test was failing on GreenDragon.
-
Caitlyn Cano authored
It is not complete and disabled by default, but it can be still useful. Differential Revision: https://reviews.llvm.org/D111886
-
Sanjay Patel authored
As noted in D112464, a pre-AVX target may not be able to fold an under-aligned vector load into another op, so we shouldn't report that as a load folding candidate. I only found one caller where this would make a difference -- combineCommutableSHUFP() -- so that's where I added a test to show the (minor) regression. Differential Revision: https://reviews.llvm.org/D112545
-
Kirill Bobyrev authored
-
Michał Górny authored
The recommonmark package is no longer required since all the documents have been converted to .rst. Remove the related support code from docs/conf.py. Differential Revision: https://reviews.llvm.org/D112612
-
Matt authored
Combine FADD and FMUL intrinsics into FMA when the result of the FMUL is an FADD operand with one only use and both use the same predicate. Differential Revision: https://reviews.llvm.org/D111638
-
Alexandros Lamprineas authored
This change introduces subtarget features to predicate certain instructions and system registers that are available only on 'A' profile targets. Those features are not present when targeting a generic CPU, which is the default processor. In other words the generic CPU now means the intersection of 'A' and 'R' profiles. To maintain backwards compatibility we enable the features that correspond to -march=armv8-a when the architecture is not explicitly specified on the command line. References: https://developer.arm.com/documentation/ddi0600/latest Differential Revision: https://reviews.llvm.org/D110065
-
Alexey Bataev authored
Need to emit select(cmp) instructions for poison-safe forms of select ops. Currently alive reports that `Target is more poisonous than source` for operations we generating for such instructions. https://alive2.llvm.org/ce/z/FiNiAA Differential Revision: https://reviews.llvm.org/D112562
-
Vignesh Balasubramanian authored
This is a continuation of the review: https://reviews.llvm.org/D100183 It contains routines that retrieve OpenMP ICV values for OMPD. Reviewed By: @hbae Differential Revision: https://reviews.llvm.org/D100184
-
Pavel Labath authored
Use expect_expr/var_path instead of regular expect and substring checks
-
Michał Górny authored
Refactor ConnectionFileDescriptor to improve code reuse for different types of sockets. Unify method naming. While at it, remove some (now-)dead code from Socket. Differential Revision: https://reviews.llvm.org/D112495
-
Nikita Popov authored
Make the range check more precise by calculating the range of potentially accessed bytes for both accesses and checking whether their intersection is empty. In that case there can be no overlap between the accesses and the result is NoAlias. This is more powerful than the previous approach, because it can deal with sign-wrapped ranges. In the test case the original range is [-1, INT_MAX] but becomes [0, INT_MIN] after applying the offset. This is a wrapping range, so getSignedMin/getSignedMax will treat it as a full range. However, the range excludes the elements [INT_MIN+1, -1], which is enough to prove NoAlias with an access at offset -1. Differential Revision: https://reviews.llvm.org/D112486
-
Roman Lebedev authored
-
Eugene Zhulenev authored
Differential Revision: https://reviews.llvm.org/D112609
-
Florian Hahn authored
-
Vassil Vassilev authored
Many thanks to @thakis for pointing this out. That commit should have been a part of https://reviews.llvm.org/D107049
-
Mikhail Dvorskiy authored
[pstl] A hot compilation fix for MacOS, OpenMP backend; + full qualified names for some internal functions Reviewed By: nadiasvertex, ldionne Differential Revision: https://reviews.llvm.org/D112528
-
Sam McCall authored
This replaces the test removed in 51be7061 It is more principled and tests more critical cases: a crash while parsing. We need two pieces of plumbing: - a way to re-enable the crashing #pragmas via a flag, to test parse crashes - a bit of reshuffling around ASTWorker execution so that we set up the crash handler in both sync/async modes. Sync mode is useful for debugging, so I tested both. Differential Revision: https://reviews.llvm.org/D112565
-
Kirill Bobyrev authored
This is a temporary hack to disable diagnostics for system headers. As of right now, IncludeCleaner does not handle the Standard Library correctly and will report most system headers as unused because very few symbols are defined in top-level system headers. This will eventually be fixed, but for now we are aiming for the most conservative approach with as little false-positive warnings as possible. After the initial prototype and core functionality is polished, I will turn back to handling the Standard Library as it requires custom logic. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D112571
-
Salman Javed authored
The string table `DefaultIgnoredParameterTypeSuffixes` has a typo: `ForwardIt` is mistyped as `FowardIt`. Correct typo and add test coverage. Differential Revision: https://reviews.llvm.org/D112596
-
Pavel Labath authored
-
Jay Foad authored
Add an optional bool RemoveDeadValNo argument to the removeSegment(iterator) overload, for consistency with the other overloads. This gives clients a way to remove dead valnos while also getting an updated iterator returned (in the manner of vector::erase). Use this to clean up some inefficient code in LiveIntervals::repairOldRegInRange. NFC. Differential Revision: https://reviews.llvm.org/D110560
-