oota-llvm.git
10 years ago[AArch64] Overload NEON signed/unsigned integer convert to floating-point
Chad Rosier [Tue, 10 Dec 2013 21:33:50 +0000 (21:33 +0000)]
[AArch64] Overload NEON signed/unsigned integer convert to floating-point
LLVM AArch64 intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196962 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoR600/SI: Add i64 cmp tests
Matt Arsenault [Tue, 10 Dec 2013 21:11:55 +0000 (21:11 +0000)]
R600/SI: Add i64 cmp tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196960 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix gcc warnings.
Matt Arsenault [Tue, 10 Dec 2013 18:55:37 +0000 (18:55 +0000)]
Fix gcc warnings.

Unused variable and unused typedef in release build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196947 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoReland "Fix miscompile of MS inline assembly with stack realignment"
Reid Kleckner [Tue, 10 Dec 2013 18:27:32 +0000 (18:27 +0000)]
Reland "Fix miscompile of MS inline assembly with stack realignment"

This re-lands commit r196876, which was reverted in r196879.

The tests have been fixed to pass on platforms with a stack alignment
larger than 4.

Update to clang side tests will land shortly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196939 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake Triple's isOSBinFormatXXX functions partition triple-space.
Tim Northover [Tue, 10 Dec 2013 16:57:43 +0000 (16:57 +0000)]
Make Triple's isOSBinFormatXXX functions partition triple-space.

Most users would be surprised if "isCOFF" and "isMachO" were simultaneously
true, unless they'd put the compiler in a box with a gun attached to a photon
detector.

This makes sure precisely one of the three formats is true for any triple and
simplifies some target logic based on that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196934 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSupport: Update documentation for Program functions
Alp Toker [Tue, 10 Dec 2013 16:31:09 +0000 (16:31 +0000)]
Support: Update documentation for Program functions

The docstrings were describing an older interface that has been replaced with
functions.

Also describe the performance characteristics of FindProgramByName() and
ExecuteAndWait() explaining when it's best to avoid them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196932 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Refactor the Neon vector/scalar floating-point convert intrinsics so
Chad Rosier [Tue, 10 Dec 2013 16:11:39 +0000 (16:11 +0000)]
[AArch64] Refactor the Neon vector/scalar floating-point convert 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@196930 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Refactor the Neon vector/scalar floating-point convert implementation.
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

10 years agoEnsure that the backend no longer emits unnecessary vector insert instructions
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

10 years agoUse Field Lists for the types' "Overview", "Syntax" and "Examples".
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

10 years agoR600: Fix an infinite loop when trying to reorganize export/tex vector input
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

10 years agoR600: Fix input modifiers lost for Cayman
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

10 years agoNext step in Mips16 prologue/epilogue cleanup.
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

10 years agoAVX-512: changed intrinsics for mask operations
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

10 years agoAVX-512: Changed intrinsics of VPCONFLICT to match GCC builtin form
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

10 years agoDarwin: update default iOS version to 5.0
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

10 years ago[CMake] Add MCDisassembler to tools/lto. (has been removed since r196908)
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

10 years ago[mips][msa] Correct sld and sldi builtins.
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

