OSDN Git Service

android-x86/external-llvm.git
8 years agoAdd writeonly IR attribute
Nicolai Haehnle [Mon, 4 Jul 2016 08:01:29 +0000 (08:01 +0000)]
Add writeonly IR attribute

Summary:
This complements the earlier addition of IntrWriteMem and IntrWriteArgMem
LLVM intrinsic properties, see D18291.

Also start using the attribute for memset, memcpy, and memmove intrinsics,
and remove their special-casing in BasicAliasAnalysis.

Reviewers: reames, joker.eph

Subscribers: joker.eph, llvm-commits

Differential Revision: http://reviews.llvm.org/D18714

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

8 years ago[CodeGen] Make the code that detects a if a shuffle is really a concatenation of...
Craig Topper [Mon, 4 Jul 2016 06:19:35 +0000 (06:19 +0000)]
[CodeGen] Make the code that detects a if a shuffle is really a concatenation of the inputs more general purpose.

We can now handle concatenation of each source multiple times. The previous code just checked for each source to appear once in either order.

This also now handles an entire source vector sized piece having undef indices correctly. We now concat with UNDEF instead of using one of the sources. This is responsible for the test case change.

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

8 years agoReformat blank lines.
NAKAMURA Takumi [Mon, 4 Jul 2016 01:26:33 +0000 (01:26 +0000)]
Reformat blank lines.

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

8 years agoReformat comment lines.
NAKAMURA Takumi [Mon, 4 Jul 2016 01:26:27 +0000 (01:26 +0000)]
Reformat comment lines.

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

8 years agoUntabify.
NAKAMURA Takumi [Mon, 4 Jul 2016 01:26:21 +0000 (01:26 +0000)]
Untabify.

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

8 years agoReformat.
NAKAMURA Takumi [Mon, 4 Jul 2016 01:26:14 +0000 (01:26 +0000)]
Reformat.

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

8 years ago[X86] Add shuffle mask rescaling helper function. NFCI.
Simon Pilgrim [Sun, 3 Jul 2016 21:28:17 +0000 (21:28 +0000)]
[X86] Add shuffle mask rescaling helper function. NFCI.

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

8 years ago[X86][AVX2] Merge unary permute matching behind the same V2.isUndef() condition....
Simon Pilgrim [Sun, 3 Jul 2016 20:39:42 +0000 (20:39 +0000)]
[X86][AVX2] Merge unary permute matching behind the same V2.isUndef() condition. NFCI.

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

8 years ago[X86][AVX512] Add support for 512-bit shuffle lowering to VPERMPD/VPERMQ
Simon Pilgrim [Sun, 3 Jul 2016 19:50:06 +0000 (19:50 +0000)]
[X86][AVX512] Add support for 512-bit shuffle lowering to VPERMPD/VPERMQ

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

8 years ago[CodeGen] Teach OR combine of shuffles involving zero vectors to better handle undef...
Craig Topper [Sun, 3 Jul 2016 19:37:12 +0000 (19:37 +0000)]
[CodeGen] Teach OR combine of shuffles involving zero vectors to better handle undef indices.

Undef indices can now be treated as zeros. Or if its undef ORed with zero, we will keep the undef.

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

8 years ago[X86] Add tests to show that the DAG combine for OR of shuffles with zero vectors...
Craig Topper [Sun, 3 Jul 2016 19:37:10 +0000 (19:37 +0000)]
[X86] Add tests to show that the DAG combine for OR of shuffles with zero vectors doesn't handle undefs as well as it could. Fix coming in another commit.

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

8 years ago[MBB] add a missing corner case in UpdateTerminator()
Haicheng Wu [Sun, 3 Jul 2016 19:14:17 +0000 (19:14 +0000)]
[MBB]  add a missing corner case in UpdateTerminator()

After the block placement, if a block ends with a conditional branch, but the
next block is not its successor. The conditional branch should be changed to
unconditional branch.  This patch fixes PR28307, PR28297, PR28402.

Differential Revision: http://reviews.llvm.org/D21811

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

8 years ago[X86][AVX512] Add support for VPERMPD/VPERMQ masked shuffle comments
Simon Pilgrim [Sun, 3 Jul 2016 18:40:24 +0000 (18:40 +0000)]
[X86][AVX512] Add support for VPERMPD/VPERMQ masked shuffle comments

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

8 years ago[X86][AVX512] Add support for 512-bit shuffle decoding of VPERMPD/VPERMQ
Simon Pilgrim [Sun, 3 Jul 2016 18:27:37 +0000 (18:27 +0000)]
[X86][AVX512] Add support for 512-bit shuffle decoding of VPERMPD/VPERMQ

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

