Commit Graph

152409 Commits

Author SHA1 Message Date
Eugene Zelenko 3dda42ef50 [Hexagon] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309230 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 23:20:35 +00:00
Eric Beckmann c8b00c76a1 See if disabling libxml tests will pass the i686 bot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309229 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 23:15:44 +00:00
Reid Kleckner 990c9f7fd8 [lit] Fix race between shtest-shell and max-failures tests
Previously these tests would use the same Output directory leading to
flaky non-deterministic failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309227 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 22:57:32 +00:00
Reid Kleckner 89802515ff [lit] Fix shtest-shell and max-failures lit tests on Windows
Rewrite the write-to-stderr.sh and write-to-stdout-and-stderr.sh shell
scripts as python scripts and call python on them.

Fixes PR33940

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309200 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 22:21:25 +00:00
Reid Kleckner 70c636feea [lit] Fix shtest-output-printing.py on Windows by matching either / or \\
Fixes PR33938

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309198 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 22:11:30 +00:00
Reid Kleckner 1dc238e090 [lit] Fix discovery.py on Windows by matching backslashes when necessary
Fixes PR33932

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309194 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 22:00:38 +00:00
Hiroshi Yamauchi cdd1a9849d Fix a comment (test commit).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309192 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:54:43 +00:00
Reid Kleckner 690a4c706a [lit] Un-XFAIL selecting.py test on Windows
This passes locally for me, which fails the overall lit test suite. I
can't debug a passing test, but I will try to help debug the test when
we get some failing logs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309190 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:48:41 +00:00
Stanislav Mekhanoshin ddb10d2e51 [AMDGPU] Optimize SI_IF lowering for simple if regions
Currently SI_IF results in a s_and_saveexec_b64 followed by s_xor_b64.
The xor is used to extract only the changed bits. In case of a simple
if region where the only use of that value is in the SI_END_CF to
restore the old exec mask, we can omit the xor and perform an or of
the exec mask with the original exec value saved by the
s_and_saveexec_b64.

Differential Revision: https://reviews.llvm.org/D35861

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309185 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:29:15 +00:00
Evandro Menezes 077cafbaa3 [ARM] Minor cosmetic edits (NFC)
Change the order of a case and the description for Exynos Mx processors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309184 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:28:20 +00:00
Evandro Menezes 9a965ff9ad [AArch64] Adjust the cost model for Exynos M1 and M2
Add the information for the scalar reciprocal square root approximation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309183 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:28:15 +00:00
Eric Beckmann 4e19ea6aa7 Close if statement in config-ix.cmake while checking for i686 arch.
Reapply "Set a different var for checking I686, because LLVM_NATIVE_ARCH is"

This reverts commit e7400d7cbc2b7539de3aa7a20adc8f4ee0cb7bef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309181 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:20:24 +00:00
Eric Beckmann ea5f088f78 Revert "Set a different var for checking I686, because LLVM_NATIVE_ARCH is"
This reverts commit 38a6db6397364ee91b04afea2cdcb1b5b4d252bf.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309179 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:11:07 +00:00
Wei Ding af7be0d4b0 AMDGPU : Widen extending scalar loads to 32-bits.
Differential Revision: http://reviews.llvm.org/D35146

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309178 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:07:28 +00:00
Eric Beckmann 0fefa6bd86 Set a different var for checking I686, because LLVM_NATIVE_ARCH is
overwritten.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309177 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:03:55 +00:00
Davide Italiano d2a8c64fd6 [gold] Relax this tests a little more.
Thanks to Peter for the report!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309176 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 21:01:57 +00:00
Davide Italiano b6863e2373 [gold] Relax tests to account for difference in layout across versions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309174 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 20:40:33 +00:00
Matt Arsenault b485eb2278 AMDGPU: Fix using SMRD instructions for argument loads in functions
These are not actually uniform values except in kernels.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309172 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 20:39:42 +00:00
Jakub Kuderski 12eeed54bf [Dominators] Fix typos. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309170 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 20:26:13 +00:00
Eric Beckmann c20c1ef743 Disable libxml on i686, because it is a 32 bit architecture and
libxml2.so is for 64 bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309169 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 20:22:26 +00:00
Tom Stellard 9f8f952c9a AMDGPU/GlobalISel: Mark 32-bit G_OR as legal
Reviewers: arsenm

Reviewed By: arsenm

Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, igorb, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D35127

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309165 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 20:00:53 +00:00
Aditya Nandakumar d5413e8a8f [GISel]: Avoid zero length array when building Instrs that don't have
uses.