10 years ago[CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.
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

10 years agoAdd JIT to LINK_COMPONENTS in MCJITTests/Makefile.
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

10 years agoAdd TargetLowering::prepareVolatileOrAtomicLoad
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

10 years agoAdd TargetLowering::prepareVolatileOrAtomicLoad
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

10 years ago[CMake] lli/CMakeLists.txt: Move add_subdirectory(ChildTarget) to the front. It depen...
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

10 years ago[AArch64 NEON] Replace fpimm with fpz32 for floating compare with zero.
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

10 years ago[AArch64 NEON] Support poly128_t and implement relevant intrinsic.
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

10 years agoGCOV.cpp: Use PRIu64 instead of %lu.
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

10 years agoAdd proper dependencies to LLVMBuild.txt in llvm/lib.
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

10 years agoWhitespaces.
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

10 years agoRevert "Fix miscompile of MS inline assembly with stack realignment"
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

10 years agoFix miscompile of MS inline assembly with stack realignment
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

10 years agoFix a crash that occurs when PWD is invalid.
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

10 years agowhitespace
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

10 years agoFix PR18162 - Incorrect assertion assumed that the SDValue resno is zero.
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

10 years agoUpdate testcase for previous commit.
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

10 years agollvm-cov: Added -a option for block data.
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

10 years agoDisable emitting DW_AT_GNU_ranges_base until we actually use it.
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

10 years agoAdd comments documenting the ARM datalayout string.
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

10 years agoWe never emit info into the macro info section, stop emitting an
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

10 years ago80-col.
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

10 years agoSimplify further.
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

10 years agoTransforms: Don't create bad branch weights when folding a switch
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

10 years agoRename CompileUnit->DwarfCompileUnit and TypeUnit->DwarfTypeUnit for
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

10 years agoRefactor the construction of the DataLayout string on ARM.
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

10 years agoRename Unit->DwarfUnit to match the file name and make it a bit less
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

10 years ago[AArch64] Refactor the NEON scalar reduce pairwise intrinsics, so that they use
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

10 years ago[AArch64] Refactor NEON scalar reduce pairwise front-end codegen to remove
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

10 years ago[AArch64] Remove q and non-q intrinsic definitions in the NEON scalar reduce
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

10 years agoget rid of superfluous comment
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

10 years agoDelete some old code used for testing that is not needed anymore.
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

10 years agoDon't add suffixes for stdcall/fastcall on 64 coff.
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

10 years agoUse a more direct check for finding out the file type.
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

10 years agoDon't set a variable to its default value.
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

10 years agoFix pattern match for movi with 0D result
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

10 years agoDwarfDebug/Unit: Remove another case of label recreation by storing the gnu_ranges...
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

10 years agoImprove the detection of the path
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

10 years ago[mips][msa] Fix invalid generated code when lowering FrameIndex involving unaligned...
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

10 years ago[mips][msa] Fix suboptimal FrameIndex lowering for ld.[hwd] and st.[hwd]
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

10 years agoMethod parseSetAssignment treats every operand with '$' sign as register and the...
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

10 years agoADT: Implement MutableArrayRef::reverse_iterator
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

10 years ago[SPARCV9]: Adjust the resultant pointer of DYNAMIC_STACKALLOC with the stack BIAS...
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

10 years ago[Sparc]: Implement getSetCCResultType() in SparcTargetLowering so that umulo/smulo...
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

10 years ago[AArch64]Add missing pair intrinsics such as:
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

10 years ago[AArch64]Pattern match failures for truncate store and extend load
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

10 years ago[SparcV9]: Expand MULHU/MULHS:i64 and UMUL_LOHI/SMUL_LOHI:i64 on sparcv9.
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

10 years agoRevert 196544 due to internal bot failures.
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

10 years agoMake sure we mark these registers as defined. Previously was done
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

10 years agoCleaning up of prologue/epilogue code for Mips16. First step
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

10 years agoARM: fix folding of stack-adjustment (yet again).
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

10 years agoFixed CRLF
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

10 years agoEnsure bitcode encoding of visibility styles stays stable. Patch by Boaz Ouriel.
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

10 years agoFix comments for PassDebuggingString
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

10 years agoFix inlining to not lose the "cleanup" clause from landingpads
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

10 years agoFix inlining to not produce duplicate landingpad clauses
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

10 years agoforce vector width via cpu on vectorizer metadata enable
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

10 years agoDon't #include heavy Dominators.h file in LoopInfo.h. This change reduces
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

10 years agoRemove the notion of primitive types.
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

10 years agoWhitespace cleanups.
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

10 years agoRemove empty MCJIT/load-object-a.ll since r196641.
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

10 years agoFactor out the SchedRemainder/SchedBoundary from GenericScheduler strategy.
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

10 years agoRevert r196639 while I investigate a bot failure.
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

10 years agoCorrect think-o in foldPatchpoint. Thanks to Andy Trick for pointing it out.
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

10 years agoAdd support for archives and object file caching under MCJIT.
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

10 years agoFix assert with copy from global through addrspacecast
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

10 years agoAdd getBitCastOrAddrSpaceCast
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

10 years ago[mips] Fix test case.
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

10 years agoRemove unused value.
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

10 years agoAdd a RequireStructuredCFG Field to TargetMachine.
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

10 years agoR600: Remove orphaned declarations
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

10 years agollvm-cov: Added test.h header to tests.
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

10 years agoFix the segfault reported in PR 11990.
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

10 years agoFix a narrowing warning due to a type mismatch (size_t vs uint64).
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

10 years agoCache AllowAtInIdentifier as class variable in AsmLexer
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

10 years agoSupport: Fix handling of args that begin with @ but aren't files
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

10 years agoAdded support for mcpu krait
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

10 years agoDebugInfo: Move unit begin/end labels into the unit
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

10 years agoDebugInfo: Include the section and start-of-section label in the unit
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

10 years agoDon't use isNullValue to evaluate ConstantExpr
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

10 years agollvm-cov: Regenerated gcov files with r195513 changes.
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

10 years agoIntegrated assembler incorrectly lexes ARM-style comments
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

10 years agomicro optimization: isSizedDerivedType is only called with arrays, vectors and structs.
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