8 years ago[X86][AVX] Renamed VPERMILPI shuffle comment macros to be more specific
Simon Pilgrim [Sun, 3 Jul 2016 18:02:43 +0000 (18:02 +0000)]
[X86][AVX] Renamed VPERMILPI shuffle comment macros to be more specific

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

8 years ago[X86][AVX512] Add support for VPALIGNR/PSHUFD/PSHUFHW/PSHUFLW masked shuffle comments
Simon Pilgrim [Sun, 3 Jul 2016 15:00:51 +0000 (15:00 +0000)]
[X86][AVX512] Add support for VPALIGNR/PSHUFD/PSHUFHW/PSHUFLW masked shuffle comments

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

8 years ago[InstCombine] enable vector select of bools -> logic folds
Sanjay Patel [Sun, 3 Jul 2016 14:34:39 +0000 (14:34 +0000)]
[InstCombine] enable vector select of bools -> logic folds

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

8 years ago[X86][AVX512] Add support for UNPCK masked shuffle comments
Simon Pilgrim [Sun, 3 Jul 2016 14:26:21 +0000 (14:26 +0000)]
[X86][AVX512] Add support for UNPCK masked shuffle comments

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

8 years agofix formatting; NFC
Sanjay Patel [Sun, 3 Jul 2016 14:08:19 +0000 (14:08 +0000)]
fix formatting; NFC

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

8 years ago[X86][AVX512] Add support for VPERM/VSHUF masked shuffle comments
Simon Pilgrim [Sun, 3 Jul 2016 13:55:41 +0000 (13:55 +0000)]
[X86][AVX512] Add support for VPERM/VSHUF masked shuffle comments

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

8 years ago[X86][AVX512] Add support for PMOVZX masked shuffle comments
Simon Pilgrim [Sun, 3 Jul 2016 13:33:28 +0000 (13:33 +0000)]
[X86][AVX512] Add support for PMOVZX masked shuffle comments

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

8 years agoadd vector bool select tests and regenerate checks for scalar bool select tests
Sanjay Patel [Sun, 3 Jul 2016 13:26:02 +0000 (13:26 +0000)]
add vector bool select tests and regenerate checks for scalar bool select tests

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

8 years ago[X86][AVX512] Add support for masked shuffle comments
Simon Pilgrim [Sun, 3 Jul 2016 13:08:29 +0000 (13:08 +0000)]
[X86][AVX512] Add support for masked shuffle comments

This patch adds support for including the avx512 mask register information in the mask/maskz versions of shuffle instruction comments.

This initial version just adds support for MOVDDUP/MOVSHDUP/MOVSLDUP to reduce the mass of test regenerations, other shuffle instructions can be added in due course.

Differential Revision: http://reviews.llvm.org/D21953

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

8 years ago[X86][AVX512] Add support for lowering shuffles to VPERMILPS
Simon Pilgrim [Sun, 3 Jul 2016 12:47:21 +0000 (12:47 +0000)]
[X86][AVX512] Add support for lowering shuffles to VPERMILPS

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

8 years agoPR28400: Partly undo r274440 to bring test-suite back to life with the new PM
Sean Silva [Sun, 3 Jul 2016 03:35:06 +0000 (03:35 +0000)]
PR28400: Partly undo r274440 to bring test-suite back to life with the new PM

PR28400 seems to be not an isolated issue, but a general problem related
to caching analyses. We will need to discuss on llvm-dev.

A test case is in the PR.

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

8 years ago[PM] Some preparatory refactoring to minimize the diff of D21921
Sean Silva [Sun, 3 Jul 2016 03:35:03 +0000 (03:35 +0000)]
[PM] Some preparatory refactoring to minimize the diff of D21921

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

8 years agoRemove dead TLI arg of isKnownNonNull and propagate deadness. NFC.
Sean Silva [Sat, 2 Jul 2016 23:47:27 +0000 (23:47 +0000)]
Remove dead TLI arg of isKnownNonNull and propagate deadness. NFC.

This actually uncovered a surprisingly large chain of ultimately unused
TLI args.
From what I can gather, this argument is a remnant of when
isKnownNonNull would look at the TLI directly.
The current approach seems to be that InferFunctionAttrs runs early in
the pipeline and uses TLI to annotate the TLI-dependent non-null
information as return attributes.

This also removes the dependence of functionattrs on TLI altogether.

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

8 years agoFix wrong comment
Xinliang David Li [Sat, 2 Jul 2016 21:25:12 +0000 (21:25 +0000)]
Fix wrong comment

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

