- Jun 25, 2020
-
-
Eduardo Caldas authored
Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82310
-
Sanjay Patel authored
fabs(X) * fabs(Y) --> fabs(X * Y) fabs(X) / fabs(Y) --> fabs(X / Y) If both operands of fmul/fdiv are positive, then the result must be positive. There's a NAN corner-case that prevents removing the more specific fold just above this one: fabs(X) * fabs(X) -> X * X That fold works even with NAN because the sign-bit result of the multiply is not specified if X is NAN. We can't remove that and use the more general fold that is proposed here because once we convert to this: fabs (X * X) ...it is not legal to simplify the 'fabs' out of that expression when X is NAN. That's because fabs() guarantees that the sign-bit is always cleared - even for NAN values. So this patch has the potential to lose information, but it seems unlikely if we do the more specific fold ahead of this one. Differential Revision: https://reviews.llvm.org/D82277
-
David Green authored
-
Diego Caballero authored
Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D82515
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Fix implicit include dependencies in source files.
-
Simon Pilgrim authored
Fix implicit include dependencies in source files and replace legacy AliasAnalysis typedef with AAResults where necessary.
-
David Green authored
This adds code to lower f32 to f16 fp_trunc's using a pair of MVE VCVT instructions. Due to v4f16 not being legal, fp_round are often split up fairly early. So this reconstructs the vcvt's from a buildvector of fp_rounds from two vector inputs. Something like: BUILDVECTOR(FP_ROUND(EXTRACT_ELT(X, 0), FP_ROUND(EXTRACT_ELT(Y, 0), FP_ROUND(EXTRACT_ELT(X, 1), FP_ROUND(EXTRACT_ELT(Y, 1), ...) It adds a VCVTN node to handle this, which like VMOVN or VQMOVN lowers into the top/bottom lanes of an MVE instruction. Differential Revision: https://reviews.llvm.org/D81139 -
Victor Campos authored
Summary: LDRAA and LDRAB in their writeback variant should softfail when the same register is used as result and base. This patch adds a custom decoder that catches such case and emits a warning when it occurs. Differential Revision: https://reviews.llvm.org/D82541
-
Thomas Preud'homme authored
Give up folding an expression if the fragment of one of the operands would require laying out a fragment already being laid out. This prevents hitting an infinite recursion when a fill size expression refers to a later fragment since computing the offset of that fragment would require laying out the fill fragment and thus computing its size expression. Reviewed By: echristo Differential Revision: https://reviews.llvm.org/D79570
-
Xing GUO authored
-
Zarko Todorovski authored
Summary: This NFC patch adds a diagram of the AIX ABI stack frame layout. Based on https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/assembler/idalangref_runtime_process.html Reviewers: sfertile, cebowleratibm, hubert.reinterpretcast, Xiangling_L Reviewed By: sfertile Subscribers: wuzish, nemanjai, hiraditya, kbarton, llvm-commits Tags: #powerpc, #llvm Differential Revision: https://reviews.llvm.org/D82408
-
Sanjay Patel authored
As requested in D81416, I'm deleting the file that I added with: rGdf794431
-
Pavel Labath authored
This function was modifying and returning pointers to static storage, which meant that any two accesses to different Scalar objects could potentially race (depending on which types the objects were storing and the host endianness). In the new version the user is responsible for providing a buffer into which this method will store its binary representation. The main caller (RegisterValue::GetBytes) already has one such buffer handy, so this did not require any major rewrites. To make that work, I've needed to mark the RegisterValue value buffer mutable -- not an ideal solution, but definitely better than modifying global storage. This could be further improved by changing RegisterValue::GetBytes to take a buffer too.
-
Guillaume Chatelet authored
The main interface has been migrated to Align already but a few backends where broadening the type from Align to MaybeAlign. This patch makes sure all implementations conform to the public API. Differential Revision: https://reviews.llvm.org/D82465
-
Simon Pilgrim authored
Fix implicit include dependencies in source files and replace legacy AliasAnalysis typedef with AAResults where necessary.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Guillaume Chatelet authored
This patch replaces D69249. This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Differential Revision: https://reviews.llvm.org/D82307
-
Valentin Clement authored
Summary: Previously OMPD_unknown was last item in the Directive enumeration and its position was used in various comparison and assertion. With the new Directive enumeration, this should be change with llvm::omp::Directive_enumSize. This patch fix two place where it was not done in D81736. Reviewers: vdmitrie, jdoerfert, jdenny Reviewed By: jdoerfert Subscribers: yaxunl, guansong, sstefan1, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82518
-
Florian Hahn authored
Non-removable MemoryDefs can still eliminate other defs. Update the isRemovable checks to only candidates for removal.
-
Aaron Ballman authored
attribute with no arguments provided.
-
Frederik Gossen authored
Eliminate the subsequent applications of `size_to_index` and `index_to_size`. Differential Revision: https://reviews.llvm.org/D82083
-
Alexey Bataev authored
Summary: Added support for dynamic memory allocation for globalized variables in case if execution of target regions in parallel is required. Reviewers: jdoerfert Subscribers: jholewinski, yaxunl, guansong, sstefan1, cfe-commits, caomhin Tags: #clang Differential Revision: https://reviews.llvm.org/D82324
-
David Green authored
This file has grown quite large and could do with being split up. This splits away the load/store + cast tests into a separate file. Some masked load/store + cast tests have been added too, along with some extra load/store + fpcast tests.
-
Frederik Gossen authored
Eliminate the subsequent applications of `index_to_size` and `size_to_index`. Differential Revision: https://reviews.llvm.org/D82082
-
Georgii Rymar authored
There is no reason to report an error in `printSectionHeaders()`, we can report a warning and continue dumping. This is what the patch does. Differential revision: https://reviews.llvm.org/D82462
-
Jeff Trull authored
In the process of running this check on a large codebase I found a number of limitations, and thought I would pass on my fixes for possible integration upstream: * Templated function call operators are not supported * Function object constructors are always used directly in the lambda body, even if their arguments are not captured * Placeholders with namespace qualifiers (std::placeholders::_1) are not detected * Lambda arguments should be forwarded to the stored function * Data members from other classes still get captured with this * Expressions (as opposed to variables) inside std::ref are not captured properly * Function object templates sometimes have their template arguments replaced with concrete types This patch resolves all those issues and adds suitable unit tests.
-
Tyker authored
Summary: NOTE: There is a mailing list discussion on this: http://lists.llvm.org/pipermail/llvm-dev/2019-December/137632.html Complemantary to the assumption outliner prototype in D71692, this patch shows how we could simplify the code emitted for an alignemnt assumption. The generated code is smaller, less fragile, and it makes it easier to recognize the additional use as a "assumption use". As mentioned in D71692 and on the mailing list, we could adopt this scheme, and similar schemes for other patterns, without adopting the assumption outlining. Reviewers: hfinkel, xbolva00, lebedev.ri, nikic, rjmccall, spatel, jdoerfert, sstefan1 Reviewed By: jdoerfert Subscribers: yamauchi, kuter, fhahn, merge_guards_bot, hiraditya, bollu, rkruppe, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D71739
-
Tyker authored
-
Florian Hahn authored
This was suggested in D72782 and brings the diagnostics more in line with how argument references are handled elsewhere. Reviewers: rjmccall, jfb, Bigcheese Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D82473
-
Sam Tebbs authored
This patch stops the sadd_sat and uadd_sat intrinsics from blocking tail predication. Differential revision: https://reviews.llvm.org/D82377
-
Florian Hahn authored
-
Simon Pilgrim authored
Ensure FPEnv.cpp includes FPEnv.h first to check for hidden dependencies.
-
Simon Pilgrim authored
Replace legacy AliasAnalysis typedef with AAResults where necessary.
-
Haojian Wu authored
Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D80981
-
Kadir Cetinkaya authored
Summary: Libclang was enforcing a singature on SourceManager::getLocalSLocEntry which isn't possible to satisfy as pointed out in https://reviews.llvm.org/D80681#inline-751438. This patch updates the libclang, hopefully without breaking API stability, to not rely on member signature. To enable changing the signature in D82498. Reviewers: sammccall, bkramer Subscribers: arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82532
-