Also splitting the buildSources part allows more overloads such as
adding MachineOperands directly in the arguments for buildInstr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309163 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 19:58:03 +00:00
Peter Collingbourne 0bc3b75ed9 Change CallLoweringInfo::CS to be an ImmutableCallSite instead of a pointer. NFCI.
This was a use-after-free waiting to happen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309159 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 19:15:29 +00:00
Adam Nemet 7d3d44a14c Migrate SimplifyLibCalls to new OptimizationRemarkEmitter
Summary:
This changes SimplifyLibCalls to use the new OptimizationRemarkEmitter
API.

In fact, as SimplifyLibCalls is only ever called via InstCombine,
(as far as I can tell) the OptimizationRemarkEmitter is added there,
and then passed through to SimplifyLibCalls later.

I have avoided changing any remark text.

This closes PR33787

Patch by Sam Elliott!

Reviewers: anemet, davide

Reviewed By: anemet

Subscribers: davide, mehdi_amini, eraman, fhahn, llvm-commits

Differential Revision: https://reviews.llvm.org/D35608

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309158 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 19:03:18 +00:00
Andrew V. Tischenko 69469a788b This patch returns proper value to indicate the case when instruction throughput can't be calculated.
Differential revision https://reviews.llvm.org/D35831


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309156 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 18:55:14 +00:00
Adrian Prantl dd67a2c9ab Do a better job at emitting prefrabricated skeleton CUs.
This is a better fix than r308708 for the problem introduced in
r304020. It restores the skeleton CU testcases modified by that commit
to their original form and most importantly ensures that
frontend-generated skeleton CUs (such as used to point to Clang
modules) come after the regular CUs. This broke for DICompileUnit
nodes that don't have any immediate children because they are now
constructed lazily instead of the order in which they are listed in
!llvm.dbg.cu. After this commit we still don't guarantee that order,
but we do guarantee that empty skeletons come last.

Shipping versions of LLDB are very sensitive to the ordering of
CUs. I'll track a fix for LLDB to be more permissive separately.
This fixes a test failure in the LLDB testsuite.

rdar://problem/33357252

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309154 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 18:48:32 +00:00
Eric Beckmann 6caf087110 Unlink nodes instead of copying, to avoid memory problems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309151 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 18:33:21 +00:00
Jakub Kuderski a65cddf557 [Dominators] Change Roots type to SmallVector
Summary: We can use the template parameter `IsPostDom` to pick an appropriate SmallVector size to store DomTree roots for dominators and postdominators. Before, the code would always allocate memory with `std::vector`.

Reviewers: dberlin, davide, sanjoy, grosser

Reviewed By: grosser

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35636

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309148 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 18:27:39 +00:00
Jakub Kuderski 22072158f3 [Dominators] Move root-finding out of DomTreeBase and simplify it
Summary:
This patch moves root-finding logic from DominatorTreeBase to GenericDomTreeConstruction.h.
It makes the behavior simpler and more consistent by always adding a virtual root to PostDominatorTrees.

Reviewers: dberlin, davide, grosser, sanjoy

Reviewed By: dberlin

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35597

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309146 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 18:07:40 +00:00
Reid Kleckner 2dcf99d698 Un-XFAIL some internal lit tests on Windows, they pass for me locally
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309144 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 18:04:18 +00:00
Eric Beckmann 36406cba21 Diffing against a file that is itself used in the test seems to be a bad
idea, because it might get locked down and rendered unopenable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309142 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 17:47:44 +00:00
Rafael Espindola 5864936880 Simplify. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309141 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 17:27:27 +00:00
George Karpenkov 370d1e47b2 Fix LIT test breakage
Differential Revision: https://reviews.llvm.org/D35867

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309140 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 17:19:36 +00:00
Simon Pilgrim 9a93ff1d26 [X86][AVX512] Regenerated and cleaned up extension tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309139 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 16:47:00 +00:00
Simon Pilgrim 8233f0bfd7 [X86] Regenerate setcc tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309138 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 16:45:57 +00:00
Simon Pilgrim a0063c8b8e [X86][AVX512] Regenerate shuffle tests with broadcast comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309137 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 16:41:18 +00:00
Simon Pilgrim e4524fedb0 [X86] Regenerate memset tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309136 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 16:39:07 +00:00
Eric Beckmann 1791d9247d Correctly enable the llvm-mt tests, now that build flags changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309134 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 16:35:44 +00:00
Reid Kleckner d9e8f94862 Quote '?' in llvm-rc test
Summary:
Bash interperets the '?' character as matching an arbitrary character.
On systems that have a file or directory with exactly one character in
their root directory, '/?' gets reinterpreted into that pathname, which
fails to match the expected Help text for llvm-rc.
This patch quotes the '/?' to avoid that edge case.

Reviewers: mnbvmar, ecbeckmann, rnk

Reviewed By: rnk

Subscribers: dyung, ruiu, llvm-commits

Differential Revision: https://reviews.llvm.org/D35852

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309133 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 16:25:48 +00:00
Florian Hahn fc1a136239 [Hexagon] Mark raise_relocation_error as NORETURN.
Summary:
This silences a couple of implicit fallthrough warnings with GCC 7.1 in
this file.

