summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [mips] Range check uimm6_lsl2.Daniel Sanders2016-03-148-52/+44
| | | | | | | | | | | | Summary: Reviewers: vkalintiris Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D17291 llvm-svn: 263419
* Try to fix build of WebAssemblyRegStackify.cpp on WindowsHans Wennborg2016-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | It's failing to build on VS2015 with: C:\b\build\slave\ClangToTWin\build\src\third_party\llvm\lib\Target\WebAssembly\WebAssemblyRegStackify.cpp(520): error C2668: 'llvm::make_reverse_iterator': ambiguous call to overloaded function C:\b\build\slave\ClangToTWin\build\src\third_party\llvm\include\llvm/ADT/STLExtras.h(217): note: could be 'std::reverse_iterator<llvm::MachineBasicBlock::iterator> llvm::make_reverse_iterator<llvm::MachineInstrBundleIterator<llvm::MachineInstr>>(IteratorTy)' with [ IteratorTy=llvm::MachineInstrBundleIterator<llvm::MachineInstr> ] C:\b\depot_tools\win_toolchain\vs_files\391bbf1220d3edcd3cc3fccdb56224181e3b13a7\win_sdk\bin\..\..\VC\include\xutility(1217): note: or 'std::reverse_iterator<llvm::MachineBasicBlock::iterator> std::make_reverse_iterator<llvm::MachineInstrBundleIterator<llvm::MachineInstr>>(_RanIt)' [found using argument-dependent lookup] with [ _RanIt=llvm::MachineInstrBundleIterator<llvm::MachineInstr> ] I don't have VS2015 locally at the moment, but hopefully this will help. llvm-svn: 263418
* AVX512: icmp operation should be always lowered to CMPM (AVX-512) ↵Igor Breger2016-03-143-95/+591
| | | | | | | | | | instruction on SKX. implemented by delena Differential Revision: http://reviews.llvm.org/D18054 llvm-svn: 263417
* [ELF] implement --warn-common/--no-warn-commonGeorge Rimar2016-03-147-1/+45
| | | | | | | | | | | | | -warn-common Warn when a common symbol is combined with another common symbol or with a symbol definition. Unix linkers allow this somewhat sloppy practice, but linkers on some other operating systems do not. This option allows you to find potential problems from combining global symbols. Differential revision: http://reviews.llvm.org/D17998 llvm-svn: 263413
* Temporarily make discard value names depend on whether or not we'reEric Christopher2016-03-141-1/+6
| | | | | | | | | | trying to track origins in the memory sanitizer since the backend instrumentation pass currently takes names from the Instruction. Fixes all of the origin tracking tests in compiler-rt after the -discard-value-name option was added. llvm-svn: 263412
* [AMDGPU] AsmParser: Factor out parseRegister. NFC.Valery Pykhtin2016-03-141-24/+40
| | | | llvm-svn: 263411
* Give the test a temporary output so it can be cleaned up.Eric Christopher2016-03-141-2/+2
| | | | llvm-svn: 263410
* [AMDGPU] AsmParser: refactor post push_back vector access. NFC.Valery Pykhtin2016-03-141-6/+5
| | | | llvm-svn: 263409
* [CodeView] Consistently handle overly large symbol namesDavid Majnemer2016-03-141-15/+17
| | | | | | | Overly large symbol names weren't correctly handled for leaf function records. llvm-svn: 263408
* [AMDGPU] AsmParser: remove redundant isReg checks. NFC.Valery Pykhtin2016-03-141-7/+7
| | | | llvm-svn: 263407
* [CVP] Convert an SDiv to a UDiv if both operands are known to be nonnegativeHaicheng Wu2016-03-142-0/+95
| | | | | | | | | | | | | | The motivating example is this for (j = n; j > 1; j = i) { i = j / 2; } The signed division is safely to be changed to an unsigned division (j is known to be larger than 1 from the loop guard) and later turned into a single shift without considering the sign bit. llvm-svn: 263406
* Mark exception-throwing test as XFAIL when exceptions are disabledMarshall Clow2016-03-141-0/+1
| | | | llvm-svn: 263405
* Add facility to add/remove/check attribute on function and arguments.Amaury Sechet2016-03-143-28/+44
| | | | | | | | | | | | Summary: This comes from work to make attribute manipulable via the C API. Reviewers: gottesmm, hfinkel, baldrick, echristo, tejohnson Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D18128 llvm-svn: 263404
* [MCSchedule] Remove comments about MinLatency. NFCJunmo Park2016-03-141-4/+0
| | | | | | | | | | | Summary: There is no definition about MinLatency any more. Reviewers: mcrosier, spatel, hfinkel Differential Revision: http://reviews.llvm.org/D18079 llvm-svn: 263403
* [X86][XOP] Added target shuffle combine tests for XOP's VPPERM 2-op shuffleSimon Pilgrim2016-03-141-0/+31
| | | | | | Actual combing support will be added in a future patch llvm-svn: 263402
* Print out newline in both cases.Rui Ueyama2016-03-131-1/+2
| | | | llvm-svn: 263401
* Try to get cl-pch-showincludes passing on AArch64 bots.Nico Weber2016-03-131-0/+1
| | | | llvm-svn: 263400
* Revert "Revert "Update Polly for the removal of PreserveNames from IRBuilder ↵Mehdi Amini2016-03-131-10/+6
| | | | | | | | | | | stuff"" This reverts commit r263322 and reapplies r263296. The original r263258 was reapplied in LLVM after being reverted in r263321 due to issues with Release testing in Clang. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263399
* Simplify. NFC.Rui Ueyama2016-03-131-4/+2
| | | | llvm-svn: 263398
* Remove uint32_X type.Rui Ueyama2016-03-132-9/+4
| | | | | | This type is equivalent to Elf_Word type. llvm-svn: 263397
* Remove some unused variablesDavid Blaikie2016-03-131-5/+4
| | | | llvm-svn: 263396
* ELF: Split initializeSections and add comments.Rui Ueyama2016-03-132-18/+37
| | | | llvm-svn: 263395
* Remove compile time PreserveName in favor of a runtime cc1 ↵Mehdi Amini2016-03-1317-56/+46
| | | | | | | | | | | | | | | | | | | | -discard-value-names option Summary: This flag is enabled by default in the driver when NDEBUG is set. It is forwarded on the LLVMContext to discard all value names (but GlobalValue) for performance purpose. This an improved version of D18024 Reviewers: echristo, chandlerc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D18127 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263394
* Remove PreserveNames template parameter from IRBuilderMehdi Amini2016-03-1314-41/+32
| | | | | | | | This reapplies r263258, which was reverted in r263321 because of issues on Clang side. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263393
* Remove `else` after `return`.Rui Ueyama2016-03-131-2/+1
| | | | llvm-svn: 263392
* Simplify. NFC.Rui Ueyama2016-03-131-4/+2
| | | | llvm-svn: 263391
* Remove unused #include.Rui Ueyama2016-03-131-5/+2
| | | | llvm-svn: 263390
* Remove a local variable. NFC.Rui Ueyama2016-03-131-3/+2
| | | | llvm-svn: 263389
* [ELF][MIPS] Use TargetInfo::needsGot call to check necessity of GOT for ↵Simon Atanasyan2016-03-131-1/+1
| | | | | | local symbols. NFC. llvm-svn: 263388
* ELF: Add `Rela` member variable to Config.Rui Ueyama2016-03-135-22/+19
| | | | | | | The member is true if we want to create relocatin sections with RELA instead of REL. llvm-svn: 263387
* ELF: Redefine canBeDefined as a member function of SymbolBody.Rui Ueyama2016-03-137-57/+56
| | | | | | | | | We want to make SymbolBody the central place to query symbol information. This patch also renames canBePreempted to isPreemptible because I feel that the latter is slightly better (the former is three words and the latter is two words.) llvm-svn: 263386
* ELF: Set e_flags header only when MIPS.Rui Ueyama2016-03-131-4/+4
| | | | | | The field is zero by default, so this is NFC. llvm-svn: 263385
* [X86][SSE] Added truncated vector arithmetic tests.Simon Pilgrim2016-03-131-0/+5241
| | | | | | | | For cases where we are truncating an integer vector arithmetic result, it may be better to pre-truncate the input operands - no code to support this yet (scalar is done with SimplifyDemandedBits but adding vector support could be a lot of work) but these tests represent the current codegen status. Example bugs: PR14666, PR22703 llvm-svn: 263384
* [X86][SSE41] Avoid variable blend for constant v8i16 shiftsSimon Pilgrim2016-03-137-131/+66
| | | | | | The SSE41 v8i16 shift lowering using (v)pblendvb is great for non-constant shift amounts, but if it is constant then we can efficiently reduce the VSELECT to shuffles with the pre-SSE41 lowering. llvm-svn: 263383
* [ELF][MIPS] Add elf namespace name to the ObjectFile.Simon Atanasyan2016-03-131-1/+1
| | | | | | NFC. Follow-up to r263381. llvm-svn: 263382
* [ELF][MIPS] Factor out SumVA adjustments into a couple of separate ↵Simon Atanasyan2016-03-131-34/+47
| | | | | | | | | | | functions. NFC. The patch does not reduce the size of the code but makes InputSectionBase::relocate cleaner a bit. Differential Revision: http://reviews.llvm.org/D18119 llvm-svn: 263381
* Added test that covers changes in r263379.Amjad Aboud2016-03-131-0/+10
| | | | llvm-svn: 263380
* Fixed DIBuilder to verify that same imported entity will not be added twice ↵Amjad Aboud2016-03-132-1/+21
| | | | | | | | to the "imports" list of the DICompileUnit. Differential Revision: http://reviews.llvm.org/D17884 llvm-svn: 263379
* [CodeView] Truncate display namesDavid Majnemer2016-03-131-5/+8
| | | | | | | | | | | | | | | | | | | Fundamentally, the length of a variable or function name is bound by the maximum size of a record: 0xffff. However, the name doesn't live in a vacuum; other data is associated with the name, lowering the bound further. We would naively attempt to emit the name, causing us to assert because the record would no-longer fit in 16-bits. Instead, truncate the name but preserve as much as we can. While I have tested this locally, I've decided to not commit it due to the test's size. N.B. While this behavior is undesirable, it is better than MSVC's behavior. They seem to truncate to ~4000 characters. llvm-svn: 263378
* [Bitcode] Make writeComdats less strangeDavid Majnemer2016-03-131-2/+2
| | | | | | | | It had a weird artificial limitation on the write side: the comdat name couldn't be bigger than 2**16. However, the reader had no such limitation. Make the reader and the writer agree. llvm-svn: 263377
* Cosmetic change. NFC.Rui Ueyama2016-03-131-1/+2
| | | | llvm-svn: 263376
* Move an OutputSectionBase member function to the top.Rui Ueyama2016-03-131-5/+5
| | | | llvm-svn: 263375
* ConstantFoldInstruction: avoid wasted calls to ConstantFoldConstantExpressionFiona Glaser2016-03-131-5/+5
| | | | | | | Check to see if all operands are constant before calling simplify on them so that we don't perform wasted simplifications. llvm-svn: 263374
* Simplify. NFC.Rui Ueyama2016-03-131-10/+3
| | | | llvm-svn: 263373
* Fix buildMatt Arsenault2016-03-131-0/+1
| | | | llvm-svn: 263372
* Update for new argument to scalbnMatt Arsenault2016-03-131-4/+6
| | | | llvm-svn: 263371
* APFloat: Fix ilogb for denormalsMatt Arsenault2016-03-133-12/+35
| | | | llvm-svn: 263370
* APFloat: Fix scalbn handling of denormalsMatt Arsenault2016-03-133-36/+151
| | | | | | | This was incorrect for denormals, and also failed on longer exponent ranges. llvm-svn: 263369
* Use RelTy instead of Elf_Rel_Impl<ELFT, isRela> for readability.Rui Ueyama2016-03-135-51/+34
| | | | llvm-svn: 263368
* Define IsRela static const member to Elf_Rel type.Rui Ueyama2016-03-131-0/+4
| | | | | | So that we can write RelTy::IsRela to query its type. llvm-svn: 263367
OpenPOWER on IntegriCloud