summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix minsize detection: minsize attribute implies optimizing for sizeSanjay Patel2015-08-102-9/+7
| | | | llvm-svn: 244464
* fix minsize detection: minsize attribute implies optimizing for sizeSanjay Patel2015-08-102-6/+3
| | | | llvm-svn: 244463
* Protect template argument from user interference.Joerg Sonnenberger2015-08-101-2/+2
| | | | llvm-svn: 244462
* Fully apply David Blaikie suggestion and add comment explaining why.Yaron Keren2015-08-101-1/+3
| | | | llvm-svn: 244461
* fix minsize detection: minsize attribute implies optimizing for sizeSanjay Patel2015-08-102-3/+2
| | | | llvm-svn: 244460
* Make StmtSet a list.Johannes Doerfert2015-08-101-1/+2
| | | | | | | | With a deque (or any other sequential container) it is not sound to take the address of the elements when the container is still under construction. With a pointer based container this is save. llvm-svn: 244459
* fix minsize detection: minsize attribute implies optimizing for sizeSanjay Patel2015-08-102-9/+8
| | | | llvm-svn: 244458
* Add missing include guard to FuzzerInternal.h, NFC.Yaron Keren2015-08-101-0/+6
| | | | llvm-svn: 244457
* Add test case with PHI node in exit blockMichael Kruse2015-08-101-0/+66
| | | | | | | | The PHI node with multiple incoming edges from inside the region. Thanks Tobias for coming up with the example. llvm-svn: 244456
* Modify r244405 to clearer code, per David Blaikie suggestion.Yaron Keren2015-08-101-2/+2
| | | | llvm-svn: 244455
* misc-unused-parameters: Don't touch K&R style functions.Daniel Jasper2015-08-102-1/+15
| | | | | | We couldn't calculate the removal ranges properly at this point. llvm-svn: 244454
* -Wdeprecated: Use noexcept rather than throw() where supportedDavid Blaikie2015-08-106-14/+29
| | | | | | | | | | Summary: I've copy/pasted the LLVM_NOEXCEPT definition macro goo from LLVM's Compiler.h. Is there somewhere I should put this in Compiler RT? Is there a useful header to define/share things like this? Reviewers: samsonov Differential Revision: http://reviews.llvm.org/D11780 llvm-svn: 244453
* Silence a sign mismatch warning; NFC.Aaron Ballman2015-08-101-1/+1
| | | | llvm-svn: 244452
* Don't depend on getDotSymtabSec. It is going away.Rafael Espindola2015-08-104-12/+21
| | | | llvm-svn: 244451
* Remove leftover commentMichael Kruse2015-08-101-1/+0
| | | | | | | The function to which this commit applies has been removed in a previous commit. llvm-svn: 244450
* [TTI] Add a hook for specifying per-target defaults for Interleaved AccessesSilviu Baranga2015-08-104-2/+21
| | | | | | | | | | | | | | | Summary: This adds a hook to TTI which enables us to selectively turn on by default interleaved access vectorization for targets on which we have have performed the required benchmarking. Reviewers: rengolin Subscribers: rengolin, llvm-commits Differential Revision: http://reviews.llvm.org/D11901 llvm-svn: 244449
* Prevent the scalarizer from caching incorrect entriesFraser Cormack2015-08-102-2/+38
| | | | | | | | | | | | | | The scalarizer can cache incorrect entries when walking up a chain of insertelement instructions. This occurs when it encounters more than one instruction that it is not actively searching for, as it unconditionally caches every element it finds. The fix is to only cache the first element that it isn't searching for so we don't overwrite correct entries. Reviewers: hfinkel Differential Revision: http://reviews.llvm.org/D11559 llvm-svn: 244448
* elf2yaml: Use existing section walk to find the symbol table. NFC.Rafael Espindola2015-08-101-4/+7
| | | | llvm-svn: 244447
* Add WebKit brace style configuration option.Roman Kashitsyn2015-08-104-11/+59
| | | | | | | | | | | | | | | | | | Summary: Add brace style `BS_WebKit` as described on https://www.webkit.org/coding/coding-style.html: * Function definitions: place each brace on its own line. * Other braces: place the open brace on the line preceding the code block; place the close brace on its own line. Set brace style used in `getWebKitStyle()` to the newly added `BS_WebKit`. Reviewers: djasper, klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D11837 llvm-svn: 244446
* [RegionInfo] Fix typoMichael Kruse2015-08-101-1/+1
| | | | llvm-svn: 244445
* [RegionInfo] Add debug-time region viewer functionsMichael Kruse2015-08-104-0/+108
| | | | | | | | | | | | | | | Summary: Analogously to Function::viewCFG(), RegionInfo::view() and RegionInfo::viewOnly() are meant to be called in debugging sessions. They open a viewer to show how RegionInfo currently understands the region hierarchy. The functions viewRegion(Function*) and viewRegionOnly(Function*) invoke a fresh region analysis of the function in contrast to viewRegion(RegionInfo*) and viewRegionOnly(RegionInfo*) which show the current analysis result. Reviewers: grosser Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11875 llvm-svn: 244444
* [Polly] Refactor buildScopMichael Kruse2015-08-102-14/+43
| | | | | | | | | | | | | | Summary: The extracted function buildBBScopStmt will be needed later to be invoked individually on the region's exit block. Reviewers: grosser, jdoerfert Subscribers: jdoerfert, llvm-commits, pollydev Projects: #polly Differential Revision: http://reviews.llvm.org/D11878 llvm-svn: 244443
* [RegionInfo] Use RegionInfo* instead of RegionInfoPass* as graph typeMichael Kruse2015-08-101-56/+62
| | | | | | | | | | | This allows printing region graphs when only the RegionInfo (e.g. Region::getRegionInfo()), but no RegionInfoPass object is available. Specifically, we will use this to print RegionInfo graphs in the debugger. Differential version: http://reviews.llvm.org/D11874 Reviewed-by: grosser llvm-svn: 244442
* [RegionInfo] Update old-style commentsMichael Kruse2015-08-101-17/+16
| | | | | Authorized-by: grosser llvm-svn: 244441
* [RegionInfo] More descriptive error messages in verifierMichael Kruse2015-08-101-3/+5
| | | | llvm-svn: 244440
* Trace copies when checking for rematerializability in spill weight calculationRobert Lougher2015-08-107-10/+196
| | | | | | | | | | | | | | | PR24139 contains an analysis of poor register allocation. One of the findings was that when calculating the spill weight, a rematerializable interval once split is no longer rematerializable. This is because the isRematerializable check in CalcSpillWeights.cpp does not follow the copies introduced by live range splitting (after splitting, the live interval register definition is a copy which is not rematerializable). Reviewers: qcolombet Differential Revision: http://reviews.llvm.org/D11686 llvm-svn: 244439
* Test commit to verify commit accessMarina Yatsina2015-08-101-0/+1
| | | | llvm-svn: 244438
* [Driver] Fix handling of -fbuiltin/-fcommon when combined with -mkernelJohn Brawn2015-08-102-24/+21
| | | | | | | | | | | -mkernel enables -fno-builtin and -fno-common by default, but allows -fbuiltin and -fcommon to override that. However "-fbuiltin -fno-builtin" is treated the same as "-fbuiltin" which is wrong, so fix that. Also fixes similar behaviour when -fno-common is default. Differential Revision: http://reviews.llvm.org/D11459 llvm-svn: 244437
* Feedback from Jim: Change the "optimized code" warning to be entirelyJason Molenda2015-08-103-29/+55
| | | | | | | | | | | | contained within Process so that we won't be duplicating the warning message if other parts of the code want to issue the message. Change Process::PrintWarning to be a protected method - the public method will be the PrintWarningOptimization et al. Also, Have Thread::FunctionOptimizationWarning shortcut out if the warnings have been disabled so that we don't (potentially) compute parts of the SymbolContext unnecessarily. llvm-svn: 244436
* [Static Analyzer] Warn when inner and outer conditions are identical. The ↵Daniel Marjamaki2015-08-102-0/+50
| | | | | | | | inner condition is always true. Reviewed in http://reviews.llvm.org/D10892. llvm-svn: 244435
* Rangify for loop, NFC.Yaron Keren2015-08-101-6/+3
| | | | llvm-svn: 244434
* [tests] Remove calls to grepFilipe Cabecinhas2015-08-101-3/+4
| | | | llvm-svn: 244433
* Reformat headers in ADT and Support partially.NAKAMURA Takumi2015-08-1016-95/+85
| | | | | | Note, I didn't reformat entirely, but partially where I touched in previous commits. llvm-svn: 244432
* Whitespace.NAKAMURA Takumi2015-08-1033-121/+121
| | | | llvm-svn: 244431
* Reformat linebreaks.NAKAMURA Takumi2015-08-1024-45/+42
| | | | llvm-svn: 244430
* llvm/include/llvm/Support/Memory.h: Fix comment header.NAKAMURA Takumi2015-08-101-1/+1
| | | | llvm-svn: 244429
* [MSVC] Crash fix: assigning of overloaded member function pointer caused ↵Alexey Bataev2015-08-102-0/+19
| | | | | | | | | assertion Original class was not marked with inheritance attribute and it causes a crash on codegen. Differential Revision: http://reviews.llvm.org/D11828 llvm-svn: 244428
* clang/test/Modules: Satisfy win32 hosts due to dospath issue.NAKAMURA Takumi2015-08-093-3/+3
| | | | llvm-svn: 244427
* [TableGen] Make StringInit constructor take a StringRef instead of const ↵Craig Topper2015-08-091-1/+1
| | | | | | std::string&. NFC. llvm-svn: 244426
* COFF: Define symbols for MSVC 2015 Control Flow Protection.Rui Ueyama2015-08-091-0/+6
| | | | | | | | | | | | | | | MSVC 2015's load configuration object (__load_config_used) contains references to these symbols. I don't fully understand how it works, but looks like these symbols are linker-defined ones. So I define them here in the Driver. With this patch, LLD can self-host with MSVC 2015. This patch is to link MSVC 2015-produced object files. It does not implement Control Flow Protection. If I understand correctly, the linker has to create a bitmap of function entry point addresses for the CFG runtime. We don't do that yet. Produced executables will not be protected by CFG. llvm-svn: 244425
* COFF: Do not fall through if /lib is processed.Rui Ueyama2015-08-091-6/+8
| | | | llvm-svn: 244424
* X86: remove a dead store (NFC)Saleem Abdulrasool2015-08-091-2/+2
| | | | | | | | The SP was always unconditionally assigned to later, but initialised early. This delays the initialisation, and avoids the dead store. Identified by clang static analysis. No functional change intended. llvm-svn: 244423
* Remove unused `using`.Rui Ueyama2015-08-091-2/+0
| | | | llvm-svn: 244422
* [LAA] Remove unused pointer partition argument from needsChecking(), NFCAdam Nemet2015-08-092-18/+7
| | | | | | | This is no longer used in any of the callers. Also remove the logic of handling this argument. llvm-svn: 244421
* [LAA] Remove unused pointer partition argument from generateChecks, NFCAdam Nemet2015-08-092-9/+3
| | | | | | LoopDistribution does its own filtering now. llvm-svn: 244420
* Fix for build errors on arm-linux-gnueabi-gccOmair Javaid2015-08-094-2/+10
| | | | | | http://reviews.llvm.org/D11256 llvm-svn: 244419
* [PHITransAddr] Don't assume that instruction operands are translatableDavid Majnemer2015-08-092-3/+22
| | | | | | | | | | | | | We can only PHI translate instructions. In our attempt to PHI translate a bitcast, we attempt to translate its operand; however, the operand might be an argument or a global instead of an instruction. Benignly bail out when this happens. This fixes PR24397. Differential Revision: http://reviews.llvm.org/D11879 llvm-svn: 244418
* [modules] Remove now-dead code for lazy loading of files specified by ↵Richard Smith2015-08-097-85/+3
| | | | | | -fmodule-file=. llvm-svn: 244417
* [modules] PR22534: Load files specified by -fmodule-file= eagerly. In ↵Richard Smith2015-08-0912-123/+190
| | | | | | particular, this avoids the need to re-parse module map files when using such a module. llvm-svn: 244416
* Unrevert r244412 (reverted in r244414), and delete the bogus line left behindRichard Smith2015-08-092-5/+9
| | | | | | in the unit test that was checking a file the test no longer creates. llvm-svn: 244415
OpenPOWER on IntegriCloud