8 years ago[PM] Port LoopAccessInfo analysis to new PM
Xinliang David Li [Sat, 2 Jul 2016 21:18:40 +0000 (21:18 +0000)]
[PM] Port LoopAccessInfo analysis to new PM

It is implemented as a LoopAnalysis pass as
discussed and agreed upon.

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

8 years agoFix spelling.
Simon Pilgrim [Sat, 2 Jul 2016 20:21:39 +0000 (20:21 +0000)]
Fix spelling.

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

8 years ago[X86][AVX512] Add support for lowering shuffles to VPERMILPD
Simon Pilgrim [Sat, 2 Jul 2016 20:20:12 +0000 (20:20 +0000)]
[X86][AVX512] Add support for lowering shuffles to VPERMILPD

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

8 years agofix some various typos in the doc
Sylvestre Ledru [Sat, 2 Jul 2016 19:28:40 +0000 (19:28 +0000)]
fix some various typos in the doc

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

8 years ago[X86][AVX512VL] Add fast-isel MOVDDUP/MOVSLDUP/MOVSHDUP shuffle tests
Simon Pilgrim [Sat, 2 Jul 2016 19:22:46 +0000 (19:22 +0000)]
[X86][AVX512VL] Add fast-isel MOVDDUP/MOVSLDUP/MOVSHDUP shuffle tests

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

8 years ago[PM] Some preparatory refactoring to minimize the diff of D21921
Sean Silva [Sat, 2 Jul 2016 19:12:56 +0000 (19:12 +0000)]
[PM] Some preparatory refactoring to minimize the diff of D21921

The main change here is just moving stuff to static functions.

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

8 years ago[PM] Preparatory cleanups to ArgumentPromotion.
Sean Silva [Sat, 2 Jul 2016 18:59:51 +0000 (18:59 +0000)]
[PM] Preparatory cleanups to ArgumentPromotion.

This pulls some obvious changes out of http://reviews.llvm.org/D21921 to
minimize the diff.

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

8 years ago[X86][AVX512] Add support for 512-bit PSHUFB lowering
Simon Pilgrim [Sat, 2 Jul 2016 18:14:31 +0000 (18:14 +0000)]
[X86][AVX512] Add support for 512-bit PSHUFB lowering

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

8 years ago[X86][AVX512] Converted the MOVDDUP/MOVSLDUP/MOVSHDUP masked intrinsics to generic IR
Simon Pilgrim [Sat, 2 Jul 2016 17:16:41 +0000 (17:16 +0000)]
[X86][AVX512] Converted the MOVDDUP/MOVSLDUP/MOVSHDUP masked intrinsics to generic IR

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

8 years agoNew Kaleidoscope chapter: Creating object files
Wilfred Hughes [Sat, 2 Jul 2016 17:01:59 +0000 (17:01 +0000)]
New Kaleidoscope chapter: Creating object files

This new chapter describes compiling LLVM IR to object files.

The new chaper is chapter 8, so later chapters have been renumbered.
Since this brings us to 10 chapters total, I've also needed to rename
the other chapters to use two digit numbering.

Differential Revision: http://reviews.llvm.org/D18070

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

8 years ago[PM] Fix a small typo from when I ported JumpThreading
Sean Silva [Sat, 2 Jul 2016 16:16:44 +0000 (16:16 +0000)]
[PM] Fix a small typo from when I ported JumpThreading

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

8 years ago[X86][AVX512] Autoupgrade the MOVDDUP/MOVSLDUP/MOVSHDUP intrinsics
Simon Pilgrim [Sat, 2 Jul 2016 14:42:35 +0000 (14:42 +0000)]
[X86][AVX512] Autoupgrade the MOVDDUP/MOVSLDUP/MOVSHDUP intrinsics

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

8 years ago[DIBuilder] Remove dead code. NFC.
Benjamin Kramer [Sat, 2 Jul 2016 13:18:38 +0000 (13:18 +0000)]
[DIBuilder] Remove dead code. NFC.

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

8 years ago[Hexagon] Create global std::map lazily.
Benjamin Kramer [Sat, 2 Jul 2016 13:05:12 +0000 (13:05 +0000)]
[Hexagon] Create global std::map lazily.

This could of course be a simple binary search with no global state
involved at all if someone cares enough. Just don't make everyone
linking the hexagon backend pay for it on process startup and shutdown.

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

8 years ago[X86][AVX512] Add support for lowering shuffles to MOVDDUP/MOVSLDUP/MOVSHDUP
Simon Pilgrim [Sat, 2 Jul 2016 12:45:03 +0000 (12:45 +0000)]
[X86][AVX512] Add support for lowering shuffles to MOVDDUP/MOVSLDUP/MOVSHDUP

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

