| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
appease the buildbots.
llvm-svn: 207136
|
| |
|
|
|
|
|
|
|
| |
of the dbg.value. This gets rid of tons of redundant variable DIEs in
subscopes.
rdar://problem/14874886, rdar://problem/16679936
llvm-svn: 207135
|
| |
|
|
|
|
|
| |
rather than by adding an overload and hoping that it's declared before the code
that calls it. (In a modules build, it isn't.)
llvm-svn: 207133
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
described by DBG_VALUEs during their lifetime.
Previously, when a variable was at a FrameIndex for any part of its
lifetime, this would shadow all other DBG_VALUEs and only a single
fbreg location would be emitted, which in fact is only valid for a small
range and not the entire lexical scope of the variable. The included
dbg-value-const-byref testcase demonstrates this.
This patch fixes this by
Local
- emitting dbg.value intrinsics for allocas that are passed by reference
- dropping all dbg.declares (they are now fully lowered to dbg.values)
SelectionDAG
- renamed constructors for SDDbgValue for better readability.
- fix UserValue::match() to handle indirect values correctly
- not inserting an MMI table entries for dbg.values that describe allocas.
- lowering dbg.values that describe allocas into *indirect* DBG_VALUEs.
CodeGenPrepare
- leaving dbg.values for an alloca were they are (see comment)
Other
- regenerated/updated instcombine-intrinsics testcase and included source
rdar://problem/16679879
http://reviews.llvm.org/D3374
llvm-svn: 207130
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch:
- Adds two new X86 builtin intrinsics ('int_x86_rdtsc' and
'int_x86_rdtscp') as GCCBuiltin intrinsics;
- Teaches the backend how to lower the two new builtins;
- Introduces a common function to lower READCYCLECOUNTER dag nodes
and the two new rdtsc/rdtscp intrinsics;
- Improves (and extends) the existing x86 test 'rdtsc.ll'; now test 'rdtsc.ll'
correctly verifies that both READCYCLECOUNTER and the two new intrinsics
work fine for both 64bit and 32bit Subtargets.
llvm-svn: 207127
|
| |
|
|
| |
llvm-svn: 207126
|
| |
|
|
|
|
|
|
| |
I discovered this const-hole while attempting to coalesnce the Symbol
and SymbolMap data structures. There's some pending issues with that,
but I figured this change was easy to flush early.
llvm-svn: 207124
|
| |
|
|
| |
llvm-svn: 207123
|
| |
|
|
|
|
|
|
|
| |
Leak identified by LSan and reported by Kostya Serebryany.
Let's get a bit experimental here... in theory our minimum compiler
versions support unordered_map.
llvm-svn: 207118
|
| |
|
|
|
|
|
| |
This matches ARM64 behaviour, which I think is clearer. It also puts all the
churn from that difference into one easily ignored commit.
llvm-svn: 207116
|
| |
|
|
|
|
| |
Patch by Yuri Gorshenin.
llvm-svn: 207115
|
| |
|
|
| |
llvm-svn: 207111
|
| |
|
|
| |
llvm-svn: 207110
|
| |
|
|
| |
llvm-svn: 207109
|
| |
|
|
|
|
| |
We only need assembly support, so it's fairly easy.
llvm-svn: 207108
|
| |
|
|
| |
llvm-svn: 207106
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
These can have different relocations in ELF. In particular both:
b.eq global
ldr x0, global
are valid, giving different relocations. The only possible way to distinguish
them is via a different fixup, so the operands had to be separated throughout
the backend.
llvm-svn: 207105
|
| |
|
|
|
|
|
|
|
|
|
| |
ARM64 was not producing pure BFI instructions for bitfield insertion
operations, unlike AArch64. The approach had to be a little different (in
ISelDAGToDAG rather than ISelLowering), and the outcomes aren't identical but
hopefully this gives it similar power.
This should address PR19424.
llvm-svn: 207102
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
algorithm here: http://dl.acm.org/citation.cfm?id=177301.
The idea of isolating the roots has even more relevance when using the
stack not just to implement the DFS but also to implement the recursive
step. Because we use it for the recursive step, to isolate the roots we
need to maintain two stacks: one for our recursive DFS walk, and another
of the nodes that have been walked. The nice thing is that the latter
will be half the size. It also fixes a complete hack where we scanned
backwards over the stack to find the next potential-root to continue
processing. Now that is always the top of the DFS stack.
While this is a really nice improvement already (IMO) it further opens
the door for two important simplifications:
1) De-duplicating some of the code across the two different walks. I've
actually made the duplication a bit worse in some senses with this
patch because the two are starting to converge.
2) Dramatically simplifying the loop structures of both walks.
I wanted to do those separately as they'll be essentially *just* CFG
restructuring. This patch on the other hand actually uses different
datastructures to implement the algorithm itself.
llvm-svn: 207098
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
applied prior to pushing a node onto the DFSStack. This is the first
step toward avoiding the stack entirely for leaf nodes. It also
simplifies things a bit and I think is pointing the way toward factoring
some more of the shared logic out of the two implementations.
It is also making it more obvious how to restructure the loops
themselves to be a bit easier to read (although no different in terms of
functionality).
llvm-svn: 207095
|
| |
|
|
|
|
| |
Patch by Yuri Gorshenin.
llvm-svn: 207092
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a SmallPtrSet. Currently, there is no need for stable iteration in this
dimension, and I now thing there won't need to be going forward.
If this is ever re-introduced in any form, it needs to not be
a SetVector based solution because removal cannot be linear. There will
be many SCCs with large numbers of parents. When encountering these, the
incremental SCC update for intra-SCC edge removal was quadratic due to
linear removal (kind of).
I'm really hoping we can avoid having an ordering property here at all
though...
llvm-svn: 207091
|
| |
|
|
|
|
|
| |
can use the node -> SCC mapping in the top-level graph to test this on
the rare occasions we need it.
llvm-svn: 207090
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
unused.
This allows us to compile
return (mask & 0x8 ? a : b);
into
testb $8, %dil
cmovnel %edx, %esi
instead of
andl $8, %edi
shrl $3, %edi
cmovnel %edx, %esi
which we formed previously because dag combiner canonicalizes setcc of and into shift.
llvm-svn: 207088
|
| |
|
|
|
|
| |
handling them in isVectorizableIntrinsic function.
llvm-svn: 207085
|
| |
|
|
| |
llvm-svn: 207083
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added support for bytes replication feature, so it could be GAS compatible.
E.g. instructions below:
"vmov.i32 d0, 0xffffffff"
"vmvn.i32 d0, 0xabababab"
"vmov.i32 d0, 0xabababab"
"vmov.i16 d0, 0xabab"
are incorrect, but we could deal with such cases.
For first one we should emit:
"vmov.i8 d0, 0xff"
For second one ("vmvn"):
"vmov.i8 d0, 0x54"
For last two instructions it should emit:
"vmov.i8 d0, 0xab"
P.S.: In ARMAsmParser.cpp I have also fixed few nearby style issues in old code.
Just for keeping method bodies in harmony with themselves.
llvm-svn: 207080
|
| |
|
|
| |
llvm-svn: 207061
|
| |
|
|
| |
llvm-svn: 207060
|
| |
|
|
| |
llvm-svn: 207059
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This excludes avx512 as I don't have hardware to verify. It excludes _dq
variants because they are represented in the IR as <{2,4} x i64> when it's
actually a byte shift of the entire i{128,265}.
This also excludes _dq_bs as they aren't at all supported by the backend.
There are also no corresponding instructions in the ISA. I have no idea why
they exist...
llvm-svn: 207058
|
| |
|
|
| |
llvm-svn: 207057
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Since the upper 64 bits of the destination register are undefined when
performing this operation, we can substitute it and let the optimizer
figure out that only a copy is needed.
Also added range merging, if an instruction copies a range that can be
merged with a previous copied range.
Added test cases for both optimizations.
Reviewers: grosbach, nadav
CC: llvm-commits
Differential Revision: http://reviews.llvm.org/D3357
llvm-svn: 207055
|
| |
|
|
| |
llvm-svn: 207054
|
| |
|
|
|
|
| |
values rather than having pointers in weird places.
llvm-svn: 207053
|
| |
|
|
|
|
| |
Fix for r207049 which would've emitted no accelerated names at all...
llvm-svn: 207051
|
| |
|
|
| |
llvm-svn: 207050
|
| |
|
|
|
|
| |
(similar changes coming for the other accelerator tables)
llvm-svn: 207049
|
| |
|
|
|
|
| |
iterator, returning a Node by reference on dereference.
llvm-svn: 207048
|
| |
|
|
|
|
|
|
| |
return references to better model this property.
No functionality changed.
llvm-svn: 207047
|
| |
|
|
|
|
|
|
|
|
| |
than functions. So far, this access pattern is *much* more common. It
seems likely that any user of this interface is going to have nodes at
the point that they are querying the SCCs.
No functionality changed.
llvm-svn: 207045
|
| |
|
|
| |
llvm-svn: 207044
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
values rather than an expensive dense map query to test whether children
have already been popped into an SCC. This matches the incremental SCC
building code. I've also included the assert that I put there but
updated both of their text.
No functionality changed here.
I still don't have any great ideas for sharing the code between the two
implementations, but I may try a brute-force approach to factoring it at
some point.
llvm-svn: 207042
|
| |
|
|
|
|
|
|
| |
GCOV provides an option to prepend output file names with the source
file name, to disambiguate between covered data that's included from
multiple sources. Add a flag to llvm-cov that does the same.
llvm-svn: 207035
|
| |
|
|
|
|
|
| |
Emit the flag to indicate to the assembler that a section contains data if there
is pre-populated data present.
llvm-svn: 207028
|
| |
|
|
|
|
|
|
|
| |
There's only ever one address pool, not one per DWARF output file, so
let's just have one.
(similar refactoring of the string pool to come soon)
llvm-svn: 207026
|
| |
|
|
| |
llvm-svn: 207025
|
| |
|
|
| |
llvm-svn: 207023
|
| |
|
|
| |
llvm-svn: 207022
|
| |
|
|
|
|
| |
These places are inconsequential in practice.
llvm-svn: 207021
|