Duncan P. N. Exon Smith
547183bf87
blockfreq: Defer to BranchProbability::scale() (again)
...
Change `BlockFrequency` to defer to `BranchProbability::scale()` and
`BranchProbability::scaleByInverse()`.
This removes `BlockFrequency::scale()` from its API (and drops the
ability to see the remainder), but the only user was the unit tests. If
some code in the future needs an API that exposes the remainder, we can
add something to `BranchProbability`, but I find that unlikely.
llvm-svn: 207550
2014-04-29 16:31:29 +00:00
Daniel Sanders
f562582d15
[mips] Remove redundant 'let Predicates = [HasStdEnc]' statements
...
Summary:
The MipsPat class already initializes Predicates to [HasStdEnc].
No functional change (confirmed by diffing tablegen-erated files before and
after)
Differential Revision: http://reviews.llvm.org/D3546
llvm-svn: 207548
2014-04-29 16:24:10 +00:00
Duncan P. N. Exon Smith
d22bea7dad
blockfreq: Defer to BranchProbability::scale()
...
`BlockMass` can now defer to `BranchProbability::scale()`.
llvm-svn: 207547
2014-04-29 16:20:05 +00:00
Duncan P. N. Exon Smith
4ac56cf249
blockfreq: Remove BlockMass*BlockMass
...
Since `BlockMass` is an implementation detail and there are no current
users of this, delete `BlockMass::operator*=(BlockMass)`. I might need
this when I try to strip out `UnsignedFloat`, but I can pull it back in
at that point.
llvm-svn: 207546
2014-04-29 16:20:01 +00:00
Duncan P. N. Exon Smith
f857407965
Support: remove unnecessary namespace
...
llvm-svn: 207545
2014-04-29 16:15:39 +00:00
Duncan P. N. Exon Smith
415e7656f6
Support: Add BranchProbability::scale() and ::scaleByInverse()
...
Add API to `BranchProbability` for scaling big integers. Next job is to
rip the logic out of `BlockMass` and `BlockFrequency`.
llvm-svn: 207544
2014-04-29 16:15:35 +00:00
Dan Liew
98f3f0036a
Document recently added sphinx documentation options in
...
CMake.
llvm-svn: 207543
2014-04-29 16:13:27 +00:00
Duncan P. N. Exon Smith
7fcce45847
Support: Simplify BranchProbability operators
...
llvm-svn: 207541
2014-04-29 16:12:16 +00:00
Duncan P. N. Exon Smith
cd630f2895
Support: Add unit tests for BranchProbability
...
llvm-svn: 207540
2014-04-29 16:12:13 +00:00
David Blaikie
e872a6eb91
DwarfDebug: Split the initialization of abstract and non-abstract subprogram DIEs.
...
These were called from distinct places and had significant distinct
behavior. No need to make that a dynamic check inside the function
rather than just having two functions (refactoring some common code into
a helper function to be called from the two separate functions).
llvm-svn: 207539
2014-04-29 15:58:35 +00:00
NAKAMURA Takumi
0f250ed55f
LinkModulesTest.cpp: Reformat.
...
llvm-svn: 207537
2014-04-29 15:52:46 +00:00
NAKAMURA Takumi
4b8e8e9870
[CMake] Enable llvm/unittests/LinkerTests. It had not been enabled since r199354.
...
llvm-svn: 207536
2014-04-29 15:52:36 +00:00
NAKAMURA Takumi
b49b99b8f0
LinkModulesTest.cpp: Use test-specific Ctx instead of getGlobalContext(). The global context might not be free'd. [vg_leak]
...
llvm-svn: 207535
2014-04-29 15:52:27 +00:00
Tilmann Scheller
4418dda5ef
[ARM64] Disable regression tests for the old JIT.
...
Since the ARM64 backend doesn't implement support for the old JIT those tests are failing when the regression tests are run on an AArch64 host.
llvm-svn: 207530
2014-04-29 15:02:40 +00:00
Daniel Sanders
6857800b67
[mips][msa] Use CHECK-LABEL in basic_operations*.ll
...
Differential Revision: http://reviews.llvm.org/D3536
llvm-svn: 207529
2014-04-29 14:28:58 +00:00
Diego Novillo
34fc8a7c4c
Add optimization remarks to the loop unroller and vectorizer.
...
Summary:
This calls emitOptimizationRemark from the loop unroller and vectorizer
at the point where they make a positive transformation. For the
vectorizer, it reports vectorization and interleave factors. For the
loop unroller, it reports all the different supported types of
unrolling.
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D3456
llvm-svn: 207528
2014-04-29 14:27:31 +00:00
Joerg Sonnenberger
dd18d5b0f6
Parse and create GOT_PREL relocations.
...
llvm-svn: 207526
2014-04-29 13:42:02 +00:00
Daniel Sanders
b3268e71e2
[mips][msa] Fix element extraction where the index is variable.
...
Summary:
This isn't supported directly so we splat the vector element and extract
the most convenient copy.
Reviewers: matheusalmeida
Reviewed By: matheusalmeida
Differential Revision: http://reviews.llvm.org/D3530
llvm-svn: 207524
2014-04-29 13:31:37 +00:00
Yaron Keren
aa0e88acbf
Updated the link to the correct URL.
...
llvm-svn: 207523
2014-04-29 13:21:05 +00:00
Rafael Espindola
b60c829a2a
Centralize the handling of the thumb bit.
...
This patch centralizes the handling of the thumb bit around
MCStreamer::isThumbFunc and makes isThumbFunc handle aliases.
This fixes a corner case, but the main advantage is having just one
way to check if a MCSymbol is thumb or not. This should still be
refactored to be ARM only, but at least now it is just one predicate
that has to be refactored instead of 3 (isThumbFunc,
ELF_Other_ThumbFunc, and SF_ThumbFunc).
llvm-svn: 207522
2014-04-29 12:46:50 +00:00
Tim Northover
aacce57d61
ARM: fix test after change to indirect symbol emission.
...
llvm-svn: 207519
2014-04-29 10:13:10 +00:00
Tim Northover
9e7782dcf3
X86: emit hidden stubs into a proper non_lazy_symbol_pointer section.
...
rdar://problem/16660411
llvm-svn: 207518
2014-04-29 10:06:10 +00:00
Tim Northover
2372301bcf
ARM: emit hidden stubs into a proper non_lazy_symbol_pointer section.
...
rdar://problem/16660411
llvm-svn: 207517
2014-04-29 10:06:05 +00:00
Zinovy Nis
487268574a
[BUG] Fix -Wunused-variable warning in Release mode. Thnx to Kostya Serebryany for pointing.
...
llvm-svn: 207516
2014-04-29 09:45:08 +00:00
Benjamin Kramer
e1ab3f062e
AArch64: Mark vector long multiplication as expand.
...
There are no patterns for this. This was already fixed for ARM64 but I forgot
to apply it to AArch64 too.
llvm-svn: 207515
2014-04-29 09:37:54 +00:00
Kostya Serebryany
dc8e551d84
fix -Wunused-variable warning in Release mode
...
llvm-svn: 207514
2014-04-29 09:33:02 +00:00
Elena Demikhovsky
299cf511c4
AVX-512: optimized a shuffle pattern to VINSERTI64x4.
...
Added intrinsics for VPERMT2PS/PD/D/Q instructions.
llvm-svn: 207513
2014-04-29 09:09:15 +00:00
Zinovy Nis
d373fec199
[OPENMP][LV][D3423] Respect Hints.Force meta-data for loops in LoopVectorizer
...
llvm-svn: 207512
2014-04-29 08:55:11 +00:00
Craig Topper
9d74a5a5f1
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves.
...
llvm-svn: 207511
2014-04-29 07:58:41 +00:00
Craig Topper
e06fc4f0ca
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. AArch64 edition
...
llvm-svn: 207510
2014-04-29 07:58:34 +00:00
Craig Topper
f85b7fc197
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. ARM64 edition
...
llvm-svn: 207509
2014-04-29 07:58:25 +00:00
Craig Topper
906c2cd2e6
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. Hexagon edition
...
llvm-svn: 207508
2014-04-29 07:58:16 +00:00
Craig Topper
6f9e59ea55
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. MSP430 edition
...
llvm-svn: 207507
2014-04-29 07:58:09 +00:00
Craig Topper
56c590af3b
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. Mips edition
...
llvm-svn: 207506
2014-04-29 07:58:02 +00:00
Craig Topper
2865c986d1
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. NVPTX edition
...
llvm-svn: 207505
2014-04-29 07:57:44 +00:00
Craig Topper
0d3fa92514
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. PowerPC edition
...
llvm-svn: 207504
2014-04-29 07:57:37 +00:00
Craig Topper
5656db4a8b
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. R600 edition
...
llvm-svn: 207503
2014-04-29 07:57:24 +00:00
Craig Topper
b0c941bebd
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. Sparc edition
...
llvm-svn: 207502
2014-04-29 07:57:13 +00:00
Craig Topper
60879a3c76
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. XCore edition
...
llvm-svn: 207501
2014-04-29 07:57:00 +00:00
Hao Liu
6db3410071
[ARM64]Fix a bug about incorrect operand order in an EXT instruction, which is introduced by r207485.
...
llvm-svn: 207500
2014-04-29 07:51:19 +00:00
Michael Zolotukhin
a93fec040a
Fix a typo in comment
...
llvm-svn: 207499
2014-04-29 07:35:33 +00:00
Chandler Carruth
3ab40727a7
[ADT] Make the iterator adaptor utility a touch more general by
...
requiring full control over the various parameters to the std::iterator
concept / trait thing. This is a precursor for adjusting these things to
where you can write a bidirectional iterator wrapping a random access
iterator with custom increment and decrement logic.
llvm-svn: 207487
2014-04-29 01:57:35 +00:00
Hao Liu
cf37110920
[ARM64]Fix a bug when lowering shuffle vector to an EXT instruction.
...
E.g. Mask like <-1, -1, 1, ...> will generate incorrect EXT index.
llvm-svn: 207485
2014-04-29 01:50:36 +00:00
Eric Christopher
612bb69bf7
None of these targets actually define their own CFI_INSTRUCTION
...
opcode so there's no reason to use the target namespace for it
rather than TargetOpcode.
llvm-svn: 207475
2014-04-29 00:16:46 +00:00
Eric Christopher
40af450562
80-column fixups.
...
llvm-svn: 207474
2014-04-29 00:16:42 +00:00
Eric Christopher
d17374919b
80-column, tab characters, comment fixups.
...
llvm-svn: 207473
2014-04-29 00:16:40 +00:00
Eric Christopher
4237bf10f3
Fix 80-columns, tab characters, and comments.
...
llvm-svn: 207472
2014-04-29 00:16:33 +00:00
Chandler Carruth
d24465f443
[ADT] Teach PointerUnion to support assignment directly from nullptr to
...
clear it out.
llvm-svn: 207471
2014-04-29 00:14:27 +00:00
Chandler Carruth
a468b8ecaf
[cleanup] Add some actual positive tests for equality. This unittest
...
never actually compared for equality two pointer unions that were equal.
Fortunately, things seem to work. =]
llvm-svn: 207468
2014-04-28 23:44:14 +00:00
Chandler Carruth
275c5fc9c2
[cleanup] Make this test use a proper fixture rather than globals.
...
llvm-svn: 207466
2014-04-28 23:42:22 +00:00