8 years ago[X86][AVX512] Add test cases that should lower to MOVSLDUP/MOVSHDUP
Simon Pilgrim [Sat, 2 Jul 2016 12:20:35 +0000 (12:20 +0000)]
[X86][AVX512] Add test cases that should lower to MOVSLDUP/MOVSHDUP

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

8 years ago[X86][AVX512] Add fast-isel shuffle tests
Simon Pilgrim [Sat, 2 Jul 2016 12:13:29 +0000 (12:13 +0000)]
[X86][AVX512] Add fast-isel shuffle tests

Its not worth trying to write out tests for all the avx512f builtins yet, just adding tests for lowering of generic IR as we transition to it (shuffles mainly right now).

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

8 years agoUse arrays or initializer lists to feed ArrayRefs instead of SmallVector where possible.
Benjamin Kramer [Sat, 2 Jul 2016 11:41:39 +0000 (11:41 +0000)]
Use arrays or initializer lists to feed ArrayRefs instead of SmallVector where possible.

No functionality change intended.

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

8 years ago[esan|cfrag] Add counters for struct array accesses
Qin Zhao [Sat, 2 Jul 2016 03:25:37 +0000 (03:25 +0000)]
[esan|cfrag] Add counters for struct array accesses

Summary:
Adds one counter to the struct counter array for counting struct
array accesses.

Adds instrumentation to insert counter update for struct array
accesses.

Reviewers: aizatsky

Subscribers: llvm-commits, bruening, eugenis, kcc, zhaoqin, vitalybuka

Differential Revision: http://reviews.llvm.org/D21594

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

8 years ago[SystemZ] Move misplaced SystemZ::TDC to non-memory opcode range.
Marcin Koscielnicki [Sat, 2 Jul 2016 02:20:40 +0000 (02:20 +0000)]
[SystemZ] Move misplaced SystemZ::TDC to non-memory opcode range.

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

8 years agoAdd RenderScript ArchType
Pirama Arumuga Nainar [Sat, 2 Jul 2016 00:23:09 +0000 (00:23 +0000)]
Add RenderScript ArchType

Summary:
Add renderscript32 and renderscript64 ArchTypes.  This is to configure
the ABI requirement on 32-bit RenderScript that 'long' types have 64-bit
size and alignment.  64-bit RenderScript is the same as AArch64, but is
added here for completeness.

Reviewers: echristo, rsmith

Subscribers: aemerson, jfb, rampitec, dschuff, mehdi_amini, llvm-commits, srhines

Differential Revision: http://reviews.llvm.org/D21333

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

8 years ago[PM] Port ConstantHoisting to the new Pass Manager
Michael Kuperstein [Sat, 2 Jul 2016 00:16:47 +0000 (00:16 +0000)]
[PM] Port ConstantHoisting to the new Pass Manager

Differential Revision: http://reviews.llvm.org/D21945

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

8 years ago[codeview] Set the Nested and Scoped ClassOptions based on the scope chain
Reid Kleckner [Sat, 2 Jul 2016 00:11:07 +0000 (00:11 +0000)]
[codeview] Set the Nested and Scoped ClassOptions based on the scope chain

These are set on both the declaration record and the definition record.

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

8 years agoLoadStoreVectorizer: Fix warning about extra semicolon
Matt Arsenault [Fri, 1 Jul 2016 23:26:54 +0000 (23:26 +0000)]
LoadStoreVectorizer: Fix warning about extra semicolon

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

8 years agoTII: Fix inlineasm size counting comments as insts
Matt Arsenault [Fri, 1 Jul 2016 23:26:50 +0000 (23:26 +0000)]
TII: Fix inlineasm size counting comments as insts

The main problem was counting comments on their own
line as instructions.

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

8 years agoPeepholeOptimizer: Relax assert
Matt Arsenault [Fri, 1 Jul 2016 23:15:06 +0000 (23:15 +0000)]
PeepholeOptimizer: Relax assert

Allow implicit defs

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

8 years ago[CodeView] Include the offset of nested members
David Majnemer [Fri, 1 Jul 2016 23:12:48 +0000 (23:12 +0000)]
[CodeView] Include the offset of nested members

Given something like:
  struct S {
    int a;
    struct { int b; };
  };

We would fail to give 'b' offset 4.  Instead, we would give it the
offset it has inside of it's struct.

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

8 years ago[CodeView] Pretty print anonymous scopes
David Majnemer [Fri, 1 Jul 2016 23:12:45 +0000 (23:12 +0000)]
[CodeView] Pretty print anonymous scopes

