summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* 80-colsAlexey Samsonov2013-08-051-1/+2
| | | | llvm-svn: 187725
* LLVM Interpreter: This patch implements vector support for cast operations ↵Elena Demikhovsky2013-08-053-77/+592
| | | | | | | | | | (zext, sext, uitofp, sitofp, trunc, fpext, fptosi, fptrunc, bitcast) and shift operations (shl, ashr, lshr) for integer and floating point data types. Added tests. Done by Yuri Veselov (mailto:Yuri.Veselov@intel.com). llvm-svn: 187724
* [SystemZ] Use BRCT and BRCTG to eliminate add-&-compare sequencesRichard Sandiford2013-08-058-18/+419
| | | | | | | | | | | | | | | | This patch just uses a peephole test for "add; compare; branch" sequences within a single block. The IR optimizers already convert loops to decrement-and-branch-on-nonzero form in some cases, so even this simplistic test triggers many times during a clang bootstrap and projects/test-suite run. It looks like there are still cases where we need to more strongly prefer branches on nonzero though. E.g. I saw a case where a loop that started out with a check for 0 ended up with a check for -1. I'll try to look at that sometime. I ended up adding the Reference class because MachineInstr::readsRegister() doesn't check for subregisters (by design, as far as I could tell). llvm-svn: 187723
* Don't leak passes if added outside of the area determined by Started/Stopped ↵Benjamin Kramer2013-08-052-1/+4
| | | | | | flags. llvm-svn: 187722
* [SystemZ] Add definitions for BRCT and BRCTGRichard Sandiford2013-08-055-0/+114
| | | | llvm-svn: 187721
* [SystemZ] Use LOAD AND TEST to eliminate comparisons against zeroRichard Sandiford2013-08-054-1/+271
| | | | llvm-svn: 187720
* [SystemZ] Add LOAD AND TEST instructionsRichard Sandiford2013-08-054-0/+259
| | | | | | Just the definitions and MC support. The next patch uses them for codegen. llvm-svn: 187719
* [SystemZ] Split out comparison elimination into a separate passRichard Sandiford2013-08-055-270/+346
| | | | | | | | | | | Perhaps predictably, doing comparison elimination on the fly during SystemZLongBranch turned out to be a bad idea. The next patches make use of LOAD AND TEST and BRANCH ON COUNT, both of which require changes to earlier instructions. No functionality change intended. llvm-svn: 187718
* AVX-512 set: added mask operations, lowering BUILD_VECTOR for i1 vector types.Elena Demikhovsky2013-08-056-0/+451
| | | | | | Added intrinsics and tests. llvm-svn: 187717
* Update the release notes about the status of the vectorizers.Nadav Rotem2013-08-051-0/+5
| | | | llvm-svn: 187714
* Update the docs.Nadav Rotem2013-08-051-26/+6
| | | | llvm-svn: 187713
* Add the saving of S2. This is needed for some of the floating pointReed Kotler2013-08-047-22/+27
| | | | | | | | | helper functions. This can be optimized out later when the remaining parts of the helper function work is moved into the Mips16HardFloat pass. For now it forces us to use the 32 bit save/restore instructions instead of the 16 bit ones. llvm-svn: 187712
* Remove "lto_on_osx" xfails, now that -rdynamic works on Darwin.Bob Wilson2013-08-045-8/+0
| | | | | | | Note that this will require a recent version of the linker for Darwin builds with LTO to pass these tests. llvm-svn: 187711
* Build with the $RDYNAMIC flag on Darwin as well as other platforms.Bob Wilson2013-08-042-15/+9
| | | | | | Part of <rdar://problem/14620988> llvm-svn: 187710
* X86: Turn fp selects into mask operations.Benjamin Kramer2013-08-048-118/+381
| | | | | | | | | | | | | | | | | | | | | | | double test(double a, double b, double c, double d) { return a<b ? c : d; } before: _test: ucomisd %xmm0, %xmm1 ja LBB0_2 movaps %xmm3, %xmm2 LBB0_2: movaps %xmm2, %xmm0 after: _test: cmpltsd %xmm1, %xmm0 andpd %xmm0, %xmm2 andnpd %xmm3, %xmm0 orpd %xmm2, %xmm0 Small speedup on Benchmarks/SmallPT llvm-svn: 187706
* AVX-512 set: added VEXTRACTPS instructionElena Demikhovsky2013-08-043-7/+35
| | | | llvm-svn: 187705
* X86: specify CPU on new test to fix atom buildbotTim Northover2013-08-041-1/+1
| | | | | | | Apparently Atoms use lea for stack adjustment, which we weren't looking for. llvm-svn: 187704
* X86: correct tail return address calculationTim Northover2013-08-043-4/+25
| | | | | | | | | | | Due to the weird and wondeful usual arithmetic conversions, some calculations involving negative values were getting performed in uint32_t and then promoted to int64_t, which is really not a good idea. Patch by Katsuhiro Ueno. llvm-svn: 187703
* AsmParser: Store MacroLikeBodies on the side so they don't get leaked.Benjamin Kramer2013-08-041-1/+5
| | | | llvm-svn: 187702
* Clean up code for Mips16 large frame handling.Reed Kotler2013-08-047-47/+163
| | | | llvm-svn: 187701
* PPCAsmParser: Stop leaking names.Benjamin Kramer2013-08-031-10/+31
| | | | | | Store them in a place that gets cleaned up properly. llvm-svn: 187700
* Unbreak llvm-rtdyld build.Benjamin Kramer2013-08-031-3/+3
| | | | llvm-svn: 187699
* MachObjectFile: Don't leak on error.Benjamin Kramer2013-08-031-7/+9
| | | | llvm-svn: 187698
* llvm-rtdyld: Don't leak memory managers.Benjamin Kramer2013-08-031-4/+4
| | | | | | Dyld never outlives MemMgr, just put both on the stack. llvm-svn: 187697
* ARMAsmParser: Plug a leak.Benjamin Kramer2013-08-031-3/+11
| | | | | | Using an object to do the cleanup may look like overkill, but it's safer and nicer than putting deletes everywhere. llvm-svn: 187696
* Stop leaking register infos in the disassemblers.Benjamin Kramer2013-08-032-4/+4
| | | | llvm-svn: 187695
* Fix PPC64 64-bit GPR inline asm constraint matchingHal Finkel2013-08-032-1/+83
| | | | | | | | | | | | | | | Internally, the PowerPC backend names the 32-bit GPRs R[0-9]+, and names the 64-bit parent GPRs X[0-9]+. When matching inline assembly constraints with explicit register names, on PPC64 when an i64 MVT has been requested, we need to follow gcc's convention of using r[0-9]+ to refer to the 64-bit (parent) registers. At some point, we'll probably want to arrange things so that the generic code in TargetLowering uses the AsmName fields declared in *RegisterInfo.td in order to match these inline asm register constraints. If we do that, this change can be reverted. llvm-svn: 187693
* Minor address space code simplification.Matt Arsenault2013-08-032-12/+5
| | | | | | Remove assertion that the verifier should catch. llvm-svn: 187692
* Regenerate with changes for -rdynamic.Bob Wilson2013-08-022-8/+8
| | | | llvm-svn: 187687
* Link with -rdynamic instead of -Wl,-export-dynamic.Bob Wilson2013-08-026-14/+16
| | | | | | | | | | | | | | | Recent versions of the OS X linker support this but follow the existing OS X linker convention of using an underscore in the option name, i.e., -export_dynamic. Rather than changing our configure scripts to check for that alternate spelling, it is simpler to just use the compiler's -rdynamic option and let it deal with translating that to the appropriate linker option. One potential disadvantage of this approach is that the compiler will typically ignore -rdynamic on platforms where it is not supported, so the HAVE_LINK_EXPORT_DYNAMIC in config.h will not necessarily show whether that option has any effect or not. I don't see any in-tree uses of that macro, so I'm assuming it is OK. llvm-svn: 187686
* Add a AttributeSetImpl::dump function.Peter Collingbourne2013-08-022-0/+6
| | | | | | | This is for the benefit of those of us with inferior debuggers which do not permit member function calls on value types. llvm-svn: 187685
* Make one of the AttributeSet ctors maintain the invariant that thePeter Collingbourne2013-08-023-2/+42
| | | | | | | | attribute list is ordered by index. Differential Revision: http://llvm-reviews.chandlerc.com/D1265 llvm-svn: 187682
* Option parsing: recognize the special -- tokenHans Wennborg2013-08-022-1/+29
| | | | | | | | | | | | | | Everything that comes after -- should be treated as a filename. This enables passing in filenames that would otherwise be conflated with command-line options. This is especially important for clang-cl which supports options starting with /, which are easily conflatable with Unix-style path names. Differential Revision: http://llvm-reviews.chandlerc.com/D1274 llvm-svn: 187675
* Fix invalid function pointers in bugpoint ExtractLoopsHal Finkel2013-08-021-7/+42
| | | | | | | | | | | | | | | | | | | | | | | The ExtractLoops function tries to reduce the failing test case by extracting one or more loops from the misoptimized piece of the program. In doing this, ExtractLoops must keep the MiscompiledFunctions vector up-to-date by ensuring that the pointers refer to functions in the current failing program. Unfortunately, this is not trivial because: - ExtractLoops is iterative, and there are several early exits (and the MiscompiledFunctions vector must be consistent with the current program at every non-fatal exit point). - Several of the utility functions used by ExtractLoops (such as TestOptimizer, some of which are called through the TestFn callback parameter, and Linker::LinkModules) delete their inputs upon success. This change adds several updates of the MiscompiledFunctions vector at different points. The first is after the initial call to TestMergedProgram which checks that the loop-extracted program still works. The second is after the call to TestFn (TestOptimizer, for example). This function will delete its inputs (which is why the existing ExtractLoops logic cloned the inputs first). llvm-svn: 187674
* Add a missing 'return' statement.Joey Gouly2013-08-021-0/+1
| | | | llvm-svn: 187671
* [mips] Expand vector truncating stores and extending loads.Akira Hatanaka2013-08-022-0/+25
| | | | llvm-svn: 187667
* [ARMv8] Add an assembler warning for the deprecated 'setend' instruction.Joey Gouly2013-08-022-0/+15
| | | | llvm-svn: 187666
* SLPVectorizer: Fix PR16777. PHInodes may use multiple extracted values that ↵Nadav Rotem2013-08-022-10/+48
| | | | | | | | come from different blocks. Thanks Alexey Samsonov. llvm-svn: 187663
* Teach EmitGEPOffset about address spacesMatt Arsenault2013-08-021-12/+14
| | | | llvm-svn: 187662
* Fixes ARM LNT bot from SLP change in O3Renato Golin2013-08-022-6/+16
| | | | | | | | | | | | This patch fixes the multiple breakages on ARM test-suite after the SLP vectorizer was introduced by default on O3. The problem was an illegal vector type on ARMTTI::getCmpSelInstrCost() <3 x i1> which is not simple. The guard protects this code from breaking (cause of the problems) but doesn't fix the issue that is generating the odd vector in the first place, which also needs to be investigated. llvm-svn: 187658
* Bugfix for making the DWARF debug strings and labels to code emitted as ↵Carlo Kok2013-08-022-0/+44
| | | | | | secrel32 instead of long opcodes (only for coff). This makes them debuggable with GDB (with fix for 64bits msvc) llvm-svn: 187656
* Fix handling of CHECK-DAG combined with CHECK-NOTTim Northover2013-08-022-2/+2
| | | | | | Patch by Daniel Sanders. llvm-svn: 187651
* Pacify GCC, which worries about falling off the end of the switch.Duncan Sands2013-08-021-0/+2
| | | | llvm-svn: 187649
* Fix dereferencing end iterator in SimplifyCFG. Patch by Ye Mei.Alexey Samsonov2013-08-021-5/+8
| | | | llvm-svn: 187646
* Revert r187597, "Bugfix for making the DWARF debug strings and labels to ↵NAKAMURA Takumi2013-08-022-44/+0
| | | | | | | | code emitted as secrel32 instead of long opcodes (only for coff). This makes them debuggable with GDB." It broke x86_64-win32 builder in llvm/test/DebugInfo. llvm-svn: 187642
* Use @rpath for libraries rather than @executable_path on OSX.Eric Christopher2013-08-023-3/+3
| | | | | | Patch by Benjamin Scarlet! llvm-svn: 187641
* Temporarily revert "Debug Info Finder|Verifier: handle DbgLoc attached toEric Christopher2013-08-0217-50/+50
| | | | | | | | instructions." in an attempt to bring back some bots. This reverts commit r187609. llvm-svn: 187638
* Teach InstructionSimplify about pointer address spacesMatt Arsenault2013-08-021-4/+9
| | | | llvm-svn: 187635
* [mips] Make load/store accumulator pseudo instructions codeGenOnly. Also,Akira Hatanaka2013-08-012-22/+11
| | | | | | | | remove lines that are setting DecoderNamespace for pseudo atomic instructions. No intended functionality change. llvm-svn: 187632
* Teach getOrEnforceKnownAlignment about address spacesMatt Arsenault2013-08-011-4/+5
| | | | llvm-svn: 187629
OpenPOWER on IntegriCloud