Easwaran Raman [Mon, 7 Dec 2015 21:21:20 +0000 (21:21 +0000)]
Use updated threshold for indirect call bonus
When considering foo->bar inlining, if there is an indirect call in foo which gets resolved to a direct call (say baz), then we try to inline baz into bar with a threshold T and subtract max(T - Cost(bar->baz), 0) from Cost(foo->bar). This patch uses max(Threshold(bar->baz) - Cost(bar->baz)) instead, where Thresheld(bar->baz) could be different from T due to bonuses or subtractions. Threshold(bar->baz) - Cost(bar->baz) better represents the desirability of inlining baz into bar.
Differential Revision: http://reviews.llvm.org/D14309
llvm-svn: 254945
Kamil Rytarowski [Mon, 7 Dec 2015 21:21:12 +0000 (21:21 +0000)]
getwd(3) with NULL pointer extension is supported on NetBSD
Summary:
The getwd() and getcwd() functions conform to IEEE Std 1003.1-1990
(POSIX.1). The IEEE Std 1003.1-2004 (POSIX.1) revision marked
getwd() as legacy and recommended the use of getcwd() instead. The IEEE
Std 1003.1-2008 (``POSIX.1'') revision removed getwd() from the
specification.
The ability to specify a NULL pointer and have getcwd() allocate memory
as necessary is an extension.
The getwd() function appeared in 4.0BSD.
Reviewers: emaste, tfiala, clayborg
Subscribers: lldb-commits, joerg
Differential Revision: http://reviews.llvm.org/D15260
llvm-svn: 254944
Xinliang David Li [Mon, 7 Dec 2015 21:18:16 +0000 (21:18 +0000)]
[PGO] Stop leaking libc function to buffer API impl
llvm-svn: 254943
Kit Barton [Mon, 7 Dec 2015 20:50:29 +0000 (20:50 +0000)]
[PPC64] Convert bool literals to i32
Convert i1 values to i32 values if they should be allocated in GPRs instead of CRs.
Phabricator: http://reviews.llvm.org/D14064
llvm-svn: 254942
Chuck Ries [Mon, 7 Dec 2015 20:43:52 +0000 (20:43 +0000)]
Allow variable names to be quoted with -var-list-children
Allow both '-var-list-children var0' and '-var-list-children "var0"' to be used with the -var-list-children command. GDB MI allows for this and it is necessary if the variable name contains spaces, such as var5.std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<cahr> > > >.
Differential Revision: http://reviews.llvm.org/D15168
llvm-svn: 254941
Teresa Johnson [Mon, 7 Dec 2015 20:40:36 +0000 (20:40 +0000)]
Remove target specifier from new tests
Hopefully fix the remaining bot failure from r254927. Remove
target specification since it shouldn't be needed, and this causes
an error when trying to check the pass execution structure in
test/CodeGen/thinlto_backend.c on non-x86 arches.
llvm-svn: 254940
Simon Pilgrim [Mon, 7 Dec 2015 20:36:00 +0000 (20:36 +0000)]
Fix line endings
llvm-svn: 254939
Teresa Johnson [Mon, 7 Dec 2015 20:26:57 +0000 (20:26 +0000)]
Adjust test to fix bot error from r254927.
Remove the part of the error message that may vary across systems.
llvm-svn: 254938
Alexey Samsonov [Mon, 7 Dec 2015 20:18:50 +0000 (20:18 +0000)]
[TSan] Slightly improve check_analyze script.
De-hardcode path to TSan-ified executable: pass it as an input to
the scripts. Fix them so that they don't write to the current
directory. Remove their invocation from Makefile.old: they are
broken there anyway, as check_analyze.sh now matches trunk Clang.
llvm-svn: 254936
Justin Bogner [Mon, 7 Dec 2015 20:04:57 +0000 (20:04 +0000)]
AST: defer to TypeLoc::copy in TypeLoc::initializeFullCopy
If we're initializing a TypeLoc from one that's been allocated with
different alignment, memcpy will get the padding wrong. The `copy`
method already checks and handles this case, so we should just defer
to it.
This also drops the `const` off of the `initializeFullCopy`
declarations, since it isn't even remotely true (and the compiler
notices when we try to call copy() instead of tricking it with
memcpy).
Fixes llvm.org/pr23516.
llvm-svn: 254935
Teresa Johnson [Mon, 7 Dec 2015 19:53:38 +0000 (19:53 +0000)]
Fix function return type in declaration (bot errors from r254926).
Try to fix bot build errors from r254926 by correcting the function
return type.
llvm-svn: 254934
Daniel Jasper [Mon, 7 Dec 2015 19:50:48 +0000 (19:50 +0000)]
clang-format: Make wrapping after "./->" cheaper, even if the element
before it is not a closing parenthesis.
Otherwise, this frequently leads to "hanging" indents that users
perceive as "weird".
Before:
return !soooooooooooooome_map.insert(
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
.second;
After:
return !soooooooooooooome_map
.insert(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
.second;
llvm-svn: 254933
Alexey Samsonov [Mon, 7 Dec 2015 19:40:33 +0000 (19:40 +0000)]
[TSan] Delete legacy test_output.sh script.
This script is superseded by lit test suite integrated into CMake
for quite a while now. It doesn't support many tests, and require
custom hacks for a few other.
llvm-svn: 254932
Ted Woodward [Mon, 7 Dec 2015 19:38:58 +0000 (19:38 +0000)]
Fix watchpoint check to use watchpoint ranges
Summary: Watchpoints, unlike breakpoints, have an address range. This patch changes WatchpointList::FindByAddress() to match on any address in the watchpoint range, instead of only matching on the watchpoint's base address.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D14932
llvm-svn: 254931
Sanjay Patel [Mon, 7 Dec 2015 19:31:34 +0000 (19:31 +0000)]
don't repeat function names in comments; NFC
llvm-svn: 254930
Sanjay Patel [Mon, 7 Dec 2015 19:21:39 +0000 (19:21 +0000)]
fix 'the the '; NFC
llvm-svn: 254928
Teresa Johnson [Mon, 7 Dec 2015 19:21:34 +0000 (19:21 +0000)]
[ThinLTO] Option to invoke ThinLTO backend passes and importing
Summary:
Adds new option -fthinlto-index=<file> to invoke the LTO pipeline
along with function importing via clang using the supplied function
summary index file. This supports invoking the parallel ThinLTO
backend processes in a distributed build environment via clang.
Additionally, this causes the module linker to be invoked on the bitcode
file being compiled to perform any necessary promotion and renaming of
locals that are exported via the function summary index file.
Add a couple tests that confirm we get expected errors when we try to
use the new option on a file that isn't bitcode, or specify an invalid
index file. The tests also confirm that we trigger the expected function
import pass.
Depends on D15024
Reviewers: joker.eph, dexonsmith
Subscribers: joker.eph, davidxl, cfe-commits
Differential Revision: http://reviews.llvm.org/D15025
llvm-svn: 254927
Teresa Johnson [Mon, 7 Dec 2015 19:21:11 +0000 (19:21 +0000)]
[ThinLTO] Support for specifying function index from pass manager
Summary:
Add a field on the PassManagerBuilder that clang or gold can use to pass
down a pointer to the function index in memory to use for importing when
the ThinLTO backend is triggered. Add support to supply this to the
function import pass.
Reviewers: joker.eph, dexonsmith
Subscribers: davidxl, llvm-commits, joker.eph
Differential Revision: http://reviews.llvm.org/D15024
llvm-svn: 254926
Sanjay Patel [Mon, 7 Dec 2015 19:13:40 +0000 (19:13 +0000)]
remove redundant check: optForSize() includes a check for the minsize attribute; NFCI
llvm-svn: 254925
Chuck Ries [Mon, 7 Dec 2015 19:08:15 +0000 (19:08 +0000)]
test commit.
llvm-svn: 254924
Ron Lieberman [Mon, 7 Dec 2015 18:52:39 +0000 (18:52 +0000)]
[Hexagon] Adding v60 test, vasr in particular.
llvm-svn: 254923
David Blaikie [Mon, 7 Dec 2015 18:46:41 +0000 (18:46 +0000)]
[llvm-dwp] Restructure inputs for test case so they're all grouped together
llvm-svn: 254922
Tobias Grosser [Mon, 7 Dec 2015 18:06:08 +0000 (18:06 +0000)]
ScopInfo: Add MemoryAccess::isScalar()
Suggested-by: Michael Kruse <llvm@meinersbur.de>
llvm-svn: 254921
Sanjay Patel [Mon, 7 Dec 2015 17:39:48 +0000 (17:39 +0000)]
Tighten checks so we can see existing codegen
The 2-element vector case shows a surprising bug: we failed to
eliminate ops on undefs, so there are 4 fmax calls even though
there can only be 2 valid elements in the inputs.
llvm-svn: 254920
Lang Hames [Mon, 7 Dec 2015 17:35:56 +0000 (17:35 +0000)]
[Orc] Removing traces of takeOwnershipOfBuffers left after r251560.
Patch by Joshua Gerrard. Thanks Joshua!
llvm-svn: 254919
George Rimar [Mon, 7 Dec 2015 16:54:56 +0000 (16:54 +0000)]
[ELF] - fixed mistype in comment, NFC.
llvm-svn: 254918
Rafael Espindola [Mon, 7 Dec 2015 16:31:41 +0000 (16:31 +0000)]
Link declaration lazily.
We already linked available_externally and linkonce lazily, this just
adds declarations to the list.
llvm-svn: 254917
Rafael Espindola [Mon, 7 Dec 2015 16:01:40 +0000 (16:01 +0000)]
Simplify test.
llvm-svn: 254916
Aaron Ballman [Mon, 7 Dec 2015 15:44:34 +0000 (15:44 +0000)]
Silence all C4592 warnings with MSVC 2015 Update 1. This warning produces false positives that Microsoft says will be fixed in Update 2. Until this produces reliable diagnostics, it is safe to disable the diagnostic -- the compiler is not doing anything different than it previously did aside from issuing the diagnostic.
(Note, this silences at least one false positive in LLVM with FeatureBitset uses.)
llvm-svn: 254915
Teresa Johnson [Mon, 7 Dec 2015 15:05:44 +0000 (15:05 +0000)]
[ThinLTO] Support cloning of temporary DILocation metadata
This is needed to support linking of module-level metadata as a
postpass after function importing, where we will be leaving temporary
metadata on imported instructions until the postpass metadata import.
Also added unittest. Split from D14838.
llvm-svn: 254914
Elena Demikhovsky [Mon, 7 Dec 2015 14:33:34 +0000 (14:33 +0000)]
VX-512: Fixed a bug in FP logic operation lowering
FP logic instructions are supported in DQ extension on AVX-512 target.
I use integer operations instead.
Added tests.
I also enabled FABS in this patch in order to check ANDPS.
The operations are FOR, FXOR, FAND, FANDN.
The instructions, that supported for 512-bit vector under DQ are:
VORPS/PD, VXORPS/PD, VANDPS/PD, FANDNPS/PD.
Differential Revision: http://reviews.llvm.org/D15110
llvm-svn: 254913
Artyom Skrobov [Mon, 7 Dec 2015 14:22:39 +0000 (14:22 +0000)]
[ARM] Generate ABI_optimization_goals build attribute, as described in the ARM ARM.
Summary: This reverts r254234, and adds a simple fix for the annoying case of use-after-free.
Reviewers: rengolin
Subscribers: aemerson, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D15236
llvm-svn: 254912
Daniel Sanders [Mon, 7 Dec 2015 14:12:44 +0000 (14:12 +0000)]
[mips][ias] Removed DSP/DSPr2 instructions from base architecture valid-xfail.s's.
Summary:
valid-xfail.s is for instructions that should be valid in the given ISA but
incorrectly fail. DSP/DSPr2 instructions are correct to fail since DSP/DSPr2 is
not enabled.
Reviewers: vkalintiris
Subscribers: dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D15072
llvm-svn: 254911
Ewan Crawford [Mon, 7 Dec 2015 13:50:32 +0000 (13:50 +0000)]
[RenderScript] Mips64 allocations workaround
Workaround for Mips64 compiler bug by using function pointers to call
functions for expression evaluation. This avoids the emission of the JAL instruction,
which can only jump within a particular range of the PC.
Author: Dean De Leo, dean@codeplay.com
llvm-svn: 254910
Elena Demikhovsky [Mon, 7 Dec 2015 13:39:24 +0000 (13:39 +0000)]
AVX-512: Fixed masked load / store instruction selection for KNL.
Patterns were missing for KNL target for <8 x i32>, <8 x float> masked load/store.
This intrinsic comes with all legal types:
<8 x float> @llvm.masked.load.v8f32(<8 x float>* %addr, i32 align, <8 x i1> %mask, <8 x float> %passThru),
but still requires lowering, because VMASKMOVPS, VMASKMOVDQU32 work with 512-bit vectors only.
All data operands should be widened to 512-bit vector.
The mask operand should be widened to v16i1 with zeroes.
Differential Revision: http://reviews.llvm.org/D15265
llvm-svn: 254909
Igor Breger [Mon, 7 Dec 2015 13:25:18 +0000 (13:25 +0000)]
AVX-512: implement kunpck intrinsics.
Differential Revision: http://reviews.llvm.org/D14821
llvm-svn: 254908
Rafael Espindola [Mon, 7 Dec 2015 13:24:23 +0000 (13:24 +0000)]
Change how the linker handles the old llvm.global_ctors.
Now instead of changing it to the new format and then linking, it just
handles the old format while copying it over.
The main differences are:
* There is no rauw in the source module.
* An old format input is always upgraded.
The first item helps with having a sane API that passes in a GV list to
the linker.
The second one is a small step in deprecating the old format.
llvm-svn: 254907
Asaf Badouh [Mon, 7 Dec 2015 13:14:22 +0000 (13:14 +0000)]
[avx512] rename gcc intrinsics to be align with gcc format
rename the gcc intrinsics suffix : _mask ->_round
Differential Revision: http://reviews.llvm.org/D15284
llvm-svn: 254906
Asaf Badouh [Mon, 7 Dec 2015 13:14:14 +0000 (13:14 +0000)]
[avx512] rename gcc intrinsics to be align with gcc format
rename the gcc intrinsics suffix : _mask ->_round
Differential Revision: http://reviews.llvm.org/D15285
llvm-svn: 254905
Marina Yatsina [Mon, 7 Dec 2015 13:09:20 +0000 (13:09 +0000)]
[X86] Adding support for FWORD type for MS inline asm
Adding support for FWORD type for MS inline asm.
Differential Revision: http://reviews.llvm.org/D15268
llvm-svn: 254904
Alexey Bataev [Mon, 7 Dec 2015 12:52:51 +0000 (12:52 +0000)]
[OPENMP 4.5] parsing/sema support for 'grainsize' clause.
OpenMP 4.5 adds 'taksloop' and 'taskloop simd' directives, which have 'grainsize' clause. Patch adds parsing/sema analysis of this clause.
llvm-svn: 254903
Pavel Labath [Mon, 7 Dec 2015 12:36:52 +0000 (12:36 +0000)]
Recommit "Fix race during process interruption"
This is a resubmit of r254403, see that commit's message for context. This fixes an issue in the
original commit, where we would incorrectly interrupt the process if the interrupt request came
just as we were about to send the stopped event to the public.
llvm-svn: 254902
Pavel Labath [Mon, 7 Dec 2015 11:09:14 +0000 (11:09 +0000)]
Make TestThreadStates more stable
Summary:
Because of the large number of XFAILs TestThreadStates has decayed quite a bit. This commit does
the following:
- removes the "breakpoint list" expectations. Most tests have been failing on this, because the
command output changed quite a while back. I remove it, because run_break_set_by_file_and_line
already does a decent amount of checking
- fixup test_state_after_expression: this was calling the wrong function by mistake. As now the
function actually tests something (which we know is broken), I needed to XFAIL it as well.
- replaces the sleep() with a proper wait-for-event functionality in parts which use async mode,
to stabilize the one function that actually tests something.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D15233
llvm-svn: 254901
Bradley Smith [Mon, 7 Dec 2015 10:54:36 +0000 (10:54 +0000)]
[ARM] Flag vcvt{t,b} with an f16 type specifier as part of the FP16 extension
Additionally correct the Cortex-R7 definition to allow the FP16 feature.
llvm-svn: 254900
Alexey Bataev [Mon, 7 Dec 2015 10:51:44 +0000 (10:51 +0000)]
[OPENMP 4.5] parsing/sema support for 'nogroup' clause.
OpenMP 4.5 adds 'taskloop' and 'taskloop simd' directives. These directives have new 'nogroup' clause. Patch adds basic parsing/sema support for this clause.
llvm-svn: 254899
Simon Pilgrim [Mon, 7 Dec 2015 09:09:54 +0000 (09:09 +0000)]
[X86][AVX] Added tests to load+broadcast non-zero'th vector elements
Baseline for an upcoming patch for PR23022
llvm-svn: 254898
Zlatko Buljan [Mon, 7 Dec 2015 08:29:31 +0000 (08:29 +0000)]
[mips][microMIPS] Implement LH, LHE, LHU and LHUE instructions
Differential Revision: http://reviews.llvm.org/D9824
llvm-svn: 254897
George Rimar [Mon, 7 Dec 2015 08:02:20 +0000 (08:02 +0000)]
Renamed addLocalModelTlsIndex() -> addCurrentModuleTlsIndex(), NFC.
(per discussion with Michael Spencer)
llvm-svn: 254896
Craig Topper [Mon, 7 Dec 2015 06:31:41 +0000 (06:31 +0000)]
Add uint8_t size to LegalizeTypeAction enum and use the enum type directly to remove some typecasts. NFC
llvm-svn: 254895
Todd Fiala [Mon, 7 Dec 2015 06:19:48 +0000 (06:19 +0000)]
Added lldbsuite.lldb_test_root, switched formatter to use it.
llvm-svn: 254894
Craig Topper [Mon, 7 Dec 2015 06:01:51 +0000 (06:01 +0000)]
Add uint8_t size to LegalizeAction enum so we can use the enum type directly and remove some casts. NFC
llvm-svn: 254893
Mohit K. Bhakkad [Mon, 7 Dec 2015 05:47:35 +0000 (05:47 +0000)]
[LLDB][MIPS] Marking some expected failures
Reviewers: clayborg, zturner.
Subscribers: jaydeep, bhushan, sagar, nitesh.jain, tberghammer,lldb-commits.
Differential Revision: http://reviews.llvm.org/D14944
llvm-svn: 254892
Todd Fiala [Mon, 7 Dec 2015 04:55:07 +0000 (04:55 +0000)]
Moved total test count and rerun count into summary counts.
llvm-svn: 254891
Todd Fiala [Mon, 7 Dec 2015 03:10:02 +0000 (03:10 +0000)]
Move test summary counts to end; simplify issue detail line
Test summary counts now show at the end, with issue details
above.
Issue details now print "ISSUE_TYPE: test method (relative path)".
Relative paths are relative to the
packages/Python/lldbsuite/test directory.
Sample output:
test/dotest.py --executable `pwd`/build/Debug/lldb --results-formatter lldbsuite.test.basic_results_formatter.BasicResultsFormatter --threads 12
Testing: 415 test suites, 12 threads
415 out of 415 test suites processed - TestLldbGdbServer.py
Test Results
Total Test Methods Run (excluding reruns): 2470
Test Method rerun count: 0
Details:
UNEXPECTED SUCCESS: test_symbol_name_dsym (functionalities/completion/TestCompletion.py)
UNEXPECTED SUCCESS: test_symbol_name_dwarf (functionalities/completion/TestCompletion.py)
===================
Test Result Summary
===================
Success: 1329
Expected Failure: 79
Failure: 0
Error: 0
Unexpected Success: 2
Skip: 1060
llvm-svn: 254890
Faisal Vali [Mon, 7 Dec 2015 02:37:44 +0000 (02:37 +0000)]
Fix PR20334: invalid assertion while diagnosing list initialization failure
https://llvm.org/bugs/show_bug.cgi?id=20334
Unfortunately, clang currently checks for a certain brokenness of implementations of std::initializer_list in CodeGen (void
AggExprEmitter::VisitCXXStdInitializerListExpr), not in SemaInit. Until that is fixed, make sure we don't let broken attempts that are aggregates leak through into sema, which allows maintenance of expected invariants, and avoids triggering an assertion.
llvm-svn: 254889
Davide Italiano [Mon, 7 Dec 2015 00:03:28 +0000 (00:03 +0000)]
[llvm-objdump/MachoDump] Make code much more concise.
llvm-svn: 254888
Keno Fischer [Sun, 6 Dec 2015 23:05:38 +0000 (23:05 +0000)]
[Verifier] Fix !dbg validation if Scope is the Subprogram
Summary:
We are inserting both Scope and SP into the Seen map and check whether
it was already there in which case we skip the validation (the idea
being that we already checked this Subprogram before). However,
if (Scope == SP) as MDNodes, then inserting the Scope, will trigger
the Seen check causing us to incorrectly not validate this !dbg
attachment. Fix this by not performing the SP Seen check if Scope == SP
Reviewers: pcc, dexonsmith, dblaikie
Subscribers: dblaikie, llvm-commits
Differential Revision: http://reviews.llvm.org/D14697
llvm-svn: 254887
Simon Pilgrim [Sun, 6 Dec 2015 20:12:19 +0000 (20:12 +0000)]
[X86][AVX] Tidied up BROADCASTPD/BROADCASTPS tests
Regenerate tests using update_llc_test_checks.py
llvm-svn: 254886
Lang Hames [Sun, 6 Dec 2015 19:44:45 +0000 (19:44 +0000)]
[Orc] Rename IndirectStubsManagerBase to IndirectStubsManager.
No functional change.
llvm-svn: 254885
Dan Gohman [Sun, 6 Dec 2015 19:42:29 +0000 (19:42 +0000)]
[WebAssembly] Factor out a TypeToString function, since we need it in multiple places.
llvm-svn: 254884
Dan Gohman [Sun, 6 Dec 2015 19:34:57 +0000 (19:34 +0000)]
[WebAssembly] Make tableswitch's 'default' operand explicit. NFC.
llvm-svn: 254883
Dan Gohman [Sun, 6 Dec 2015 19:33:32 +0000 (19:33 +0000)]
[WebAssembly] Enable folding of offsets into global variable addresses.
llvm-svn: 254882
Dan Gohman [Sun, 6 Dec 2015 19:31:44 +0000 (19:31 +0000)]
[WebAssembly] Tighten up some testcase regular expressions.
llvm-svn: 254881
Dan Gohman [Sun, 6 Dec 2015 19:29:54 +0000 (19:29 +0000)]
[WebAssembly] Add some more ideas to README.txt.
llvm-svn: 254880
Sanjay Patel [Sun, 6 Dec 2015 18:05:12 +0000 (18:05 +0000)]
[x86] add missing maxnum/minnum tests for 256-bit vectors
Also, switch to x86-64 because once we can lower these to something
more reasonable, there will be less noise in the checks. And add
AVX runs because those will be different than SSE.
llvm-svn: 254879
Rafael Espindola [Sun, 6 Dec 2015 16:18:25 +0000 (16:18 +0000)]
Create llvm.global_ctors in the new format.
llvm-svn: 254878
Marina Yatsina [Sun, 6 Dec 2015 15:31:47 +0000 (15:31 +0000)]
[X86] Add support for loopz, loopnz for Intel syntax
According to x86 spec, loopz and loopnz should be supported for Intel syntax, where loopz is equivalent to loope and loopnz is equivalent to loopne.
Differential Revision: http://reviews.llvm.org/D15148
llvm-svn: 254877
Serge Pavlov [Sun, 6 Dec 2015 14:32:39 +0000 (14:32 +0000)]
[PGO] Instrument only base constructors and destructors.
Constructors and destructors may be represented by several functions
in IR. Only base structors correspond to source code, others are
small pieces of code and eventually call the base variant. In this
case instrumentation of non-base structors has little sense, this
fix remove it. Now profile data of a declaration corresponds to
exactly one function in IR, it agrees with the current logic of the
profile data loading.
This change fixes PR24996.
Differential Revision: http://reviews.llvm.org/D15158
llvm-svn: 254876
Asaf Badouh [Sun, 6 Dec 2015 13:26:56 +0000 (13:26 +0000)]
[X86][AVX512] add vmovss/sd missing encoding
Differential Revision: http://reviews.llvm.org/D14701
llvm-svn: 254875
Michael Kuperstein [Sun, 6 Dec 2015 13:06:20 +0000 (13:06 +0000)]
[X86] Always generate precise CFA adjustments.
This removes the code path that generate "synchronous" (only correct at call site) CFA.
We will probably want to re-introduce it once we are capable of emitting different
.eh_frame and .debug_frame sections.
Differential Revision: http://reviews.llvm.org/D14948
llvm-svn: 254874
Igor Breger [Sun, 6 Dec 2015 11:35:18 +0000 (11:35 +0000)]
AVX512: support AVX512BW Intrinsic in 32bit mode.
Differential Revision: http://reviews.llvm.org/D15076
llvm-svn: 254873
Craig Topper [Sun, 6 Dec 2015 05:08:07 +0000 (05:08 +0000)]
Use make_range to reduce mentions of iterator type. NFC
llvm-svn: 254872
Craig Topper [Sun, 6 Dec 2015 05:07:58 +0000 (05:07 +0000)]
Minor formatting fix. NFC
llvm-svn: 254871
Craig Topper [Sun, 6 Dec 2015 05:07:12 +0000 (05:07 +0000)]
Use llvm::make_range to reduce mentions of iterator type. NFC
llvm-svn: 254870
Sanjoy Das [Sat, 5 Dec 2015 23:44:22 +0000 (23:44 +0000)]
[InstCombine] Call getCmpPredicateForMinMax only with a valid SPF
Summary:
There are `SelectPatternFlavor`s that don't represent min or max idioms,
and we should not be passing those to `getCmpPredicateForMinMax`.
Fixes PR25745.
Reviewers: majnemer
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D15249
llvm-svn: 254869
Davide Italiano [Sat, 5 Dec 2015 23:36:52 +0000 (23:36 +0000)]
[llvm-readobj] report_error() does not return, so we can simplify.
llvm-svn: 254868
Dawn Perchik [Sat, 5 Dec 2015 22:37:55 +0000 (22:37 +0000)]
Fix crash in ASTDumper when dumping NamedDecl with NULL getQualifier().
Reviewed by: aaron.ballman
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D15254
llvm-svn: 254867
Dan Gohman [Sat, 5 Dec 2015 22:12:39 +0000 (22:12 +0000)]
[WebAssembly] Don't perform the returned-argument optimization on constants.
llvm-svn: 254866
Kamil Rytarowski [Sat, 5 Dec 2015 21:46:37 +0000 (21:46 +0000)]
Plug-in PlatformNetBSD initializer and terminator
Summary: Other platform parts needed to build this code are already merged.
Reviewers: emaste, clayborg
Subscribers: joerg, lldb-commits
Differential Revision: http://reviews.llvm.org/D15066
llvm-svn: 254865
Dan Gohman [Sat, 5 Dec 2015 20:46:53 +0000 (20:46 +0000)]
[WebAssembly] Replace the fake JUMP_TABLE instruction with a def : Pat. NFC.
llvm-svn: 254864
Dan Gohman [Sat, 5 Dec 2015 20:41:36 +0000 (20:41 +0000)]
[WebAssembly] Implement direct calls to external symbols.
llvm-svn: 254863
Sanjay Patel [Sat, 5 Dec 2015 20:27:10 +0000 (20:27 +0000)]
Add vector fmaxnum tests that correspond to the existing fminnum tests
Note: missing 256-bit tests for min and max should also be added.
llvm-svn: 254862
Dan Gohman [Sat, 5 Dec 2015 20:03:44 +0000 (20:03 +0000)]
[WebAssembly] Support inline asm constraints of type i16 and similar.
llvm-svn: 254861
Sanjay Patel [Sat, 5 Dec 2015 19:54:59 +0000 (19:54 +0000)]
fix typo; NFC
llvm-svn: 254860
Dan Gohman [Sat, 5 Dec 2015 19:43:19 +0000 (19:43 +0000)]
[WebAssembly] Update a stale comment. NFC.
llvm-svn: 254859
Kamil Rytarowski [Sat, 5 Dec 2015 19:41:37 +0000 (19:41 +0000)]
Document NetBSD platform support on the webpage
Summary: It's high time.
Reviewers: emaste, clayborg
Subscribers: labath, joerg, lldb-commits
Differential Revision: http://reviews.llvm.org/D14904
llvm-svn: 254858
JF Bastien [Sat, 5 Dec 2015 19:36:33 +0000 (19:36 +0000)]
WebAssembly: improve readme, add placeholder for tests.
llvm-svn: 254857
Dan Gohman [Sat, 5 Dec 2015 19:27:18 +0000 (19:27 +0000)]
[WebAssembly] Move useAA() out of line to make it more convenient to experiment with.
llvm-svn: 254856
Dan Gohman [Sat, 5 Dec 2015 19:24:17 +0000 (19:24 +0000)]
[WebAssembly] Call TargetPassConfig base class functions in overriding functions.
llvm-svn: 254855
Dan Gohman [Sat, 5 Dec 2015 19:15:57 +0000 (19:15 +0000)]
[WebAssembly] Expand frem as a floating point library function.
llvm-svn: 254854
Kamil Rytarowski [Sat, 5 Dec 2015 18:46:56 +0000 (18:46 +0000)]
Define new builder_netbsd
Summary: This is used in tests.
Reviewers: emaste, tfiala, clayborg
Subscribers: zturner, lldb-commits, joerg
Differential Revision: http://reviews.llvm.org/D15065
llvm-svn: 254853
Craig Topper [Sat, 5 Dec 2015 17:34:07 +0000 (17:34 +0000)]
[Hexagon] Don't call getNumImplicitDefs and then iterate over the count. getNumImplicitDefs contains a loop so its better to just loop over the null terminated implicit def list. NFC
llvm-svn: 254852
Keno Fischer [Sat, 5 Dec 2015 14:42:34 +0000 (14:42 +0000)]
[ASAN] Add doFinalization to reset state
Summary: If the same pass manager is used for multiple modules ASAN
complains about GlobalsMD being initialized twice. Fix this by
resetting GlobalsMD in a new doFinalization method to allow this
use case.
Reviewers: kcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14962
llvm-svn: 254851
Sagar Thakur [Sat, 5 Dec 2015 12:01:48 +0000 (12:01 +0000)]
[LLDB][MIPS] Fix TestConstVariables.py
Patch by Nitesh Jain.
Summary: There is no debug information generated for variable index with –O3 optimization flag. The DW_AT_location tag in DWARF debug_info section is empty.
Reviewers: ovyalov, clayborg
Subscribers: lldb-commits, mohit.bhakkad, sagar, bhushan, jaydeep
Differential: http://reviews.llvm.org/D15224
llvm-svn: 254850
Simon Pilgrim [Sat, 5 Dec 2015 11:12:23 +0000 (11:12 +0000)]
[X86][3DNow!] Stripped backend codegen tests
As discussed on the ml, backend tests need to be put in llvm/test/CodeGen/X86 as fast-isel tests using IR that is as close to what is generated here as possible.
The llvm tests will (re)added in a future commit
llvm-svn: 254849
Simon Pilgrim [Sat, 5 Dec 2015 11:08:51 +0000 (11:08 +0000)]
Updated test names to match the intrinsics being tested
llvm-svn: 254848
Simon Pilgrim [Sat, 5 Dec 2015 10:37:35 +0000 (10:37 +0000)]
[X86][F16C] Stripped backend codegen tests
As discussed on the ml, backend tests need to be put in llvm/test/CodeGen/X86 as fast-isel tests using IR that is as close to what is generated here as possible.
The llvm tests will (re)added in a future commit
I will update PR24580 on this new plan
llvm-svn: 254847
Craig Topper [Sat, 5 Dec 2015 07:41:44 +0000 (07:41 +0000)]
[AST] Use std::copy and std::fill to simplify some memcpy and memset calls. Also const-correct some methods being used since the std::copy catches the mismatch where memcpy didn't.
llvm-svn: 254846
Craig Topper [Sat, 5 Dec 2015 07:41:42 +0000 (07:41 +0000)]
Use std::copy and std::transform instead of manual loops. NFC
llvm-svn: 254845
Simon Pilgrim [Sat, 5 Dec 2015 07:27:50 +0000 (07:27 +0000)]
[X86][ADX] Added memory folding patterns and stack folding tests
llvm-svn: 254844