Reviewers: colinl, kparzysz

Reviewed By: kparzysz

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35889

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309129 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 16:07:51 +00:00
Dehao Chen 0370598046 Update the assertion to meet with the changes in r309121. (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309125 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 15:47:00 +00:00
Simon Pilgrim 9930182bd0 [X86] Add combineBT test failure because bits have multiple uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309124 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 15:41:57 +00:00
Brian Gesiak 8f6b2b6630 [lit] Mark several of lit's tests XFAIL on Windows
Summary:
rL257221 attempted to run lit's own test suite continuously, but that
commit was reverted because lit's test suite does not pass on Windows.
Because lit's tests do not run continuously, they often regress.

In order to un-revert rL257221, mark lit tests that fail as XFAIL for
Windows platforms.

Test Plan:
On a Windows development environment, follow the instructions in
utils/lit/README.txt to run lit's test suite:

```
utils/lit/lit.py \
    --path /path/to/your/llvm/build/bin \
    utils/lit/tests
```

Verify that the test suite is run and a successful exit code is
returned.

Reviewers: mgorny, rnk, delcypher, beanz

Reviewed By: rnk

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35879

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309123 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 15:10:50 +00:00
Brian Gesiak 1cb9d8ce7a [lit] Fix type error for parallelism groups
Summary:
Whereas rL299560 and rL309071 call `parallelism_groups.items()`, under the
assumption that `parallelism_groups` is a `dict` type, the default
parameter for that attribute is a `list`. Change the default to a
`dict` for type correctness.

This regression in the unit tests would have been caught if the
unit tests were being run continously. It also would have been caught
if the lit project used a Python type checker such as `mypy`.

Test Plan:
As per the instructions in `utils/lit/README.txt`, run the lit unit
test suite:

```
utils/lit/lit.py \
    --path /path/to/your/llvm/build/bin \
    utils/lit/tests
```

Verify that the test `lit :: unit/TestRunner.py` fails before applying this
patch, but passes once this patch is applied.

Reviewers: mgorny, rnk, rafael

Reviewed By: mgorny

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35878

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309122 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 15:02:05 +00:00
Dehao Chen d2fb04a72a Make new PM honor -fdebug-info-for-profiling
Summary: The new PM needs to invoke add-discriminator pass when building with -fdebug-info-for-profiling.

Reviewers: chandlerc, davidxl

Reviewed By: chandlerc

Subscribers: sanjoy, llvm-commits

Differential Revision: https://reviews.llvm.org/D35744

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309121 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 15:01:20 +00:00
Brian Gesiak 0f1c53205c Revert "[lit] Remove dead code not referenced in the LLVM SVN repo."
Summary:
This reverts rL306623, which removed `FileBasedTest`, an abstract base class,
but did not also remove the usages of that class in the lit unit tests.
The revert fixes four test failures in the lit unit test suite.

Test plan:
As per the instructions in `utils/lit/README.txt`, run the lit unit
test suite:

```
utils/lit/lit.py \
    --path /path/to/your/llvm/build/bin \
    utils/lit/tests
```

Verify that the following tests fail before applying this patch, and
pass once the patch is applied:

```
lit :: test-data.py
lit :: test-output.py
lit :: xunit-output.py
```

In addition, run `check-llvm` to make sure the existing LLVM test suite
executes normally.

Reviewers: george.karpenkov, mgorny, dlj

Reviewed By: mgorny

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35877

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309120 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 14:59:36 +00:00
Nuno Lopes 2cc32b10c0 [docs] change a few code-blocks to llvm from text
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309117 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 14:11:23 +00:00
Stefan Pintilie 8801df505c [NFC] test commit.
Added a comment to explain how to add a PPCISD node.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309114 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 13:44:59 +00:00
Yuka Takahashi 6f6a181aac [Bash-autocompletion] Show HelpText with possible flags
Summary:
`clang --autocomplete=-std` will show
```
-std:   Language standard to compile for
-std=   Language standard to compile for
-stdlib=        C++ standard library to use
```
after this change.

However, showing HelpText with completion in bash seems super tricky, so
this feature will be used in other shells (fish, zsh...).

Reviewers: v.g.vassilev, teemperor, ruiu

Subscribers: cfe-commits, hiraditya

Differential Revision: https://reviews.llvm.org/D35759

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309113 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 13:36:58 +00:00
Daniel Sanders d0d2059ec3 Revert r309094: [globalisel][tablegen] Fuse the generated tables together.
The ARM bots have started failing and while this patch should be an improvement
for these bots, it's also the only suspect in the blamelist. Reverting while
Diana and I investigate the problem.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309111 91177308-0d34-0410-b5e6-96231b3b80d8
2017-07-26 13:28:40 +00:00