- Jun 08, 2016
-
-
Sanjay Patel authored
llvm-svn: 272199
-
Reid Kleckner authored
Summary: This should have been a very simple change, but it was greatly complicated by the construction of new Decls during IR generation. In particular, we reconstruct the AST function type in order to get the implicit 'this' parameter into C++ method types. We also have to worry about FunctionDecls whose types are not FunctionTypes because CGBlocks.cpp constructs some dummy FunctionDecls with 'void' type. Depends on D21114 Reviewers: aprantl, dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D21141 llvm-svn: 272198
-
Reid Kleckner authored
Summary: Now DISubroutineType has a 'cc' field which should be a DW_CC_ enum. If it is present and non-zero, the backend will emit it as a DW_AT_calling_convention attribute. On the CodeView side, we translate it to the appropriate enum for the LF_PROCEDURE record. I added a new LLVM vendor specific enum to the list of DWARF calling conventions. DWARF does not appear to attempt to standardize these, so I assume it's OK to do this until we coordinate with GCC on how to emit vectorcall convention functions. Reviewers: dexonsmith, majnemer, aaboud, amccarth Subscribers: mehdi_amini, llvm-commits Differential Revision: http://reviews.llvm.org/D21114 llvm-svn: 272197
-
Sanjay Patel authored
llvm-svn: 272196
-
Evgeny Stupachenko authored
with user specified count has been applied. Summary: Previously SetLoopAlreadyUnrolled() set the disable pragma only if there was some loop metadata. Now it set the pragma in all cases. This helps to prevent multiple unroll when -unroll-count=N is given. Reviewers: mzolotukhin Differential Revision: http://reviews.llvm.org/D20765 From: Evgeny Stupachenko <evstupac@gmail.com> llvm-svn: 272195
-
Xinliang David Li authored
This is the preparation patch to port the analysis to new PM Differential Revision: http://reviews.llvm.org/D20560 llvm-svn: 272194
-
Sanjay Patel authored
llvm-svn: 272193
-
Tim Shen authored
Reviewers: iteratee Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D21087 llvm-svn: 272192
-
Sanjay Patel authored
llvm-svn: 272191
-
Benjamin Kramer authored
Avoids unnecessary copies. All changes audited & pass tests with asan. No functional change intended. llvm-svn: 272190
-
Jim Ingham authored
llvm-svn: 272189
-
Miklos Vajna authored
Refactor to do the same as what is done already for static_cast. Reviewers: klimek Differential Revision: http://reviews.llvm.org/D21120 llvm-svn: 272188
-
Adrian McCarthy authored
Differential Revision: http://reviews.llvm.org/D21107 llvm-svn: 272187
-
Benjamin Kramer authored
It provides nothing over the default one but makes the class not trivially copyable. No functionality change intended. llvm-svn: 272186
-
Vitaly Buka authored
Summary: Some target platforms -fsanitize=address. Reviewers: pcc, eugenis Subscribers: cfe-commits, christof, chapuni, kubabrecka Differential Revision: http://reviews.llvm.org/D21117 llvm-svn: 272185
-
George Burgess IV authored
MSVC calls the copy ctor on StratifiedSets for some reason. So, undelete it. llvm-svn: 272184
-
Reid Kleckner authored
Again, the Microsoft linker does not like empty substreams. We still emit an empty string table if CodeView is enabled, but that doesn't cause problems because it always contains at least one null byte. llvm-svn: 272183
-
Sanjoy Das authored
This is NFC as far as externally visible behavior is concerned, but will keep us from spinning in the worklist traversal algorithm unnecessarily. llvm-svn: 272182
-
Sanjoy Das authored
Absence of may-unwind calls is not enough to guarantee that a UB-generating use of an add-rec poison in the loop latch will actually cause UB. We also need to guard against calls that terminate the thread or infinite loop themselves. This partially addresses PR28012. llvm-svn: 272181
-
Sanjoy Das authored
Calls to `@llvm.dbg.*` can be assumed to terminate. llvm-svn: 272180
-
Sanjoy Das authored
The worklist algorithm introduced in rL271151 didn't check to see if the direct users of the post-inc add recurrence propagates poison. This change fixes the problem and makes the code structure more obvious. Note for release managers: correctness wise, this bug wasn't a regression introduced by rL271151 -- the behavior of SCEV around post-inc add recurrences was strictly improved (in terms of correctness) in rL271151. llvm-svn: 272179
-
Quentin Colombet authored
llvm-svn: 272177
-
Quentin Colombet authored
When repairing with a copy, instead of accounting for the cost of that copy and actually inserting it, we may be able to use an alternative source for the register to repair and just use it. Make sure this is documented, so that we consider that opportunity at some point. llvm-svn: 272176
-
Derek Bruening authored
Generalizes the workingset-samples test to pass when a sample has a size of 0, which can happen on a loaded machine. llvm-svn: 272175
-
Zachary Turner authored
llvm-svn: 272174
-
George Burgess IV authored
r272064 apparently made them angry. This undoes some changes made in r272064 (defaulting move ctors) to make them happy again. llvm-svn: 272173
-
Zachary Turner authored
Reviewed By: ruiu Differential Revision: http://reviews.llvm.org/D21128 llvm-svn: 272172
-
Rui Ueyama authored
llvm-svn: 272171
-
Quentin Colombet authored
Teach AArch64RegisterBankInfo that G_OR can be mapped on either GPR or FPR for 64-bit or 32-bit values. Add test cases demonstrating how this information is used to coalesce a computation on a single register bank. llvm-svn: 272170
-
Quentin Colombet authored
The RegBankSelect pass can now rely on the target to do the remapping of the instructions. llvm-svn: 272169
-
Roman Gareev authored
by "&&", "||". llvm-svn: 272168
-
Vedant Kumar authored
Differential Revision: http://reviews.llvm.org/D21116 llvm-svn: 272167
-
Vedant Kumar authored
The new version of the header introduces the INSTR_PROF_VISIBILITY macro. See http://reviews.llvm.org/D21116 for more details. llvm-svn: 272166
-
Quentin Colombet authored
Now, the target will be able to provide its how implementation to remap an instruction. This open the way to crazier optimizations, but to beginning with, we will be able to handle something else than the default mapping. llvm-svn: 272165
-
Quentin Colombet authored
Now that we have an entity that hold the remap information the rewritting should be easier to do. No functional changes. llvm-svn: 272164
-
Quentin Colombet authored
The repairing code has no reason to change the source or destination of the registers. llvm-svn: 272163
-
Xinliang David Li authored
Differential Revision: http://reviews.llvm.org/D21119 llvm-svn: 272162
-
Quentin Colombet authored
This helper class is used to encapsulate the necessary information to remap an instruction. llvm-svn: 272161
-
Quentin Colombet authored
This G_OR is used in GlobalISel to represent bitwise OR. llvm-svn: 272160
-
David Majnemer authored
Variably modified types shouldn't be permitted in catch clauses. This fixes PR28047. llvm-svn: 272159
-