- Jul 01, 2016
-
-
Reid Kleckner authored
llvm-svn: 274326
-
Reid Kleckner authored
Summary: This represents the adjustment applied to the implicit 'this' parameter in the prologue of a virtual method in the MS C++ ABI. The adjustment is always zero unless multiple inheritance is involved. This increases the size of DISubprogram by 8 bytes, unfortunately. The adjustment really is a signed 32-bit integer. If this size increase is too much, we could probably win it back by splitting out a subclass with info specific to virtual methods (virtuality, vindex, thisadjustment, containingType). Reviewers: aprantl, dexonsmith Subscribers: aaboud, amccarth, llvm-commits Differential Revision: http://reviews.llvm.org/D21614 llvm-svn: 274325
-
Matt Arsenault authored
If OpB has an ADD NSW/NUW, we can use that to prove that adding 1 to OpA won't wrap if OpA + 1 == OpB. Patch by Fiona Glaser llvm-svn: 274324
-
Matt Arsenault authored
If no alignment was set on the load/stores, it would vectorize to the new type even though this increases the default alignment. llvm-svn: 274323
-
Matt Arsenault authored
llvm-svn: 274322
-
Matt Arsenault authored
This needs to use inttoptr/ptrtoint if combining an int and pointer load. If a pointer is used always do an integer load. llvm-svn: 274321
-
Duncan P. N. Exon Smith authored
This reverts commit r274305, since it breaks self-hosting: http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_build/22349/ http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules/builds/17232 Note that the blamelist on lab.llvm.org:8011 is incorrect. The previous build was r274299, but somehow r274305 wasn't included in the blamelist: http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules llvm-svn: 274320
-
Duncan P. N. Exon Smith authored
Change all the methods in LiveVariables that expect non-null MachineInstr* to take MachineInstr& and update the call sites. This clarifies the API, and designs away a class of iterator to pointer implicit conversions. llvm-svn: 274319
-
Matt Arsenault authored
This was not passing the full instruction with metadata to the alias query. llvm-svn: 274318
-
Duncan P. N. Exon Smith authored
llvm-svn: 274317
-
Eric Fiselier authored
This patch adds a __nth_element builtin that allows fetching the n-th type of a parameter pack with very little compile-time overhead. The patch was inspired by r252036 and r252115 by David Majnemer, which add a similar __make_integer_seq builtin for efficiently creating a std::integer_sequence. Reviewed as D15421. http://reviews.llvm.org/D15421 llvm-svn: 274316
-
Duncan P. N. Exon Smith authored
Remove another unnecessary iterator to pointer conversion. llvm-svn: 274315
-
Argyrios Kyrtzidis authored
rdar://24677150 llvm-svn: 274314
-
Adrian Prantl authored
This fixes the -fmodules build. llvm-svn: 274313
-
Matt Arsenault authored
llvm-svn: 274312
-
Duncan P. N. Exon Smith authored
Convert a loop to a range-based for, using MachineInstr& instead of MachineInstr* and removing an implicit conversion from iterator to pointer. llvm-svn: 274311
-
Duncan P. N. Exon Smith authored
Use MachineInstr& over MachineInstr* to avoid implicit iterator to pointer conversions. MachineInstr*-as-nullptr was being used as a flag for whether the for loop terminated normally; I added an explicit `bool` instead. llvm-svn: 274310
-
Reid Kleckner authored
llvm-svn: 274309
-
Reid Kleckner authored
llvm-svn: 274308
-
Matt Arsenault authored
integer. Fixes issues on some architectures where we use arithmetic ops to build vectors, which can cause bad things to happen for loads/stores of mixed types. Patch by Fiona Glaser llvm-svn: 274307
-
Matt Arsenault authored
llvm-svn: 274306
-
Sebastian Pop authored
This pass hoists duplicated computations in the program. The primary goal of gvn-hoist is to reduce the size of functions before inline heuristics to reduce the total cost of function inlining. Pass written by Sebastian Pop, Aditya Kumar, Xiaoyu Hu, and Brian Rzycki. Important algorithmic contributions by Daniel Berlin under the form of reviews. Differential Revision: http://reviews.llvm.org/D19338 llvm-svn: 274305
-
Duncan P. N. Exon Smith authored
TargetSubtargetInfo::overrideSchedPolicy takes two MachineInstr* arguments (begin and end) that invite implicit conversions from MachineInstrBundleIterator. One option would be to change their type to an iterator, but since they don't seem to have been used since the API was added in 2010, I'm deleting the dead code. llvm-svn: 274304
-
Duncan P. N. Exon Smith authored
Use MachineInstr& instead of MachineInstr* in MachineSinker to help avoid implicit conversions from iterator to pointer. llvm-svn: 274303
-
Adam Nemet authored
llvm-svn: 274302
-
Duncan P. N. Exon Smith authored
Push MachineInstr& through helper APIs for consistency. This doesn't remove any more implicit conversions, but it's a nice cleanup after r274300. llvm-svn: 274301
-
Duncan P. N. Exon Smith authored
This avoids an implicit conversion from iterator to pointer. llvm-svn: 274300
-
Matt Arsenault authored
Also add test I forgot to add to r274296. llvm-svn: 274299
-
Duncan P. N. Exon Smith authored
Avoid a number of implicit conversions from iterator to pointer by using range-based for and MachineInstr&. llvm-svn: 274298
-
Duncan P. N. Exon Smith authored
Avoid an implicit iterator to pointer conversion in LiveVariables::runOnBlock by switching to a range-based for. llvm-svn: 274297
-
Matt Arsenault authored
llvm-svn: 274296
-
Duncan P. N. Exon Smith authored
Avoid another few implicit conversions from iterator to pointer. llvm-svn: 274295
-
Duncan P. N. Exon Smith authored
Avoid another implicit conversion from iterator to pointer. llvm-svn: 274294
-
Matt Arsenault authored
This was contributed by Apple, and I've been working on minimal cleanups and generalizing it. llvm-svn: 274293
-
Duncan P. N. Exon Smith authored
Avoid another implicit conversion from MachineInstrBundleIterator to MachineInstr* by using MachineInstr&. llvm-svn: 274292
-
Erik Pilkington authored
Fixes PR28096. Differential Revision: http://reviews.llvm.org/D21619 llvm-svn: 274291
-
Duncan P. N. Exon Smith authored
Switch to a range-based for in IfConverter::PredicateBlock and take MachineInstr& in MaySpeculate to avoid an implicit conversion from MachineBasicBlock::iterator to MachineInstr*. llvm-svn: 274290
-
Chandler Carruth authored
noticing. llvm-svn: 274289
-
Reid Kleckner authored
Debug iterators are valuable so we don't want to turn them off completely. However, llvm-tblgen is critical to build speed, so we can skip them here. Regenerating X86GenSubtargetInfo.inc in a clang-cl self-host debug build now takes 39s instead of 1m29s. Helps PR28222 llvm-svn: 274288
-
Duncan P. N. Exon Smith authored
This is a mechanical change to make TargetLowering API take MachineInstr& (instead of MachineInstr*), since the argument is expected to be a valid MachineInstr. In one case, changed a parameter from MachineInstr* to MachineBasicBlock::iterator, since it was used as an insertion point. As a side effect, this removes a bunch of MachineInstr* to MachineBasicBlock::iterator implicit conversions, a necessary step toward fixing PR26753. llvm-svn: 274287
-