Rafael Espindola
0474b584d9
Start using shouldAssumeDSOLocal on ARM.
...
Given where this is used it should be a nop.
llvm-svn: 271066
2016-05-27 22:41:51 +00:00
Lang Hames
08ff5714ba
[Kaleidoscope][BuildingAJIT] Add stub chapter text for Building A JIT Chapter 4.
...
llvm-svn: 271064
2016-05-27 22:34:56 +00:00
Xinliang David Li
883963eea1
[PM] Port the Sample FDO to new PM (part-1)
...
llvm-svn: 271062
2016-05-27 22:30:44 +00:00
Lang Hames
2e1aba3a8f
[Kaleidoscope][Orc] Remove the reference to the Orc directory that was removed
...
in r271059.
llvm-svn: 271061
2016-05-27 22:21:12 +00:00
Lang Hames
cb38d0fe3a
[Kaleidoscope] Remove the old Kaleidoscope/ORC tutorial series.
...
This code has been superseded by the new Building A JIT series.
llvm-svn: 271059
2016-05-27 22:17:56 +00:00
Matthias Braun
96f0c83689
MachineScheduler: Introduce ONLY1 reason to improve debug output
...
llvm-svn: 271058
2016-05-27 22:14:26 +00:00
Matthias Braun
e7a50d3005
AArch64Subtarget: Use default member initializers
...
llvm-svn: 271057
2016-05-27 22:14:09 +00:00
David Majnemer
3c56b8ce44
Don't discard errors
...
llvm-svn: 271056
2016-05-27 22:07:50 +00:00
Lang Hames
53005993ea
[Kaleidoscope][BuildingAJIT] Add code for chapter 4.
...
This chapter will cover lazy compilation directly from ASTs using the Compile
Callbacks and Indirect Stubs APIs.
llvm-svn: 271054
2016-05-27 21:50:13 +00:00
Kostya Serebryany
7dfd360c85
[libFuzzer] use __sanitizer_set_report_fd with -close_fd_mask. This allows us to keep asan reports when closing target's stderr
...
llvm-svn: 271053
2016-05-27 21:46:22 +00:00
Rafael Espindola
dff4498487
Map DynamicNoPIC to Static on non-darwin.
...
DynamicNoPIC was only every used on darwin. This maps it to static on
ELF. It matches what is done on X86.
llvm-svn: 271052
2016-05-27 21:44:18 +00:00
Sanjay Patel
dc7c644056
[InstCombine] move and/sext fold to helper function; NFCI
...
We need to enhance the pattern matching on these to look through bitcasts.
llvm-svn: 271051
2016-05-27 21:41:29 +00:00
David Majnemer
2ab792a27a
Don't iterate endlessly if an error occurs.
...
llvm-svn: 271048
2016-05-27 21:25:05 +00:00
Xinliang David Li
d44bbb4874
FileCheck: dump command line context with empty input
...
Differential Revision: http://reviews.llvm.org/D20716
llvm-svn: 271047
2016-05-27 21:23:25 +00:00
Krzysztof Parzyszek
1c30a694b9
[Hexagon] Use standard macros to initialize HexagonExpandCondsets pass
...
llvm-svn: 271045
2016-05-27 21:15:34 +00:00
Richard Smith
52bc8c6b91
Fix compilation with GCC, which treats this as a constructor name not a type
...
name. (GCC is correct here per the latest language DRs.)
llvm-svn: 271044
2016-05-27 21:05:35 +00:00
Krzysztof Parzyszek
cde5da3f4a
[Hexagon] Do not create passes in the constructor of HexagonPassConfig
...
When running mir tests, a pass created in that constructor would not be
freed, leading to memory leaks.
llvm-svn: 271043
2016-05-27 20:48:39 +00:00
Davide Italiano
838d4afdb1
[LCSSA] Simplify. Suggested by Sanjoy.
...
llvm-svn: 271041
2016-05-27 20:25:31 +00:00
Zachary Turner
f560f82e38
[pdb] Fix size check when reading stream bytes.
...
We were accidentally bounds checking the read against the output
ArrayRef instead of against the size of the read.
llvm-svn: 271040
2016-05-27 20:17:33 +00:00
Davide Italiano
0f565aa366
[Timer] Add missing slash in doxygen commit.
...
Pointed out by: Sean Silva.
llvm-svn: 271039
2016-05-27 20:04:16 +00:00
Petr Hosek
6d9dcdb6c7
Revert "[MC] Support symbolic expressions in assembly directives"
...
This reverts commit r271028, it causes the directive_fill.s to fail.
llvm-svn: 271038
2016-05-27 19:58:05 +00:00
Davide Italiano
efa8f0a9da
[Timer] Expose an API to check if the timer is running.
...
llvm-svn: 271037
2016-05-27 19:12:26 +00:00
David Blaikie
06b8355a88
SmallVector: Replace some pre-C++11 move helpers with standard algorithms
...
llvm-svn: 271036
2016-05-27 19:05:14 +00:00
Sanjoy Das
91e7c14953
[GVN] Preserve !range metadata when PRE'ing loads
...
Reviewers: dberlin, reames, george.burgess.iv
Subscribers: mcrosier, llvm-commits
Differential Revision: http://reviews.llvm.org/D20743
llvm-svn: 271034
2016-05-27 19:03:10 +00:00
Michael Kuperstein
ac24107aac
[X86] Detect SAD patterns and emit psadbw instructions.
...
This recommits r267649 with a fix for PR27539.
Differential Revision: http://reviews.llvm.org/D20598
llvm-svn: 271033
2016-05-27 18:53:22 +00:00
David Majnemer
517cb96201
Make sure data is available before dereferencing it
...
llvm-svn: 271032
2016-05-27 18:50:02 +00:00
David Majnemer
fe2aab20df
Avoid overflow when computing the size of an array
...
llvm-svn: 271031
2016-05-27 18:50:00 +00:00
David Majnemer
44169461a9
Don't assume that there will be enough padding bytes
...
llvm-svn: 271030
2016-05-27 18:49:58 +00:00
David Majnemer
8c6942e801
Don't assume that there will be another null byte
...
llvm-svn: 271029
2016-05-27 18:49:51 +00:00
Petr Hosek
3661810908
[MC] Support symbolic expressions in assembly directives
...
This matches the behavior of GNU assembler which supports symbolic
expressions in absolute expressions used in assembly directives.
Differential Revision: http://reviews.llvm.org/D20656
llvm-svn: 271028
2016-05-27 18:49:44 +00:00
Zachary Turner
0b5ee08758
Resubmit "[pdb] Allow zero-copy read support for symbol streams.""
...
Due to differences in template instantiation rules, it is not
portable to static_assert(false) inside of an invalid specialization
of a template. Instead I just =delete the method so that it can't
be used, and leave a comment that it must be explicitly specialized.
llvm-svn: 271027
2016-05-27 18:47:20 +00:00
Chad Rosier
bdab1e9a71
Revert "[pdb] Allow zero-copy read support for symbol streams."
...
This reverts commit r271024 due to error: static_assert failed
"You must either provide a specialization of VarStreamArrayExtractor
or a custom extractor"
llvm-svn: 271026
2016-05-27 18:31:02 +00:00
Zachary Turner
f7482c3f63
[pdb] Allow zero-copy read support for symbol streams.
...
This reduces the amount of memory used by llvm-pdbdump by roughly
1/3 of the size of the PDB file.
Differential Revision: http://reviews.llvm.org/D20724
Reviewed By: ruiu
llvm-svn: 271025
2016-05-27 18:20:20 +00:00
Ahmed Bougacha
38d6fb72ea
[X86] Clarify PSHUFB+blend lowering function name. NFC.
...
Also guard against v32i8 users.
llvm-svn: 271024
2016-05-27 17:58:17 +00:00
Ahmed Bougacha
e067751171
[ARM] Remove tBLXr Pat made redundant by r269101. NFCI.
...
llvm-svn: 271023
2016-05-27 17:58:03 +00:00
Benjamin Kramer
046bb00ece
[ProfData] Remove global constructor from ProfileSummaryBuilder.
...
No functionality change intended.
llvm-svn: 271021
2016-05-27 17:38:16 +00:00
Pete Cooper
4b16ddde7a
Don't generate unnecessary signed ConstantRange during multiply. NFC
...
r231483 taught ConstantRange::multiply to be clever about signed vs unsigned ranges. For example, an unsigned range could be full-set while the signed range is more specific than that.
In looking at the allocations trace for LTO'ing verify-uselistorder (see r236629 for details), millions of allocations are from APInt, many of which come from ConstantRange's.
This change tries to avoid some (3.2 million) allocations by returning the unsigned range if its suitable. The checks here are that it should not be a wrapping range, and should be positive. That should be enough to check for ranges such as [1, 10) which the signed range will be equal to, if we were to calculate it.
Differential Revision: http://reviews.llvm.org/D20723
Reviewed by James Molloy
llvm-svn: 271020
2016-05-27 17:06:50 +00:00
Tim Northover
4927fe6e42
Move test to X86 directory: I think it depends on X86 TTI.
...
llvm-svn: 271019
2016-05-27 16:56:54 +00:00
Benjamin Kramer
32cac0d565
Use StringRef::startswith instead of find(...) == 0.
...
It's faster and easier to read.
llvm-svn: 271018
2016-05-27 16:54:57 +00:00
Benjamin Kramer
de8eeaec07
[sparc] Simplify a slow and verbose way of checking if a string starts with "ld".
...
PR27904.
llvm-svn: 271016
2016-05-27 16:45:37 +00:00
Tim Northover
25454e24c4
Vectorizer: track non-fast FP instructions through phis when finding reductions.
...
When we traced through a phi node looking for floating-point reductions, we
forgot whether we'd ever seen an instruction without fast-math flags (that
would block vectorization). This propagates it through to the end.
llvm-svn: 271015
2016-05-27 16:40:27 +00:00
Xinliang David Li
70964f94ab
Reapply r270865 -- previous bot failure is unrelated
...
llvm-svn: 271014
2016-05-27 16:22:03 +00:00
David Majnemer
28d34a556a
Make sure these error codes are marked as checked
...
llvm-svn: 271013
2016-05-27 16:16:56 +00:00
David Majnemer
f4e1d5fc8d
Make sure there are enough blocks for the stream
...
llvm-svn: 271012
2016-05-27 16:16:48 +00:00
David Majnemer
fc0e03c4b0
Make sure the directory block array fits in the file
...
llvm-svn: 271011
2016-05-27 16:16:45 +00:00
Dehao Chen
20312df6da
Remove sample profile dependency to instcombine, which is not a analysis pass.
...
Summary: This patch removes dependency from sample profile pass to instcombine pass.
Reviewers: davidxl, dnovillo
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D20501
llvm-svn: 271009
2016-05-27 16:14:15 +00:00
David Majnemer
f36149144f
Validate the blocksize before using it
...
The blocksize could be zero on disk causing later checks to divide by
zero.
llvm-svn: 271008
2016-05-27 15:57:38 +00:00
Simon Pilgrim
67f884d956
[X86][AVX] Removed some remains of old (pre-regeneration) filechecks
...
llvm-svn: 271007
2016-05-27 15:56:19 +00:00
Than McIntosh
4e1e347d86
Disable lifetime-start-on-first-use analysis.
...
Summary:
Turn off lifetime-start-on-first-use enhancement for the moment
pending a fix for bug 27903.
Bug: 27903
Reviewers: tejohnson, wmi, qcolombet, gbiv
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D20731
llvm-svn: 271003
2016-05-27 15:27:51 +00:00
Benjamin Kramer
2071a9ca1c
Make header self-contained. NFC.
...
llvm-svn: 271002
2016-05-27 15:21:30 +00:00