Chad Rosier [Tue, 10 Dec 2013 15:35:33 +0000 (15:35 +0000)]
[AArch64] Refactor the Neon vector/scalar floating-point convert implementation.
Specifically, reuse the ARM intrinsics when possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196926
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrea Di Biagio [Tue, 10 Dec 2013 15:22:48 +0000 (15:22 +0000)]
Ensure that the backend no longer emits unnecessary vector insert instructions
immediately after SSE scalar fp instructions like addss or mulss.
Added patterns to select SSE scalar fp arithmetic instructions from a scalar
fp operation followed by a blend.
For example, given the following code:
__m128 foo(__m128 A, __m128 B) {
A[0] += B[0];
return A;
}
previously we generated:
addss %xmm0, %xmm1
movss %xmm1, %xmm0
now we generate:
addss %xmm1, %xmm0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196925
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 10 Dec 2013 14:53:22 +0000 (14:53 +0000)]
Use Field Lists for the types' "Overview", "Syntax" and "Examples".
Thanks to Sean Silva for the suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196924
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Tue, 10 Dec 2013 14:43:31 +0000 (14:43 +0000)]
R600: Fix an infinite loop when trying to reorganize export/tex vector input
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196923
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Tue, 10 Dec 2013 14:43:27 +0000 (14:43 +0000)]
R600: Fix input modifiers lost for Cayman
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196922
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Tue, 10 Dec 2013 14:29:38 +0000 (14:29 +0000)]
Next step in Mips16 prologue/epilogue cleanup.
Save S2(reg 18) only when we are calling floating point stubs that
have a return value of float or complex. Some more work to make this
better but this is the first step.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196921
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Tue, 10 Dec 2013 13:53:10 +0000 (13:53 +0000)]
AVX-512: changed intrinsics for mask operations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196918
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Tue, 10 Dec 2013 11:58:35 +0000 (11:58 +0000)]
AVX-512: Changed intrinsics of VPCONFLICT to match GCC builtin form
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196914
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Tue, 10 Dec 2013 11:53:16 +0000 (11:53 +0000)]
Darwin: update default iOS version to 5.0
Defaulting to iOS 3.0 when LLVM has to guess the version is no longer a useful
option and can give surprising results (like tail calls being disabled).
5.0 seems like a reasonable compromise as a platform that's still interesting
to some people.
rdar://problem/
15567348
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196912
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 10 Dec 2013 11:50:34 +0000 (11:50 +0000)]
[CMake] Add MCDisassembler to tools/lto. (has been removed since r196908)
lto.exports really exports LLVM-C Disasm stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196911
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Tue, 10 Dec 2013 11:37:00 +0000 (11:37 +0000)]
[mips][msa] Correct sld and sldi builtins.
Summary: The result register of these instructions is also the first operand.
Reviewers: jacksprat, dsanders
Reviewed By: dsanders
Differential Revision: http://llvm-reviews.chandlerc.com/D2362
Differential Revision: http://llvm-reviews.chandlerc.com/D2363
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196910
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 10 Dec 2013 11:13:32 +0000 (11:13 +0000)]
[CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196908
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 10 Dec 2013 11:12:35 +0000 (11:12 +0000)]
Add JIT to LINK_COMPONENTS in MCJITTests/Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196907
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 10 Dec 2013 10:49:34 +0000 (10:49 +0000)]
Add TargetLowering::prepareVolatileOrAtomicLoad
One unusual feature of the z architecture is that the result of a
previous load can be reused indefinitely for subsequent loads, even if
a cache-coherent store to that location is performed by another CPU.
A special serializing instruction must be used if you want to force
a load to be reattempted.
Since volatile loads are not supposed to be omitted in this way,
we should insert a serializing instruction before each such load.
The same goes for atomic loads.
The patch implements this at the IR->DAG boundary, in a similar way
to atomic fences. It is a no-op for targets other than SystemZ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196906
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Tue, 10 Dec 2013 10:36:34 +0000 (10:36 +0000)]
Add TargetLowering::prepareVolatileOrAtomicLoad
One unusual feature of the z architecture is that the result of a
previous load can be reused indefinitely for subsequent loads, even if
a cache-coherent store to that location is performed by another CPU.
A special serializing instruction must be used if you want to force
a load to be reattempted.
Since volatile loads are not supposed to be omitted in this way,
we should insert a serializing instruction before each such load.
The same goes for atomic loads.
The patch implements this at the IR->DAG boundary, in a similar way
to atomic fences. It is a no-op for targets other than SystemZ.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196905
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 10 Dec 2013 10:30:08 +0000 (10:30 +0000)]
[CMake] lli/CMakeLists.txt: Move add_subdirectory(ChildTarget) to the front. It depends on nothing described in LLVM_LINK_COMPONENTS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196902
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Qin [Tue, 10 Dec 2013 06:51:07 +0000 (06:51 +0000)]
[AArch64 NEON] Replace fpimm with fpz32 for floating compare with zero.
This is a small change to be strict. Just want get pattern safer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196889
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Qin [Tue, 10 Dec 2013 06:48:35 +0000 (06:48 +0000)]
[AArch64 NEON] Support poly128_t and implement relevant intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196887
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 10 Dec 2013 05:39:40 +0000 (05:39 +0000)]
GCOV.cpp: Use PRIu64 instead of %lu.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196882
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 10 Dec 2013 05:39:34 +0000 (05:39 +0000)]
Add proper dependencies to LLVMBuild.txt in llvm/lib.
I'll prune redundant deps in LLVMBuild.txt, later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196881
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Tue, 10 Dec 2013 05:39:12 +0000 (05:39 +0000)]
Whitespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196880
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Kleckner [Tue, 10 Dec 2013 05:31:27 +0000 (05:31 +0000)]
Revert "Fix miscompile of MS inline assembly with stack realignment"
This reverts commit r196876. Its tests failed on the bots, so I'll
figure it out tomorrow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196879
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Kleckner [Tue, 10 Dec 2013 05:12:23 +0000 (05:12 +0000)]
Fix miscompile of MS inline assembly with stack realignment
For stack frames requiring realignment, three pointers may be needed:
- ebp to address incoming arguments
- esi (could be any callee-saved register) to address locals
- esp to address outgoing arguments
We would use esi unconditionally without verifying that it did not
conflict with inline assembly.
This change doesn't do the verification, it simply emits a fatal error
on functions that use stack realignment, dynamic SP adjustments, and
inline assembly.
Because stack realignment is common on Windows, we also no longer assume
that MS inline assembly clobbers esp. Instead, we analyze the inline
instructions for implicit definitions and check if esp is there. If so,
we require the use of a base pointer and consider it in the condition
above.
Mostly fixes PR16830, but we could try harder to find a non-conflicting
base pointer.
Reviewers: sunfish
Differential Revision: http://llvm-reviews.chandlerc.com/D1317
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196876
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 10 Dec 2013 04:39:09 +0000 (04:39 +0000)]
Fix a crash that occurs when PWD is invalid.
MCJIT needs to be able to run in hostile environments, even when PWD
is invalid. There's no need to crash MCJIT in this case.
The obvious fix is to simply leave MCContext's CompilationDir empty
when PWD can't be determined. This way, MCJIT clients,
and other clients that link with LLVM don’t need a valid working directory.
If we do want to guarantee valid CompilationDir, that should be done
only for clients of getCompilationDir(). This is as simple as checking
for an empty string.
The only current use of getCompilationDir is EmitGenDwarfInfo, which
won’t conceivably run with an invalid working dir. However, in the
purely hypothetically and untestable case that this happens, the
AT_comp_dir will be omitted from the compilation_unit DIE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196874
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Tue, 10 Dec 2013 04:39:05 +0000 (04:39 +0000)]
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196873
91177308-0d34-0410-b5e6-
96231b3b80d8
Nadav Rotem [Tue, 10 Dec 2013 01:13:59 +0000 (01:13 +0000)]
Fix PR18162 - Incorrect assertion assumed that the SDValue resno is zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196858
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 10 Dec 2013 01:12:16 +0000 (01:12 +0000)]
Update testcase for previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196857
91177308-0d34-0410-b5e6-
96231b3b80d8
Yuchen Wu [Tue, 10 Dec 2013 01:02:07 +0000 (01:02 +0000)]
llvm-cov: Added -a option for block data.
Similar to gcov, llvm-cov will now print out the block count at the end
of each block. Multiple blocks can end on the same line.
One computational difference is by using -a, llvm-cov will no longer
simply add the block counts together to form a line count. Instead, it
will take the maximum of the block counts on that line. This has a
similar effect to what gcov does, but generates more correct counts in
certain scenarios.
Also updated tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196856
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 10 Dec 2013 00:40:03 +0000 (00:40 +0000)]
Disable emitting DW_AT_GNU_ranges_base until we actually use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196851
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 10 Dec 2013 00:37:37 +0000 (00:37 +0000)]
Add comments documenting the ARM datalayout string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196850
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 10 Dec 2013 00:26:10 +0000 (00:26 +0000)]
We never emit info into the macro info section, stop emitting an
empty one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196849
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Tue, 10 Dec 2013 00:26:06 +0000 (00:26 +0000)]
80-col.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196848
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 10 Dec 2013 00:15:35 +0000 (00:15 +0000)]
Simplify further.
Thanks to Jim Grosbach for noticing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196846
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Bogner [Tue, 10 Dec 2013 00:13:41 +0000 (00:13 +0000)]
Transforms: Don't create bad branch weights when folding a switch
This avoids creating branch weight metadata of length one when we fold
cases into the default of a switch instruction, which was triggering
an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196845
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 9 Dec 2013 23:57:44 +0000 (23:57 +0000)]
Rename CompileUnit->DwarfCompileUnit and TypeUnit->DwarfTypeUnit for
clarity. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196844
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 9 Dec 2013 23:56:41 +0000 (23:56 +0000)]
Refactor the construction of the DataLayout string on ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196843
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 9 Dec 2013 23:32:48 +0000 (23:32 +0000)]
Rename Unit->DwarfUnit to match the file name and make it a bit less
ambiguous. Reformat to match.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196838
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 9 Dec 2013 22:47:38 +0000 (22:47 +0000)]
[AArch64] Refactor the NEON scalar reduce pairwise intrinsics, so that they use
float/double rather than the vector equivalents when appropriate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196833
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 9 Dec 2013 22:47:34 +0000 (22:47 +0000)]
[AArch64] Refactor NEON scalar reduce pairwise front-end codegen to remove
unnecessary patterns in tablegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196832
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Mon, 9 Dec 2013 22:47:31 +0000 (22:47 +0000)]
[AArch64] Remove q and non-q intrinsic definitions in the NEON scalar reduce
pairwise implementation, using an overloaded definition instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196831
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Mon, 9 Dec 2013 22:08:32 +0000 (22:08 +0000)]
get rid of superfluous comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196829
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Mon, 9 Dec 2013 21:19:51 +0000 (21:19 +0000)]
Delete some old code used for testing that is not needed anymore.
This is part of the mips16 epilogue/prologue cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196824
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 9 Dec 2013 20:44:48 +0000 (20:44 +0000)]
Don't add suffixes for stdcall/fastcall on 64 coff.
This matches the behavior of both msvc and mingw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196814
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 9 Dec 2013 20:26:40 +0000 (20:26 +0000)]
Use a more direct check for finding out the file type.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196811
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 9 Dec 2013 19:36:11 +0000 (19:36 +0000)]
Don't set a variable to its default value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196807
91177308-0d34-0410-b5e6-
96231b3b80d8
Ana Pazos [Mon, 9 Dec 2013 19:29:14 +0000 (19:29 +0000)]
Fix pattern match for movi with 0D result
Patch by Jiangning Liu.
With some test case changes:
- intrinsic test added to the existing /test/CodeGen/AArch64/neon-aba-abd.ll.
- New test cases to cover movi 1D scenario without using the intrinsic in
test/CodeGen/AArch64/neon-mov.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196806
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Mon, 9 Dec 2013 17:51:30 +0000 (17:51 +0000)]
DwarfDebug/Unit: Remove another case of label recreation by storing the gnu_ranges label in the unit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196793
91177308-0d34-0410-b5e6-
96231b3b80d8
Sylvestre Ledru [Mon, 9 Dec 2013 16:27:00 +0000 (16:27 +0000)]
Improve the detection of the path
Summary:
When clang is used under GNU/Linux in a chroot without /proc mount, it falls
back on the BSD method. However, since the buf variable is used twice
and fails with snprintf to produce the correct path.
When called as relatived (ie ./clang), it was failing with:
"" -cc1 [...] -x c++ x.cc
error: unable to execute command: Executable "" doesn't exist!
I also took the opportunity to simply the code (the first arg of test_dir
was useless).
Reviewers: rafael
Reviewed By: rafael
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2361
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196791
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Mon, 9 Dec 2013 12:47:12 +0000 (12:47 +0000)]
[mips][msa] Fix invalid generated code when lowering FrameIndex involving unaligned offsets.
Summary:
The MSA ld.[bhwd] and st.[bhwd] instructions scale the immediate by the
element size before use as an offset. The offset must therefore be a
multiple of the element size to be valid in these instructions. However,
an unaligned base address is valid in MSA.
This commit causes the compiler to emit valid code when the calculated
offset is not a multiple of the element size by accounting for the offset
using addiu and using a zero offset in the load/store.
Depends on D2338
Reviewers: matheusalmeida
Reviewed By: matheusalmeida
Differential Revision: http://llvm-reviews.chandlerc.com/D2339
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196777
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Mon, 9 Dec 2013 11:50:16 +0000 (11:50 +0000)]
[mips][msa] Fix suboptimal FrameIndex lowering for ld.[hwd] and st.[hwd]
Summary:
The immediate in these instructions is scaled before use as an offset.
They therefore have a wider reach than ld.b/st.b.
Reviewers: matheusalmeida
Reviewed By: matheusalmeida
Differential Revision: http://llvm-reviews.chandlerc.com/D2338
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196775
91177308-0d34-0410-b5e6-
96231b3b80d8
Vladimir Medic [Mon, 9 Dec 2013 11:03:25 +0000 (11:03 +0000)]
Method parseSetAssignment treats every operand with '$' sign as register and the parsing is directed to set alias for register. This will result in errors reported when expressions containing label references are parsed(for example long jumps)
As we can't make a complete solution now it has been decided to enable .set directive to handle long jump expressions. This will cause parser to report errors when parsing integer based register assignments, for example:
.set r3, will be reported as error. Still, the need for expressions is higher priority as the integer based register assignments are Mips specific and can be avoided using register names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196773
91177308-0d34-0410-b5e6-
96231b3b80d8
David Majnemer [Mon, 9 Dec 2013 09:04:00 +0000 (09:04 +0000)]
ADT: Implement MutableArrayRef::reverse_iterator
This adds rbegin/rend methods to MutableArrayRef, they will be used by a
follow-on commit in clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196768
91177308-0d34-0410-b5e6-
96231b3b80d8
Venkatraman Govindaraju [Mon, 9 Dec 2013 05:13:25 +0000 (05:13 +0000)]
[SPARCV9]: Adjust the resultant pointer of DYNAMIC_STACKALLOC with the stack BIAS on sparcV9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196755
91177308-0d34-0410-b5e6-
96231b3b80d8
Venkatraman Govindaraju [Mon, 9 Dec 2013 04:02:15 +0000 (04:02 +0000)]
[Sparc]: Implement getSetCCResultType() in SparcTargetLowering so that umulo/smulo can be lowered on sparcv9 without an assertion error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196751
91177308-0d34-0410-b5e6-
96231b3b80d8
Hao Liu [Mon, 9 Dec 2013 03:51:42 +0000 (03:51 +0000)]
[AArch64]Add missing pair intrinsics such as:
int32_t vminv_s32(int32x2_t a)
which should be compiled into SMINP Vd.2S,Vn.2S,Vm.2S
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196749
91177308-0d34-0410-b5e6-
96231b3b80d8
Hao Liu [Mon, 9 Dec 2013 03:34:08 +0000 (03:34 +0000)]
[AArch64]Pattern match failures for truncate store and extend load
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196748
91177308-0d34-0410-b5e6-
96231b3b80d8
Venkatraman Govindaraju [Sun, 8 Dec 2013 22:06:07 +0000 (22:06 +0000)]
[SparcV9]: Expand MULHU/MULHS:i64 and UMUL_LOHI/SMUL_LOHI:i64 on sparcv9.
This fixes PR18150.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196735
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Sun, 8 Dec 2013 20:28:33 +0000 (20:28 +0000)]
Revert 196544 due to internal bot failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196732
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Sun, 8 Dec 2013 19:21:47 +0000 (19:21 +0000)]
Make sure we mark these registers as defined. Previously was done
in the td file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196731
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Sun, 8 Dec 2013 16:51:52 +0000 (16:51 +0000)]
Cleaning up of prologue/epilogue code for Mips16. First step
here is to make save/restore into variable number of argument instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196726
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Sun, 8 Dec 2013 15:56:50 +0000 (15:56 +0000)]
ARM: fix folding of stack-adjustment (yet again).
When trying to eliminate an "sub sp, sp, #N" instruction by folding
it into an existing push/pop using dummy registers, we need to account
for the fact that this might affect precisely how "fp" gets set in the
prologue.
We were attempting this, but assuming that *whenever* we performed a
fold it would make a difference. This is false, for example, in:
push {r4, r7, lr}
add fp, sp, #4
vpush {d8}
sub sp, sp, #8
we can fold the "sub" into the "vpush", forming "vpush {d7, d8}".
However, in that case the "add fp" instruction mustn't change, which
we were getting wrong before.
Should fix PR18160.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196725
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Kuperstein [Sun, 8 Dec 2013 12:16:20 +0000 (12:16 +0000)]
Fixed CRLF
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196719
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Kuperstein [Sun, 8 Dec 2013 11:35:09 +0000 (11:35 +0000)]
Ensure bitcode encoding of visibility styles stays stable. Patch by Boaz Ouriel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196718
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan P. N. Exon Smith [Sun, 8 Dec 2013 01:28:17 +0000 (01:28 +0000)]
Fix comments for PassDebuggingString
No functionality change. Changing comments to match code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196713
91177308-0d34-0410-b5e6-
96231b3b80d8
Mark Seaborn [Sun, 8 Dec 2013 00:51:21 +0000 (00:51 +0000)]
Fix inlining to not lose the "cleanup" clause from landingpads
This fixes PR17872. This bug can lead to C++ destructors not being
called when they should be, when an exception is thrown.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196711
91177308-0d34-0410-b5e6-
96231b3b80d8
Mark Seaborn [Sun, 8 Dec 2013 00:50:58 +0000 (00:50 +0000)]
Fix inlining to not produce duplicate landingpad clauses
Before this change, inlining one "invoke" into an outer "invoke" call
site can lead to the outer landingpad's catch/filter clauses being
copied multiple times into the resulting landingpad. This happens:
* when the inlined function contains multiple "resume" instructions,
because forwardResume() copies the clauses but is called multiple
times;
* when the inlined function contains a "resume" and a "call", because
HandleCallsInBlockInlinedThroughInvoke() copies the clauses but is
redundant with forwardResume().
Fix this by deduplicating the code.
This problem doesn't lead to any incorrect execution; it's only
untidy.
This change will make fixing PR17872 a little easier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196710
91177308-0d34-0410-b5e6-
96231b3b80d8
Renato Golin [Sat, 7 Dec 2013 21:46:08 +0000 (21:46 +0000)]
force vector width via cpu on vectorizer metadata enable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196669
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakub Staszak [Sat, 7 Dec 2013 21:20:17 +0000 (21:20 +0000)]
Don't #include heavy Dominators.h file in LoopInfo.h. This change reduces
overall time of LLVM compilation by ~1%.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196667
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sat, 7 Dec 2013 19:34:20 +0000 (19:34 +0000)]
Remove the notion of primitive types.
They were out of place since the introduction of arbitrary precision integer
types.
This also synchronizes the documentation to Types.h, so it refers to first class
types and single value types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196661
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Sat, 7 Dec 2013 11:21:42 +0000 (11:21 +0000)]
Whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196654
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Sat, 7 Dec 2013 06:17:10 +0000 (06:17 +0000)]
Remove empty MCJIT/load-object-a.ll since r196641.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196645
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Sat, 7 Dec 2013 05:59:44 +0000 (05:59 +0000)]
Factor out the SchedRemainder/SchedBoundary from GenericScheduler strategy.
These helper classes take care of the book-keeping the drives the
GenericScheduler heuristics. It is likely that developers writing
target-specific schedulers that work similarly to GenericScheduler
will want to use these helpers too. The immediate goal is to develop a
GenericPostScheduler that can run in place of the old PostRAScheduler,
but will use the new machine model.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196643
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Sat, 7 Dec 2013 04:25:19 +0000 (04:25 +0000)]
Revert r196639 while I investigate a bot failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196641
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Sat, 7 Dec 2013 03:30:59 +0000 (03:30 +0000)]
Correct think-o in foldPatchpoint. Thanks to Andy Trick for pointing it out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196640
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Sat, 7 Dec 2013 03:05:51 +0000 (03:05 +0000)]
Add support for archives and object file caching under MCJIT.
Patch by Andy Kaylor, with minor edits to resolve merge conflicts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196639
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Sat, 7 Dec 2013 02:58:45 +0000 (02:58 +0000)]
Fix assert with copy from global through addrspacecast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196638
91177308-0d34-0410-b5e6-
96231b3b80d8
Matt Arsenault [Sat, 7 Dec 2013 02:58:41 +0000 (02:58 +0000)]
Add getBitCastOrAddrSpaceCast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196637
91177308-0d34-0410-b5e6-
96231b3b80d8
Akira Hatanaka [Sat, 7 Dec 2013 02:48:29 +0000 (02:48 +0000)]
[mips] Fix test case.
Indent the command lines to indicate they continue from previous lines. Also,
fix incorrect uses of CHECK-DAG and CHECK-NOT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196636
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sat, 7 Dec 2013 02:27:52 +0000 (02:27 +0000)]
Remove unused value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196635
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Sat, 7 Dec 2013 01:49:19 +0000 (01:49 +0000)]
Add a RequireStructuredCFG Field to TargetMachine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196634
91177308-0d34-0410-b5e6-
96231b3b80d8
Vincent Lejeune [Sat, 7 Dec 2013 01:49:10 +0000 (01:49 +0000)]
R600: Remove orphaned declarations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196633
91177308-0d34-0410-b5e6-
96231b3b80d8
Yuchen Wu [Sat, 7 Dec 2013 01:28:11 +0000 (01:28 +0000)]
llvm-cov: Added test.h header to tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196632
91177308-0d34-0410-b5e6-
96231b3b80d8
Kaelyn Uhrain [Sat, 7 Dec 2013 00:13:34 +0000 (00:13 +0000)]
Fix the segfault reported in PR 11990.
The sefault occurs due to an infinite loop when the verifier tries to
determine the size of a type of the form "%rt = type { %rt }" while
checking an alloca of the type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196626
91177308-0d34-0410-b5e6-
96231b3b80d8
Kaelyn Uhrain [Fri, 6 Dec 2013 23:09:24 +0000 (23:09 +0000)]
Fix a narrowing warning due to a type mismatch (size_t vs uint64).
lib/Transforms/Instrumentation/AddressSanitizer.cpp:1405:36: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
getAllocaSizeInBytes(AI),
^~~~~~~~~~~~~~~~~~~~~~~~
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196623
91177308-0d34-0410-b5e6-
96231b3b80d8
David Peixotto [Fri, 6 Dec 2013 23:05:33 +0000 (23:05 +0000)]
Cache AllowAtInIdentifier as class variable in AsmLexer
This commit caches the value of the AllowAtInIdentifier variable as
a class variable in AsmLexer. We do this to avoid repeated MAI
queries and string comparisons each time we lex an identifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196622
91177308-0d34-0410-b5e6-
96231b3b80d8
Justin Bogner [Fri, 6 Dec 2013 22:56:19 +0000 (22:56 +0000)]
Support: Fix handling of args that begin with @ but aren't files
Command line arguments that begin with @ but aren't a path to an
existing file currently cause later @file arguments to be ignored.
Correctly skip over these arguments instead of trying to read a
non-existent file 20 times and giving up.
Since the problem manifests in the clang driver, the test is in that
repository.
Fixes rdar://problem/
15590906
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196620
91177308-0d34-0410-b5e6-
96231b3b80d8
Ana Pazos [Fri, 6 Dec 2013 22:48:17 +0000 (22:48 +0000)]
Added support for mcpu krait
- krait processor currently modeled with the same features as A9.
- Krait processor additionally has VFP4 (fused multiply add/sub)
and hardware division features enabled.
- krait has currently the same Schedule model as A9
- krait cpu flag is not recognized by the GNU assembler yet,
it is replaced with march=armv7-a to avoid a lower march
from being used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196619
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 6 Dec 2013 22:33:05 +0000 (22:33 +0000)]
DebugInfo: Move unit begin/end labels into the unit
This removes another case of spooky action at a distance (building the
same label names in multiple places creating an implicit dependency
between those places) and helps pave the way for type units.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196617
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 6 Dec 2013 22:14:48 +0000 (22:14 +0000)]
DebugInfo: Include the section and start-of-section label in the unit
This is a precursor to moving type units into the correct (debug_types)
section with comdat groups and full type unit headers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196615
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan P. N. Exon Smith [Fri, 6 Dec 2013 21:48:36 +0000 (21:48 +0000)]
Don't use isNullValue to evaluate ConstantExpr
ConstantExpr can evaluate to false even when isNullValue gives false.
Fixes PR18143.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196611
91177308-0d34-0410-b5e6-
96231b3b80d8
Yuchen Wu [Fri, 6 Dec 2013 21:33:50 +0000 (21:33 +0000)]
llvm-cov: Regenerated gcov files with r195513 changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196609
91177308-0d34-0410-b5e6-
96231b3b80d8
David Peixotto [Fri, 6 Dec 2013 20:35:58 +0000 (20:35 +0000)]
Integrated assembler incorrectly lexes ARM-style comments
The integrated assembler fails to properly lex arm comments when
they are adjacent to an identifier in the input stream. The reason
is that the arm comment symbol '@' is also used as symbol variant in
other assembly languages so when lexing an identifier it allows the
'@' symbol as part of the identifier.
Example:
$ cat comment.s
foo:
add r0, r0@got to parse this as a comment
$ llvm-mc -triple armv7 comment.s
comment.s:4:18: error: unexpected token in argument list
add r0, r0@got to parse this as a comment
^
This should be parsed as correctly as `add r0, r0`.
This commit modifes the assembly lexer to not include the '@' symbol
in identifiers when lexing for targets that use '@' for comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196607
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 6 Dec 2013 20:12:19 +0000 (20:12 +0000)]
micro optimization: isSizedDerivedType is only called with arrays, vectors and structs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196604
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 6 Dec 2013 19:38:49 +0000 (19:38 +0000)]
DwarfDebug: Walk skeletons during fission pubtypes/pubnames emission
This more accurately represents the actual walk - pubnames/pubtypes are
emitted into the .o, not the .dwo, and reference the skeletons not the
full units.
Use the newly established ID->index invariant to lookup the underlying
full unit to retrieve its public names and types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196601
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 6 Dec 2013 19:38:46 +0000 (19:38 +0000)]
DebugInfo: Ensure unit IDs (for non-skeletal units) match thein index in the list
This simplifies reasoning about the code and enables simple navigation
from a skeleton to its full unit. (currently there are no type unit
skeletons, so the skeleton list doesn't have the same ID == index
property)
Eventually we should get rid of this ID and just store the labels we
need as the IDs are allowing this code to create difficult to
manage/understand associations (loops over non-skeletal units are
implicitly referencing their skeletal units during pub* emission, for
example). It may be necessary to have some kind of skeleton->full unit
association and a more direct pointer or similar device would be
preferable than an index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196600
91177308-0d34-0410-b5e6-
96231b3b80d8
Weiming Zhao [Fri, 6 Dec 2013 17:56:48 +0000 (17:56 +0000)]
Bug 18149: [AArch32] VSel instructions has no ARMCC field
The current peephole optimizing for compare inst assumes an instr that
uses CPSR has an MO for ARM Cond code.However, for VSEL instructions
(vseqeq, vselgt, vselgt, vselvs), there is no such operand nor do
they support the modification of Cond Code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196588
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Trick [Fri, 6 Dec 2013 17:19:20 +0000 (17:19 +0000)]
comment grammar
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196585
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron McInally [Fri, 6 Dec 2013 13:35:35 +0000 (13:35 +0000)]
Update AVX512 vector blend intrinsic names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196581
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Fri, 6 Dec 2013 09:59:12 +0000 (09:59 +0000)]
[SystemZ] Use LOAD AND TEST for comparisons with -0
...since it os equivalent to comparison with +0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196580
91177308-0d34-0410-b5e6-
96231b3b80d8
Richard Sandiford [Fri, 6 Dec 2013 09:56:50 +0000 (09:56 +0000)]
[SystemZ] Extend the use of C(L)GFR
instcombine prefers to put extended operands first, so this patch
handles that case for C(L)GFR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196579
91177308-0d34-0410-b5e6-
96231b3b80d8