- Feb 24, 2017
-
-
Rui Ueyama authored
llvm-svn: 296074
-
Richard Smith authored
To simplify this, convert SpecialMemberOverloadResult to a value type. llvm-svn: 296073
-
Rui Ueyama authored
llvm-svn: 296072
-
Kamil Rytarowski authored
Summary: NetBSD 7.99.62 introduced Debug Registers interface similar to the FreeBSD one. This interface will land NetBSD-8.0. Introduce support for this interface in Register Context NetBSD x86_64 unconditionally as older versions of NetBSD will not be supported. This change allows to reduce diff with other ports and remove local copy of the RegisterInfos_x86_64.h content. NetBSD Register Context for 32-bit x86 support will be added later. Sponsored by <The NetBSD Foundation> Reviewers: labath, joerg, emaste, clayborg Reviewed By: labath, clayborg Subscribers: #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D30287 llvm-svn: 296071
-
Kamil Rytarowski authored
Summary: NetBSD 8.0 will ship with accept4(2) in libc wrapping paccept(2). This change reduces needless difference with other platforms. Older versions of NetBSD will not be supported. No functional change. Sponsored by <The NetBSD Foundation> Reviewers: joerg, emaste, labath, clayborg Reviewed By: emaste, labath, clayborg Subscribers: #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D30288 llvm-svn: 296070
-
Xin Tong authored
LoopUnswitch/simplify-with-nonvalness.ll is the test case for this. The LIC has 2 users and deleting the 1st user when it can be simplified invalidated the iterator for the 2nd user. llvm-svn: 296069
-
Richard Smith authored
specification for an implicit special member. llvm-svn: 296068
-
Richard Smith authored
some of the repetition. llvm-svn: 296067
-
Douglas Yung authored
compiler is run in a mode where the default C++ standard is newer than C++03. The reason is because one of the warnings checked is only produced when the compiler is using C++03 or lower. This change fixes this problem as well as adds explicit run lines to run the test in C++03 and C++11 modes. llvm-svn: 296066
-
Adam Nemet authored
This is based on Justin's testcase and checking whether BFI is not populated in case hotness is off. This is a patch meant on top of Justin's patch to enable Machine opt-remarks in the AsmPrinter (http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20170130/426595.html) Differential Revision: https://reviews.llvm.org/D29837 llvm-svn: 296065
-
Michael Kuperstein authored
llvm-svn: 296064
-
Hans Wennborg authored
It caused PR31864. There is a patch in progress to fix that, but let's revert in the meantime. llvm-svn: 296063
-
Vedant Kumar authored
Fix the fact that we don't assign profile counters to constructors in classes with virtual bases, or constructors with variadic parameters. Differential Revision: https://reviews.llvm.org/D30131 llvm-svn: 296062
-
Justin Bogner authored
Forgot to commit this with the change. llvm-svn: 296061
-
Michael Kuperstein authored
Splitting critical edges when one of the source edges is an indirectbr is hard in general (because it requires changing the memory the indirectbr reads). But if a block only has a single indirectbr predecessor (which is the common case), we can simulate splitting that edge by splitting the destination block, and retargeting the *direct* branches. This is motivated by the use of computed gotos in python 2.7: PyEval_EvalFrame() ends up using an indirect branch with ~100 successors, and passing a constant to each of those. Since MachineSink can't break indirect critical edges on demand (and doing this in MIR doesn't look feasible), this causes us to emit about ~100 defs of registers containing constants, which we in the predecessor block, where only one of those constants is used in each successor. So, at each computed goto, we needlessly spill about a 100 constants to stack. The end result is that a clang-compiled python interpreter can be about ~2.5x slower on a simple python reduction loop than a gcc-compiled interpreter. Differential Revision: https://reviews.llvm.org/D29916 llvm-svn: 296060
-
Ahmed Bougacha authored
While there, switch to the explicit ctor. llvm-svn: 296059
-
Ahmed Bougacha authored
Justin added support for DISubprogram locs in r295531 and r296052. Use that instead of no-loc for constants and arguments. llvm-svn: 296058
-
Ahmed Bougacha authored
Since r296047, we're able to return early on failures. Don't track whether we succeeded. llvm-svn: 296057
-
David L. Jones authored
This patch moves helper functions that are CPU-specific out of Driver.cpp and to separate implementation files. The new files are named for the architecture, e.g. ARMArch.cpp. The next step after this will be to move OS-specific code, which I expect will include many of the tool implementations, to similarly separate files. Some CPU-specific functions are not being moved just yet. In cases where the only caller is the platform-specific tools, I plan to move them together. An example is Hexagon, where the only caller of the architecture-specific functions are the tools themselves. (I'm happy to revise this choice, it just seems like less churn to me.) This does mean that some functions which were previously static are now exposed through the library header Driver.h. Reviewers: rsmith, javed.absar Subscribers: aemerson, danalbert, srhines, dschuff, jyknight, nemanjai, mgorny, cfe-commits Differential Revision: https://reviews.llvm.org/D30315 llvm-svn: 296056
-
Adrian McCarthy authored
llvm-svn: 296055
-
Alex Lorenz authored
This is a preparation clean-up commit around the code that emits block copy/dispose routines. llvm-svn: 296054
-
Justin Bogner authored
Add an optimization remark to asm-printer that summarizes the number of instructions emitted per function. llvm-svn: 296053
-
Justin Bogner authored
DiagnosticInfo switched from DebugLoc to DiagnosticLocation in r295519, update these subclasses to match. llvm-svn: 296052
-
Evgeniy Stepanov authored
llvm-svn: 296051
-
Evgeniy Stepanov authored
Before this, MSan poisoned exactly one element of any array alloca, even if the number of elements was zero. llvm-svn: 296050
-
Adrian McCarthy authored
This allows the ability to call IPDBSession::getGlobalScope with a NativeSession and to then query it for some basic fields from the PDB's InfoStream. Note that the symbols now have non-const references back to the Session so that NativeRawSymbol can access the PDBFile through the Session. Differential Revision: https://reviews.llvm.org/D30314 llvm-svn: 296049
-
Alex Lorenz authored
routines for objects that are captured with the __unsafe_unretained ownership qualifier This is a preparation commit that improves code-coverage in code that emits block copy/dispose routines. llvm-svn: 296048
-
Ahmed Bougacha authored
We were stopping the translation of the parent block when the translation of an instruction failed, but we were still trying to translate the other blocks of the parent function. Don't do that. llvm-svn: 296047
-
Ahmed Bougacha authored
This is the compromise between having a per-function IRTranslator and manually managing the per-function state. llvm-svn: 296046
-
Adrian Prantl authored
llvm-svn: 296045
-
Xin Tong authored
llvm-svn: 296043
-
Bob Haarman authored
Summary: Creates bitcode files suitable for use with ThinLTO, then checks that the linker can build an executable from them. Reviewers: ruiu, pcc Reviewed By: pcc Subscribers: mehdi_amini, Prazek, llvm-commits Differential Revision: https://reviews.llvm.org/D30277 llvm-svn: 296042
-
Xin Tong authored
Summary: In case we do not know what the condition is in an unswitched loop, but we know its definitely NOT a known constant. We can perform simplifcations based on this information. Reviewers: sanjoy, hfinkel, chenli, efriedma Reviewed By: efriedma Subscribers: david2050, llvm-commits, mzolotukhin Differential Revision: https://reviews.llvm.org/D28968 llvm-svn: 296041
-
Alex Lorenz authored
routines for variables that are const-captured This is a preparation commit that improves code-coverage in code that emits block copy/dispose routines. llvm-svn: 296040
-
Adam Nemet authored
functions llvm-svn: 296039
-
Adam Nemet authored
Anything using hotness should be using ORE. llvm-svn: 296038
-
Adam Nemet authored
These are only used when emitting remarks without ORE directly using the free functions emitOptimizationRemark*. llvm-svn: 296037
-
Bryant Wong authored
This commit provides `zip_{first,shortest}` with the standard member types and methods expected of iterators (e.g., `difference_type`), in order for zip to be used with other adaptors, such as `make_filter_range`. Support for reverse iteration has also been added. Differential Revision: https://reviews.llvm.org/D30246 llvm-svn: 296036 -
Sanjoy Das authored
Summary: The helper will be used in a later change. This change itself is NFC since the only user of this new function is its unit test. Reviewers: majnemer, efriedma Reviewed By: efriedma Subscribers: efriedma, mcrosier, llvm-commits Differential Revision: https://reviews.llvm.org/D30184 llvm-svn: 296035
-
Benjamin Kramer authored
llvm-svn: 296034
-