summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Fix another case of 'CHECK[^:]*$'. NFCIJonathan Roelofs2015-08-101-388/+388
| | | | llvm-svn: 244486
* Modify diagnostic messages to clearly indicate the why interleaving wasn't done.Tyler Nowicki2015-08-104-25/+186
| | | | | | Sometimes interleaving is not beneficial, as determined by the cost-model and sometimes it is disabled by a loop hint (by the user). This patch modifies the diagnostic messages to make it clear why interleaving wasn't done. llvm-svn: 244485
* [Sparc] Implement i64 load/store support for 32-bit sparc.James Y Knight2015-08-1018-56/+841
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LDD/STD instructions can load/store a 64bit quantity from/to memory to/from a consecutive even/odd pair of (32-bit) registers. They are part of SparcV8, and also present in SparcV9. (Although deprecated there, as you can store 64bits in one register). As recommended on llvmdev in the thread "How to enable use of 64bit load/store for 32bit architecture" from Apr 2015, I've modeled the 64-bit load/store operations as working on a v2i32 type, rather than making i64 a legal type, but with few legal operations. The latter does not (currently) work, as there is much code in llvm which assumes that if i64 is legal, operations like "add" will actually work on it. The same assumption does not hold for v2i32 -- for vector types, it is workable to support only load/store, and expand everything else. This patch: - Adds a new register class, IntPair, for even/odd pairs of registers. - Modifies the list of reserved registers, the stack spilling code, and register copying code to support the IntPair register class. - Adds support in AsmParser. (note that in asm text, you write the name of the first register of the pair only. So the parser has to morph the single register into the equivalent paired register). - Adds the new instructions themselves (LDD/STD/LDDA/STDA). - Hooks up the instructions and registers as a vector type v2i32. Adds custom legalizer to transform i64 load/stores into v2i32 load/stores and bitcasts, so that the new instructions can actually be generated, and marks all operations other than load/store on v2i32 as needing to be expanded. - Copies the unfortunate SelectInlineAsm hack from ARMISelDAGToDAG. This hack undoes the transformation of i64 operands into two arbitrarily-allocated separate i32 registers in SelectionDAGBuilder. and instead passes them in a single IntPair. (Arbitrarily allocated registers are not useful, asm code expects to be receiving a pair, which can be passed to ldd/std.) Also adds a bunch of test cases covering all the bugs I've added along the way. Differential Revision: http://reviews.llvm.org/D8713 llvm-svn: 244484
* rename toELFShdrIter to getSection and move it closer to getSymbol. NFC.Rafael Espindola2015-08-101-13/+17
| | | | llvm-svn: 244483
* toELFSymIter and getSymbol are now the same thing. Merge them.Rafael Espindola2015-08-101-18/+10
| | | | llvm-svn: 244482
* Fix a bunch of trivial cases of 'CHECK[^:]*$' in the tests. NFCIJonathan Roelofs2015-08-1026-45/+45
| | | | | | | I looked into adding a warning / error for this to FileCheck, but there doesn't seem to be a good way to avoid it triggering on the instances of it in RUN lines. llvm-svn: 244481
* Use continue to reduce indentation. NFC.Rafael Espindola2015-08-101-17/+19
| | | | llvm-svn: 244480
* [AArch64] Convert a conditional check that will always be true to an assert. ↵Chad Rosier2015-08-101-6/+4
| | | | | | NFC. llvm-svn: 244479
* Recommit r244470+ r244471 together, the bot failed between them.Yaron Keren2015-08-101-7/+5
| | | | llvm-svn: 244476
* [IndVarSimplify] Make cost estimation in RewriteLoopExitValues smarterIgor Laevsky2015-08-103-51/+67
| | | | | | Differential Revision: http://reviews.llvm.org/D11687 llvm-svn: 244474
* Revert r244470 and 244471 while looking into it.Yaron Keren2015-08-101-5/+7
| | | | llvm-svn: 244472
* Second part of r244470 (source file was unsaved in editor).Yaron Keren2015-08-101-5/+5
| | | | llvm-svn: 244471
* Really implement David Blaikie suggestion in full of seperatingYaron Keren2015-08-101-3/+1
| | | | | | | variable initialization from its usage in the push_back making collapse of the two statements unlikely even without a comment. llvm-svn: 244470
* Add new llvm.loop.unroll.enable metadata.Mark Heffernan2015-08-103-20/+118
| | | | | | | | | | | | | This change adds the unroll metadata "llvm.loop.unroll.enable" which directs the optimizer to unroll a loop fully if the trip count is known at compile time, and unroll partially if the trip count is not known at compile time. This differs from "llvm.loop.unroll.full" which explicitly does not unroll a loop if the trip count is not known at compile time. The "llvm.loop.unroll.enable" is intended to be added for loops annotated with "#pragma unroll". llvm-svn: 244466
* Typo. Move comment closer to relevant code. NFC.Chad Rosier2015-08-101-3/+4
| | | | llvm-svn: 244465
* 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
* 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
* 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
* Modify r244405 to clearer code, per David Blaikie suggestion.Yaron Keren2015-08-101-2/+2
| | | | llvm-svn: 244455
* Silence a sign mismatch warning; NFC.Aaron Ballman2015-08-101-1/+1
| | | | llvm-svn: 244452
* [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
* [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
* [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
* Rangify for loop, NFC.Yaron Keren2015-08-101-6/+3
| | | | llvm-svn: 244434
* 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
* [TableGen] Make StringInit constructor take a StringRef instead of const ↵Craig Topper2015-08-091-1/+1
| | | | | | std::string&. NFC. llvm-svn: 244426
* 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
* [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
* [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
* [IR] Remove unused declarationDavid Majnemer2015-08-091-1/+0
| | | | | | | CatchReturnInst::init is never referenced, remove it. No functionality change is intended. llvm-svn: 244408
* cmake: Error on invalid CMAKE_BUILD_TYPEJustin Bogner2015-08-081-0/+5
| | | | | | | | | | | Apparently if you make a typo in the argument to CMAKE_BUILD_TYPE, cmake silently accepts this but doesn't apply any particular build type to your build. This means you get a build that doesn't really make any sense - it's sort of a debug build with asserts disabled. Error out instead. llvm-svn: 244406
* Fix dangling reference in DwarfLinker.cpp. The original codeYaron Keren2015-08-081-0/+1
| | | | | | | | | | | | Seq.emplace_back(Seq.back()); does not work as planned, since Seq.back() may become a dangling reference when emplace_back is called and possibly reallocates vector. To avoid this, the vector allocation should be reserved first and only then used. This broke test/tools/dsymutil/X86/custom-line-table.test with Visual C++ 2013. llvm-svn: 244405
* [x86] enable machine combiner reassociations for 128-bit vector ↵Sanjay Patel2015-08-082-0/+48
| | | | | | single/double adds llvm-svn: 244403
* Fix some comment typos.Benjamin Kramer2015-08-0863-173/+175
| | | | llvm-svn: 244402
* [IR] Cleanup some formatting issues in the EH instructionsDavid Majnemer2015-08-082-40/+34
| | | | | | No functionality change is intended. llvm-svn: 244399
* Return early on error. Should fix the asan bots.Rafael Espindola2015-08-081-0/+2
| | | | llvm-svn: 244397
OpenPOWER on IntegriCloud