- Jan 30, 2020
-
-
Nico Weber authored
-
Gabor Horvath authored
This only works with regular LTO for now. Differential Revision: https://reviews.llvm.org/D73597
-
Craig Topper authored
The constrained fcmp intrinsics don't allow the TRUE/FALSE predicates. Using them will assert. To workaround this I'm emitting the old X86 specific intrinsics that were never removed from the backend when we switched to using fcmp in IR. We have no way to mark them as being strict, but that's true of all target specific intrinsics so doesn't seem like we need to solve that here. I've also added support for selecting between signaling and quiet. Still need to support SAE which will require using a target specific intrinsic. Also need to fix masking to not use an AND instruction after the compare. Differential Revision: https://reviews.llvm.org/D72906
-
Craig Topper authored
We seem to be inheriting the cost from sse4.1. But if we have 256-bit registers we should be able to do this with just one extract to split the 16i16 and two v8i16->v8i32 operations so our cost should be 3 not 4. Differential Revision: https://reviews.llvm.org/D73646
-
aartbik authored
Reviewers: nicolasvasilache, andydavis1, dcaballe Reviewed By: andydavis1, dcaballe Subscribers: dcaballe, merge_guards_bot, mgorny, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, liufengdb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73593
-
Matt Arsenault authored
This is passed to legalizeCustom, but not intrinsic. Also remove the MRI argument, since you can get that from the MachineIRBuilder. I'm not sure why MachineIRBuilder has a private observer member, and this is passed separately.
-
Yuanfang Chen authored
Summary: `.cmd` is interpreted as script in windows console. Reviewers: davidxl, rnk Reviewed By: davidxl Differential Revision: https://reviews.llvm.org/D73327
-
Matt Arsenault authored
-
Yuanfang Chen authored
Summary: Use io.open instead of codecs.open according to here https://stackoverflow.com/questions/10971033/backporting-python-3-openencoding-utf-8-to-python-2 Add `u` prefix to string literal to make them utf-8 in python2. Reviewers: anemet, serge-sans-paille Reviewed by: serge-sans-paille Differential Revision: https://reviews.llvm.org/D73011
-
Jonas Devlieghere authored
This patch adds an overload to serialize and deserialize char** types. This is necessary for things like the SBLaunchInfo ctor. We serialize the array length followed by each individual item.
-
Kostya Kortchinsky authored
Summary: A couple of seemingly innocuous changes ended up having a large impact on the 32-bit performance. I still have to make those configurable at some point, but right now it will have to do. Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D73658
-
Jonas Devlieghere authored
There's no need to go through StringRef to convert a SmallString to a std::string, the conversion operator can create a std::string directly. Differential revision: https://reviews.llvm.org/D73640
-
Siva Chandra Reddy authored
Some of the existing utils in utils/UnitTest/Test.h have been moved to this new library. Reviewers: abrachet, gchatelet Tags: #libc-project Differential Revision: https://reviews.llvm.org/D73530
-
Cameron McInally authored
Rename Destructive enumerator in preparation for a larger set of patches to support prefixing destructive oeprations with MOVPRFX. Differential Revision: https://reviews.llvm.org/D73212
-
Shoaib Meenai authored
I forgot to add parentheses in fa44d72b, though I prefer the expanded form anyway.
-
Amara Emerson authored
For pow2 constants we should use G_SHL for pattern matching (and perf) purposes later. Vector support not yet implemented. Differential Revision: https://reviews.llvm.org/D73659
-
Siva Chandra Reddy authored
Implicit conversion from llvm::StringRef to std::string was made explicit in the above commit.
-
LLVM GN Syncbot authored
-
Stella Stamenova authored
-
Derek Schuff authored
This reverts commit a928d127. It seems to cause issues with big-endian architectures.
-
Jessica Paquette authored
When the bit is <= 32, we have to use the W register variant for TB(N)Z. This is because of the way the instruction is encoded. Differential Revision: https://reviews.llvm.org/D73660
-
LLVM GN Syncbot authored
-
Hiroshi Yamauchi authored
[Loads] Handle simple cases with same base pointer with constant offsets in FindAvailableLoadedValue when AA is null. Summary: This will help with devirtualization (store forwarding with vtable pointers in the presence of other stores into members in the constructor.) During inlining, we don't have AA. Reviewers: davidxl Subscribers: mgorny, Prazek, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71307
-
Cameron McInally authored
Some housekeeping for the DestructiveInstType enum before a larger set of patches to support prefixing destructive oeprations with MOVPRFX. Differential Revision: https://reviews.llvm.org/D73141
-
Victor Huang authored
A previous patch should have added pld and pstd and any support code in the backend that is required for prefixed load and store type operations. This patch adds a number of additional prefixed load and store type instructions for the future CPU. Differential Revision: https://reviews.llvm.org/D72577
-
Benjamin Kramer authored
StrEq has some magic inside that should do the explicit conversion from StringRef to std::string, but apparently this doesn't work with GCC 5. Just use EXPECT_EQ, it does the same thing with less magic.
-
Sanjay Patel authored
-
Martin Storsjö authored
This fixes using non-default locales, which currently can crash when e.g. formatting numbers. Within the localeconv_l function, the per-thread locale is temporarily changed with __libcpp_locale_guard, then localeconv() is called, returning an lconv * struct pointer. When localeconv_l returns, the __libcpp_locale_guard dtor restores the per-thread locale back to the original. This invalidates the contents of the earlier returned lconv struct, and all C strings that are pointed to within it are also invalidated. Thus, to have an actually working localeconv_l function, the function needs to allocate some sort of storage for the returned contents, that stays valid for as long as the caller needs to use the returned struct. Extend the libcxx/win32 specific locale_t class with storage for a deep copy of a lconv struct, and change localeconv_l to take a reference to the locale_t, to allow it to store the returned lconv struct there. This works fine for libcxx itself, but wouldn't necessarily be right for a caller that uses libcxx's localeconv_l function. This fixes around 11 of libcxx's currently failing tests on windows. Differential Revision: https://reviews.llvm.org/D69505
-
Matt Arsenault authored
Irritatingly the failure output is different in release vs. debug because of the legality check is removed without asserts, so a register ends up constrained only in release builds.
-
Sean Silva authored
Summary: This will help catch improper use of the MLIR API's. In particular, this catches an error that was manifesting as nondeterministic assertion failures (the nondeterminism was due to the failure happening only when the StorageUniquer's DenseMap's probing happened to compare two specific keys). No test. The fact that all the existing tests pass with this additional invariant gives confidence that it is correct/useful. Differential Revision: https://reviews.llvm.org/D73645
-
Sterling Augustine authored
Summary: gnu addr2line prints DWARF line table discriminators like so: <file>:<line> (discriminator <Number>) This matches that behavior. Document how and when --output-style=GNU prints discriminators Add test for new GNU-style discriminator printing. Reviewers: rupprecht, labath, jhenderson Subscribers: aprantl, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73318
-
Shoaib Meenai authored
I missed the NOT in the condition; this part is actually responsible for passing LLVM_ENABLE_RUNTIMES to the per-target runtime configures, which in turn makes them actually build. I'll put up a more general solution for review, but restore this in the meantime to fix the runtimes build.
-
Nikita Popov authored
For the icmp eq (add X, C1), C2 => icmp eq X, C2-C1 icmp eq (sub C1, X), C2 => icmp eq X, C1-C2 folds, this allows C1 to be non-splat and contain undefs. C2 is still splat, due to the structure of the code. This is to address the remaining part of the regression in D73411, where demanded element analysis replaces some elements with undef. Differential Revision: https://reviews.llvm.org/D73647 -
Nikita Popov authored
-
Amara Emerson authored
[GlobalISel][IRTranslator] Follow convention and put constant offset of getelementptr arithmetic on RHS. We were needlessly putting known constant values on the LHS of a G_MUL, which is suboptimal. Differential Revision: https://reviews.llvm.org/D73650
-
Nico Weber authored
-
Nico Weber authored
-
Huihui Zhang authored
Buildbot failure, revert first while looking at the issue. This reverts commit a5a4a47d.
-
Huihui Zhang authored
There looks to be buildbot failure related. This reverts commit 8bb6c8a2.
-
Huihui Zhang authored
There looks to be buildbot failure related. This reverts commit 91618d94.
-