A namespace without a name should be written out as `anonymous
namespace' while a tag type without a name should be written out as
<unnamed-tag>.

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

8 years agoAMDGPU: Add feature for unaligned access
Matt Arsenault [Fri, 1 Jul 2016 23:03:44 +0000 (23:03 +0000)]
AMDGPU: Add feature for unaligned access

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

8 years agoAMDGPU: Expand unaligned accesses early
Matt Arsenault [Fri, 1 Jul 2016 22:55:55 +0000 (22:55 +0000)]
AMDGPU: Expand unaligned accesses early

Due to visit order problems, in the case of an unaligned copy
the legalized DAG fails to eliminate extra instructions introduced
by the expansion of both unaligned parts.

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

8 years ago[msan] Fix __msan_maybe_ for non-standard type sizes.
Evgeniy Stepanov [Fri, 1 Jul 2016 22:49:59 +0000 (22:49 +0000)]
[msan] Fix __msan_maybe_ for non-standard type sizes.

Fix incorrect calculation of the type size for __msan_maybe_warning_N
call that resulted in an invalid (narrowing) zext instruction and
"Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed."

Only happens in very large functions (with more than 3500 MSan
checks) operating on integer types that are not power-of-two.

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

8 years agoAMDGPU: Improve load/store of illegal types.
Matt Arsenault [Fri, 1 Jul 2016 22:47:50 +0000 (22:47 +0000)]
AMDGPU: Improve load/store of illegal types.

There was a combine before to handle the simple copy case.
Split this into handling loads and stores separately.

We might want to change how this handles some of the vector
extloads, since this can result in large code size increases.

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

8 years ago[codeview] Don't record UDTs for anonymous structs
Reid Kleckner [Fri, 1 Jul 2016 22:24:51 +0000 (22:24 +0000)]
[codeview] Don't record UDTs for anonymous structs

MSVC makes up names for these anonymous structs, but we don't (yet).
Eventually Clang should use getTypedefNameForAnonDecl() to put some name
in the debug info, and we can update the test case when that happens.

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

8 years agoIR: Set TargetPrefix for some X86 and AArch64 intrinsics where it was missing
Justin Bogner [Fri, 1 Jul 2016 22:07:11 +0000 (22:07 +0000)]
IR: Set TargetPrefix for some X86 and AArch64 intrinsics where it was missing

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

8 years agoAddress two correctness issues in LoadStoreVectorizer
Alina Sbirlea [Fri, 1 Jul 2016 21:44:12 +0000 (21:44 +0000)]
Address two correctness issues in LoadStoreVectorizer

Summary:
GetBoundryInstruction returns the last instruction as the instruction which follows or end(). Otherwise the last instruction in the boundry set is not being tested by isVectorizable().
Partially solve reordering of instructions. More extensive solution to follow.

Reviewers: tstellarAMD, llvm-commits, jlebar

Subscribers: escha, arsenm, mzolotukhin

Differential Revision: http://reviews.llvm.org/D21934

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

8 years ago[Hexagon] Revert r274381: that was actually wrong
Krzysztof Parzyszek [Fri, 1 Jul 2016 20:45:19 +0000 (20:45 +0000)]
[Hexagon] Revert r274381: that was actually wrong

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

8 years ago[Hexagon] Use MachineOperand::readsReg instead of isUse
Krzysztof Parzyszek [Fri, 1 Jul 2016 20:28:30 +0000 (20:28 +0000)]
[Hexagon] Use MachineOperand::readsReg instead of isUse

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

8 years ago[pdb] Check the display name for <unnamed-tag>, not the linkage name
Reid Kleckner [Fri, 1 Jul 2016 18:43:29 +0000 (18:43 +0000)]
[pdb] Check the display name for <unnamed-tag>, not the linkage name

This issue was encountered on libcmt.pdb, which has a type record that
looks like this:

  Struct (0x1094) {
    TypeLeafKind: LF_STRUCTURE (0x1505)
    MemberCount: 3
    Properties [ (0x200)
      HasUniqueName (0x200)
    ]
    FieldList: <field list> (0x1093)
    DerivedFrom: 0x0
    VShape: 0x0
    SizeOf: 4
    Name: <unnamed-tag>
    LinkageName: .?AU<unnamed-tag>@@
  }

The checks for startswith/endswith "<unnamed-tag>" should look at the
display name, not the linkage name.

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

8 years ago[codeview] Assert that our CV type records are valid
Reid Kleckner [Fri, 1 Jul 2016 18:05:56 +0000 (18:05 +0000)]
[codeview] Assert that our CV type records are valid

We were asserting that our type records were valid when emitting
assembly, but not when emitting an object file.

I've been seeing lots of LNK1285 errors (corrupt PDB) during incremental
debug self-host builds with the MSVC linker, and hopefully this will
catch some of them earlier.

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

8 years agoAMDGPU/SI: Enable testing several variants for si scheduler
Matt Arsenault [Fri, 1 Jul 2016 18:03:46 +0000 (18:03 +0000)]
AMDGPU/SI: Enable testing several variants for si scheduler

Enable testing different scheduling variants if sgpr usage
is very high. It was previously disabled because of a bug
in handleMove, but it has been fixed since.

Patch by Axel Davy

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

8 years agoSpecify mtriple for the frame-order.ll test.
Dehao Chen [Fri, 1 Jul 2016 17:35:13 +0000 (17:35 +0000)]
Specify mtriple for the frame-order.ll test.

Summary: original test may have different bahavior on different bot, specifically it broke llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast

Reviewers: majnemer

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D21931

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

8 years agoRevert r274347 "[ARM] Refactor Thumb2 mul instruction descs"
Hans Wennborg [Fri, 1 Jul 2016 17:26:42 +0000 (17:26 +0000)]
Revert r274347 "[ARM] Refactor Thumb2 mul instruction descs"

This caused PR28387: Assertion "#operands for dag node doesn't match .td file!"

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

8 years agoMake extract_symbols.py be compatible with Python 3
John Brawn [Fri, 1 Jul 2016 17:05:58 +0000 (17:05 +0000)]
Make extract_symbols.py be compatible with Python 3

This involved running 2to3 on it and adjusting all uses of subprocess to use
universal_newlines=True so the output is text instead of binary. It remains
compatible with Python 2.7.

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

8 years agoCodeGen: Use MachineInstr& in RegisterCoalescer, NFC
Duncan P. N. Exon Smith [Fri, 1 Jul 2016 16:43:13 +0000 (16:43 +0000)]
CodeGen: Use MachineInstr& in RegisterCoalescer, NFC

Remove a few more implicit iterator to pointer conversions by preferring
MachineInstr&.

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

8 years agofix documentation comments; NFC
Sanjay Patel [Fri, 1 Jul 2016 16:41:59 +0000 (16:41 +0000)]
fix documentation comments; NFC

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

8 years agoCodeGen: Avoid implicit conversions in TargetInstrInfo, NFC
Duncan P. N. Exon Smith [Fri, 1 Jul 2016 16:38:28 +0000 (16:38 +0000)]
CodeGen: Avoid implicit conversions in TargetInstrInfo, NFC

Avoid implicit conversions from MachineBasicBlock::iterator to
MachineInstr* in TargetInstrInfo.

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

8 years agoCodeGen: Use MachineInstr& in ScheduleDAGIntrs, NFC
Duncan P. N. Exon Smith [Fri, 1 Jul 2016 16:21:48 +0000 (16:21 +0000)]
CodeGen: Use MachineInstr& in ScheduleDAGIntrs, NFC

Use MachineInstr& to avoid implicit conversions from
MachineBasicBlock::iterator to MachineInstr*.  In one case, this could
use a range-based for loop, but the other loops iterated in reverse
order.

One of the reverse-loops checked the MachineInstr* for nullptr, a
condition that is provably unreachable.  (And even if my proof has a
flaw, UBSan would catch the bug.)

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

8 years agoReapply "Define a module map entry for DebugInfo/CodeView."
Adrian Prantl [Fri, 1 Jul 2016 15:54:46 +0000 (15:54 +0000)]
Reapply "Define a module map entry for DebugInfo/CodeView."

This reapplies r274313 with two additional #include directives needed
when submodule visibility is enabled.

Fixes PR28384.

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

8 years agoDo not count debug instructions when counting number of uses to reorder frame objects.
Dehao Chen [Fri, 1 Jul 2016 15:40:25 +0000 (15:40 +0000)]
Do not count debug instructions when counting number of uses to reorder frame objects.

Summary: The code generation should be independent of the debug info.

Reviewers: zansari, davidxl, mkuper, majnemer

Subscribers: majnemer, llvm-commits

Differential Revision: http://reviews.llvm.org/D21911

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

8 years agoCodeGen: Avoid iterator conversion in UnreachableBlockElim, NFC
Duncan P. N. Exon Smith [Fri, 1 Jul 2016 15:13:09 +0000 (15:13 +0000)]
CodeGen: Avoid iterator conversion in UnreachableBlockElim, NFC

Avoid an unnecessary (and implicit) iterator to pointer conversion in
UnreachableBlockElim by using the post-increment operator.

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

8 years agoCodeGen: Use MachineInstr& in SlotIndexes.cpp, NFC
Duncan P. N. Exon Smith [Fri, 1 Jul 2016 15:08:52 +0000 (15:08 +0000)]
CodeGen: Use MachineInstr& in SlotIndexes.cpp, NFC

Avoid implicit conversions from iterator to pointer by preferring
MachineInstr& and using range-based for loops.

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

8 years agoCodeGen: Use MachineInstr& in RegAllocFast, NFC
Duncan P. N. Exon Smith [Fri, 1 Jul 2016 15:03:37 +0000 (15:03 +0000)]
CodeGen: Use MachineInstr& in RegAllocFast, NFC

Use MachineInstr& instead of MachineInstr* in RegAllocFast to avoid
implicit conversions from MachineInstrBundleIterator.  RAFast::spillAll
and RAFast::spillVirtReg still take iterators, since their argument may
be an end iterator from MachineBasicBlock::getFirstTerminator.

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

8 years ago[CMake] Add LLVM_BUILD_32_BITS to LLVMConfig.cmake
John Brawn [Fri, 1 Jul 2016 14:22:52 +0000 (14:22 +0000)]
[CMake] Add LLVM_BUILD_32_BITS to LLVMConfig.cmake

Previously out-of-tree passes could detect if LLVM was built with
LLVM_BUILD_32_BITS by looking for -m32 in LLVM_DEFINITIONS, but as of r271871
it no longer appears there. Resolve this by instead emitting LLVM_BUILD_32_BITS
in LLVMConfig so it can be checked for directly.

Differential Revision: http://reviews.llvm.org/D21434

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

8 years ago[ARM] Refactor Thumb2 mul instruction descs
Sam Parker [Fri, 1 Jul 2016 12:55:49 +0000 (12:55 +0000)]
[ARM] Refactor Thumb2 mul instruction descs

No functional changes. Just created wrapper classes around the 3
and 4 reg mult and mac instruction classes.

Differential Revision: http://reviews.llvm.org/D21549

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

8 years agofunction_refify. NFC.
Benjamin Kramer [Fri, 1 Jul 2016 11:05:15 +0000 (11:05 +0000)]
function_refify. NFC.

While there use emplace_back to create an expensive pair.

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

8 years agoResubmit r268719 - AMDGPU/SI: Add amdgpu_kernel calling convention. Part 2.
Nikolay Haustov [Fri, 1 Jul 2016 10:00:58 +0000 (10:00 +0000)]
Resubmit r268719 - AMDGPU/SI: Add amdgpu_kernel calling convention. Part 2.
This was reverted in r268740 because of problems with corresponding Clang change.
Clang change was updated and resubmitted in r274220.

Check calling convention in AMDGPUMachineFunction::isKernel

This will be used for AMDGPU_HSA_KERNEL symbol type in output ELF.

Also, in the future unused non-kernels may be optimized.

Reviewers: tstellarAMD, arsenm

Subscribers: arsenm, joker.eph, llvm-commits

Differential Revision: http://reviews.llvm.org/D19917

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

8 years ago[AMDGPU] Assembler: support SDWA for VOPC instructions
Sam Kolton [Fri, 1 Jul 2016 09:59:21 +0000 (09:59 +0000)]
[AMDGPU] Assembler: support SDWA for VOPC instructions

Summary: dst_sel and dst_unused disabled for VOPC as they have no effect on result

Reviewers: artem.tamazov, tstellarAMD, vpykhtin

Subscribers: arsenm, kzhuravl

Differential Revision: http://reviews.llvm.org/D21376

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

8 years agoUpdate libdeps; AMDGPUCodeGen requires LLVMVectorize.
NAKAMURA Takumi [Fri, 1 Jul 2016 09:55:23 +0000 (09:55 +0000)]
Update libdeps; AMDGPUCodeGen requires LLVMVectorize.

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

8 years ago[CodeGen] Cleanup getVectorShuffle a bit to take advantage of its new ArrayRef argume...
Craig Topper [Fri, 1 Jul 2016 06:54:51 +0000 (06:54 +0000)]
[CodeGen] Cleanup getVectorShuffle a bit to take advantage of its new ArrayRef argument and its begin/end iterators. Also use 'int' type for number of elements and loop iterators to remove several typecasts. No functional change intended.

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

8 years ago[CodeGen,Target] Remove the version of DAG.getVectorShuffle that takes a pointer...
Craig Topper [Fri, 1 Jul 2016 06:54:47 +0000 (06:54 +0000)]
[CodeGen,Target] Remove the version of DAG.getVectorShuffle that takes a pointer to a mask array. Convert all callers to use the ArrayRef version. No functional change intended.

For the most part this simplifies all callers. There were two places in X86 that needed an explicit makeArrayRef to shorten a statically sized array.

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

8 years agoAdd support for allowing us to create uniquely identified "COMDAT" or "ELF
Eric Christopher [Fri, 1 Jul 2016 06:07:38 +0000 (06:07 +0000)]
Add support for allowing us to create uniquely identified "COMDAT" or "ELF
Group" sections while lowering. In particular, for ELF sections this is
useful for creating function-specific groups that get merged into the
same named section.

Also use const Twine& instead of StringRef for the getELF functions
while we're here.

Differential Revision: http://reviews.llvm.org/D21743

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

8 years ago80-column and comment fixups.
Eric Christopher [Fri, 1 Jul 2016 06:07:31 +0000 (06:07 +0000)]
80-column and comment fixups.

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

8 years ago[PM] refactor LoopAccessInfo code part-2
Xinliang David Li [Fri, 1 Jul 2016 05:59:55 +0000 (05:59 +0000)]
[PM] refactor LoopAccessInfo code part-2

Differential Revision: http://reviews.llvm.org/D21636

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

8 years ago[MBP] method interface cleanup
Xinliang David Li [Fri, 1 Jul 2016 05:46:48 +0000 (05:46 +0000)]
[MBP] method interface cleanup

Make worklist and ehworklist member of the
class so that they don't need to be passed around.

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

8 years agoRevert "add tests for bugs fixed by the GVN hoist pass"
Duncan P. N. Exon Smith [Fri, 1 Jul 2016 04:55:13 +0000 (04:55 +0000)]
Revert "add tests for bugs fixed by the GVN hoist pass"

This reverts commit r274327 since the tests fail.  E.g.:
  http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules/builds/17240

It looks like this commit is building on r274305, but that commit caused
a miscompile and was reverted in r274320.

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

8 years agoAMDGPU: Add option to run the load/store vectorizer
Matt Arsenault [Fri, 1 Jul 2016 03:33:52 +0000 (03:33 +0000)]
AMDGPU: Add option to run the load/store vectorizer

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

8 years agoRevert "Define a module map entry for DebugInfo/CodeView."
Adrian Prantl [Fri, 1 Jul 2016 03:17:02 +0000 (03:17 +0000)]
Revert "Define a module map entry for DebugInfo/CodeView."

This reverts commit r274313.
While this fixed the build on Darwin, it broke Linux with local submodule
visibility.

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

8 years agoadd tests for bugs fixed by the GVN hoist pass
Sebastian Pop [Fri, 1 Jul 2016 03:03:19 +0000 (03:03 +0000)]
add tests for bugs fixed by the GVN hoist pass

https://llvm.org/bugs/show_bug.cgi?id=20242
https://llvm.org/bugs/show_bug.cgi?id=22005

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

8 years ago[codeview] Add DISubprogram::ThisAdjustment
Reid Kleckner [Fri, 1 Jul 2016 02:41:21 +0000 (02:41 +0000)]
[codeview] Add DISubprogram::ThisAdjustment

Summary:
This represents the adjustment applied to the implicit 'this' parameter
in the prologue of a virtual method in the MS C++ ABI. The adjustment is
always zero unless multiple inheritance is involved.

This increases the size of DISubprogram by 8 bytes, unfortunately. The
adjustment really is a signed 32-bit integer. If this size increase is
too much, we could probably win it back by splitting out a subclass with
info specific to virtual methods (virtuality, vindex, thisadjustment,
containingType).

Reviewers: aprantl, dexonsmith

Subscribers: aaboud, amccarth, llvm-commits

Differential Revision: http://reviews.llvm.org/D21614

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

8 years agoLoadStoreVectorizer: improvements: better pointer analysis
Matt Arsenault [Fri, 1 Jul 2016 02:16:24 +0000 (02:16 +0000)]
LoadStoreVectorizer: improvements: better pointer analysis

If OpB has an ADD NSW/NUW, we can use that to prove that adding 1
to OpA won't wrap if OpA + 1 == OpB.

Patch by Fiona Glaser

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

8 years agoLoadStoreVectorizer: Don't increase alignment with no align set
Matt Arsenault [Fri, 1 Jul 2016 02:09:38 +0000 (02:09 +0000)]
LoadStoreVectorizer: Don't increase alignment with no align set

If no alignment was set on the load/stores, it would vectorize
to the new type even though this increases the default alignment.

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

8 years agoLoadStoreVectorizer: Check TTI for vec reg bit width
Matt Arsenault [Fri, 1 Jul 2016 02:07:22 +0000 (02:07 +0000)]
LoadStoreVectorizer: Check TTI for vec reg bit width

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