- Aug 12, 2016
-
-
David Majnemer authored
No functionality change is intended. llvm-svn: 278443
-
Ivan Krasin authored
Summary: This is a follow up to r278389, where I have introduced the bug Reviewers: mehdi_amini Differential Revision: https://reviews.llvm.org/D23436 llvm-svn: 278442
-
Todd Fiala authored
Options used to store a reference to the CommandInterpreter instance in the base Options class. This made it impossible to parse options independent of a CommandInterpreter. This change removes the reference from the base class. Instead, it modifies the options-parsing-related methods to take an ExecutionContext pointer, which the options may inspect if they need to do so. Closes https://reviews.llvm.org/D23416 Reviewers: clayborg, jingham llvm-svn: 278440
-
Rui Ueyama authored
llvm-svn: 278439
-
Xinliang David Li authored
llvm-svn: 278438
-
Tim Shen authored
Summary: Notice that the data layout is changed: instead of using std::pair<PointerIntPair<NodeType*, 1>, ChildItTy>, now use std::pair<NodeRef, Optional<ChildItTy>>. A NFC but worth noticing change is operator==(), since we only compare an iterator against end(), it's better to put an assert there and make people noticed when it fails. Reviewers: dblaikie, chandlerc Subscribers: mzolotukhin, llvm-commits Differential Revision: https://reviews.llvm.org/D23146 llvm-svn: 278437
-
Xinliang David Li authored
llvm-svn: 278436
-
Richard Smith authored
decomposition declaration for arrays, aggregate-like structs, tuple-like types, and (as an extension) for complex and vector types. llvm-svn: 278435
-
Pete Cooper authored
There were 2 versions of this method. A public one which takes a const Instruction* and a private implementation which takes a mutable Value* and casts to an Instruction*. There was no need for the 2 versions as all callers pass a const Instruction* and there was no need for a mutable pointer as we only do analysis here. llvm-svn: 278434
-
David Majnemer authored
If the result of the find is only used to compare against end(), just use is_contained instead. No functionality change is intended. llvm-svn: 278433
-
Piotr Padlewski authored
Summary: This patch adds IsVariadicFunction bit to summary in order to not import variadic functions. Inliner doesn't inline variadic functions because it is hard to reason about it. This one small fix improves Importer by about 16% (going from 86% to 100% of imported functions that are inlined anywhere) on some spec benchmarks like 'int' and others. Reviewers: eraman, mehdi_amini, tejohnson Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D23339 llvm-svn: 278432
-
Vyacheslav Klochkov authored
This helped to improved memory-folding and register coalescing optimizations. Also, this patch fixed the tracker #17229. Reviewer: Craig Topper. Differential Revision: https://reviews.llvm.org/D23108 llvm-svn: 278431
-
Rui Ueyama authored
LayoutInputSection is a dummy class and does not need any features that the actual implementation (InputSection class) provides. llvm-svn: 278430
-
Rui Ueyama authored
Re-commit r278066: Do not ignore SizeOfOptionalHeader in COFF header even if PE header is not present. llvm-svn: 278429
-
Tim Northover authored
It's sharing the integer G_CONSTANT for now since I don't *think* it creates any ambiguity (even on weird archs). If that turns out wrong we can create a G_PTRCONSTANT or something. llvm-svn: 278423
-
Ehsan Amiri authored
When legal, extending trip count in the loop control logic generates better code compared to truncating IV. This is because (1) extending trip count is a loop invariant operation (see genLoopLimit where we prove trip count is loop invariant). (2) Scalar Evolution seems to have problems understanding trunc when computing loop trip count. So removing them allows better analysis performed in Scalar Evolution. (In particular this fixes PR 28363 which is the motivation for this change). I am not going to perform any performance test. Any degradation caused by this should be an indication of a bug elsewhere. To prove legality, we rely on SCEV to prove zext(trunc(IV)) == IV (or similarly for sext). If this holds, we can prove equivalence of trunc(IV)==ExitCnt (1) and IV == zext(ExitCnt). Simply take zext of boths sides of (1) and apply the proven equivalence. This commit contains changes in a newly added testcase which was not included in the previous commit (which was reverted later on). https://reviews.llvm.org/D23075 llvm-svn: 278421
-
Rui Ueyama authored
llvm-svn: 278420
-
Pete Cooper authored
It only makes sense to set on N_NO_DEAD_STRIP on a relocatable object file. Otherwise the bits aren't useful for anything. Matches the ld64 behaviour. llvm-svn: 278419
-
Daniel Berlin authored
llvm-svn: 278418
-
David Majnemer authored
No functionality change is intended. llvm-svn: 278417
-
Krzysztof Parzyszek authored
llvm-svn: 278416
-
David Majnemer authored
llvm-svn: 278415
-
Matt Arsenault authored
llvm-svn: 278414
-
Geoff Berry authored
Summary: This is an extension of the fix in r271424. That fix dealt with builder insert points being moved by SCEV expansion, but only for the lifetime of the expand call. This change modifies the interface so that LSR can safely call expand multiple times at the same insert point and do the right thing if one of the expansions decides to move the original insert point. This is a fix for PR28719. Reviewers: sanjoy Subscribers: llvm-commits, mcrosier, mzolotukhin Differential Revision: https://reviews.llvm.org/D23342 llvm-svn: 278413
-
Pete Cooper authored
llvm-svn: 278412
-
Tim Northover authored
llvm-svn: 278411
-
Tim Northover authored
llvm-svn: 278410
-
Tim Northover authored
llvm-svn: 278409
-
Rui Ueyama authored
llvm-svn: 278408
-
Pete Cooper authored
We should be using one of BIND_OPCODE_SET_DYLIB_SPECIAL_IMM, BIND_OPCODE_SET_DYLIB_ORDINAL_IMM, and BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB depending on whether ordinals are <= 0, <= 15, > 15. This matches the behaviour of ld64. llvm-svn: 278407
-
Teresa Johnson authored
Avoid type truncation warnings from a 32-bit bot due to size_t not being unsigned long long, by converting the variables and constants to unsigned. This was introduced by r278338 and caused warnings here: http://bb.pgr.jp/builders/i686-mingw32-RA-on-linux/builds/15527/steps/build_llvmclang/logs/warnings%20%287%29 llvm-svn: 278406
-
Pete Cooper authored
We already had logic for binding opcodes had the same addend as last time. This adds the cases where the ordinal, symbol name, type, and segment offsets are the same as the last emitted ordinal. This gets us one step closer to emitting rebase opcodes as compressed as ld64 can manage. llvm-svn: 278405
-
Daniel Berlin authored
llvm-svn: 278404
-
Wei Ding authored
Differential Revision: http://reviews.llvm.org/D23336 llvm-svn: 278403
-
Wei Mi authored
llvm-svn: 278402
-
Daniel Berlin authored
Summary: This fixes PR 28933 by making sure GVNHoist does not try to recreate memory accesses when it has not actually moved them. Reviewers: sebpop Subscribers: llvm-commits, george.burgess.iv Differential Revision: https://reviews.llvm.org/D23411 llvm-svn: 278401
-
Pete Cooper authored
This will be used to test upcoming changes to improve binding opcode emission to match the more compressed form ld64 can generate. llvm-svn: 278400
-
Pete Cooper authored
llvm-svn: 278399
-
Pete Cooper authored
This matches the behaviour of ld64 when looking at the alignment of the stubs section in the final image. llvm-svn: 278398
-
Tim Shen authored
Summary: Make Optional's behavior the same as the coming std::optional. Reviewers: dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23178 llvm-svn: 278397
-