summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Add const qualifier to some static arrays.Craig Topper2013-07-152-6/+6
| | | | llvm-svn: 186309
* Add 'static' keyword to some const arrays for consistency.Craig Topper2013-07-151-6/+6
| | | | llvm-svn: 186308
* Make some arrays 'static const'Craig Topper2013-07-154-11/+11
| | | | llvm-svn: 186307
* Revert part of 186302 to fix buildbots.Craig Topper2013-07-151-1/+2
| | | | llvm-svn: 186303
* Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).Craig Topper2013-07-158-17/+15
| | | | llvm-svn: 186301
* Mark llvm/test/Object/extract.ll as XFAIL:mingw32, for now.NAKAMURA Takumi2013-07-151-0/+3
| | | | | FIXME: Investigate Win32's TimeValue stuff! llvm-svn: 186298
* Clarify comments.Eric Christopher2013-07-141-4/+1
| | | | llvm-svn: 186297
* Add DW_AT_GNU_odr_signature to the set of dwarf attributes.Eric Christopher2013-07-142-0/+3
| | | | llvm-svn: 186296
* Collapse temporary variable into call.Eric Christopher2013-07-141-4/+2
| | | | llvm-svn: 186295
* Use conventional syntax for branches.Anton Korobeynikov2013-07-143-4/+4
| | | | | | Patch by Job! llvm-svn: 186291
* Correct inaccurate statement in FileCheck docs.Stephen Lin2013-07-141-1/+2
| | | | llvm-svn: 186290
* Properly lower jump tables on MSP430. Patch by Job Noorman!Anton Korobeynikov2013-07-142-7/+7
| | | | llvm-svn: 186283
* The archive update test has a subtle race condition in it: if the testChandler Carruth2013-07-141-7/+15
| | | | | | | | | | | | | | | | | | is executed within the same second as the inputs for the test are checked out from the source tree, it will fail to update due to being below the resolution of the 'mtime' test used. Now, this may seem improbably to you... ok, maybe *really* improbable, but consider a system which does distributed execution of tests by shipping their inputs to another machine and runs them. That might cause the mtime to be quite recent during the test run. ;] Instead, create two files directly in the test (allowing all platforms to see the problem) and add either a use of the 'touch' command that forces one mtime to some time quite a bit in the past, or it sleeps for just over a second to be outside of the precision window. llvm-svn: 186282
* Mass update to CodeGen tests to use CHECK-LABEL for labels corresponding to ↵Stephen Lin2013-07-14937-8028/+8028
| | | | | | | | | | | | | | | | | | | | | | | | | | function definitions for more informative error messages. No functionality change and all updated tests passed locally. This update was done with the following bash script: find test/CodeGen -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc.*debug" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_-]*\):\( *\)$FUNC: *\$/;\1\2-LABEL:\3$FUNC:/g" $TEMP done sed -i '' "s/;\(.*\)-LABEL-LABEL:/;\1-LABEL:/" $TEMP sed -i '' "s/;\(.*\)-NEXT-LABEL:/;\1-NEXT:/" $TEMP sed -i '' "s/;\(.*\)-NOT-LABEL:/;\1-NOT:/" $TEMP sed -i '' "s/;\(.*\)-DAG-LABEL:/;\1-DAG:/" $TEMP mv $TEMP $NAME fi done llvm-svn: 186280
* SLPVectorizer: change the order in which we search for vectorization ↵Nadav Rotem2013-07-141-4/+4
| | | | | | candidates. Do stores first and PHIs second. llvm-svn: 186277
* Fix build by replacing '>>' with '> >'Tobias Grosser2013-07-141-7/+5
| | | | llvm-svn: 186276
* Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector ↵Craig Topper2013-07-1461-222/+227
| | | | | | size. llvm-svn: 186274
* Remove a bunch of old SCEVExpander FIXME's for preserving NoWrap.Andrew Trick2013-07-141-17/+11
| | | | | | | | | | | | | | | The great thing about the SCEVAddRec No-Wrap flag (unlike nsw/nuw) is that is can be preserved while normalizing (reassociating and factoring). The bad thing is that is can't be tranfered back to IR, which is one of the reasons I don't like the concept of SCEVExpander. Sorry, I can't think of a direct way to test this, which is why these were FIXMEs for so long. I just think it's a good time to finally clean it up. llvm-svn: 186273
* Teach indvars to generate nsw/nuw flags when widening an induction variable.Andrew Trick2013-07-142-1/+35
| | | | | | Fixes PR16600. llvm-svn: 186272
* Fixup to r186268 and r186269: don't append -LABEL to CHECK-NOT. No ↵Stephen Lin2013-07-144-5/+5
| | | | | | functionality change. llvm-svn: 186271
* Catch more CHECK that can be converted to CHECK-LABEL in Transforms for ↵Stephen Lin2013-07-1463-301/+301
| | | | | | | | | | | | | | | | | | | | | | easier debugging. No functionality change. This conversion was done with the following bash script: find test/Transforms -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP done mv $TEMP $NAME fi done llvm-svn: 186269
* Update Transforms tests to use CHECK-LABEL for easier debugging. No ↵Stephen Lin2013-07-14444-2477/+2477
| | | | | | | | | | | | | | | | | | | | | | functionality change. This update was done with the following bash script: find test/Transforms -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3@$FUNC(/g" $TEMP done mv $TEMP $NAME fi done llvm-svn: 186268
* Modify two Transforms tests to explicitly check for full function names in ↵Stephen Lin2013-07-142-2/+2
| | | | | | | | some cases, rather than just a common prefix. No functionality change. (This is to avoid confusing a scripted mass update of these tests to use CHECK-LABEL) llvm-svn: 186267
* Convert Windows to Unix line endings, no functionality change.Stephen Lin2013-07-133-217/+217
| | | | llvm-svn: 186264
* Add newlines at end of test files, no functionality changeStephen Lin2013-07-1310-10/+10
| | | | llvm-svn: 186263
* Convert CodeGen/*/*.ll tests to use the new CHECK-LABEL for easier ↵Stephen Lin2013-07-13255-1492/+1492
| | | | | | | | | | debugging. No functionality change and all tests pass after conversion. This was done with the following sed invocation to catch label lines demarking function boundaries: sed -i '' "s/^;\( *\)\([A-Z0-9_]*\):\( *\)test\([A-Za-z0-9_-]*\):\( *\)$/;\1\2-LABEL:\3test\4:\5/g" test/CodeGen/*/*.ll which was written conservatively to avoid false positives rather than false negatives. I scanned through all the changes and everything looks correct. llvm-svn: 186258
* LoopVectorizer: Disallow reductions whose header phi is used outside the loopArnold Schwaighofer2013-07-132-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an outside loop user of the reduction value uses the header phi node we cannot just reduce the vectorized phi value in the vector code epilog because we would loose VF-1 reductions. lp: p = phi (0, lv) lv = lv + 1 ... brcond , lp, outside outside: usr = add 0, p (Say the loop iterates two times, the value of p coming out of the loop is one). We cannot just transform this to: vlp: p = phi (<0,0>, lv) lv = lv + <1,1> .. brcond , lp, outside outside: p_reduced = p[0] + [1]; usr = add 0, p_reduced (Because the original loop iterated two times the vectorized loop would iterate one time, but p_reduced ends up being zero instead of one). We would have to execute VF-1 iterations in the scalar remainder loop in such cases. For now, just disable vectorization. PR16522 llvm-svn: 186256
* Reduce large list of macros to the primary platform macros. DistingiushJoerg Sonnenberger2013-07-131-20/+18
| | | | | | | between ELF (Linux, FreeBSD, NetBSD) and OSX as platform for the assembler dialect. llvm-svn: 186252
* Convert a couple of grep tests to FileCheck.Benjamin Kramer2013-07-136-31/+109
| | | | llvm-svn: 186250
* Only verify the length in archive test, we can't make assumptions on the ↵Benjamin Kramer2013-07-131-2/+2
| | | | | | | | spacing. And .* did just match about anything anyways. llvm-svn: 186246
* Attempt at fixing a mingw bot.Rafael Espindola2013-07-131-2/+0
| | | | | | | | | It is failing with YAMLTest.cpp:38: instantiated from here YAMLTraits.h:226: error: 'llvm::yaml::MappingTraits<<unnamed>::BinaryHolder>::mapping' is not a valid template argument for type 'void (*)(llvm::yaml::IO&, <unnamed>::BinaryHolder&)' because function 'static void llvm::yaml::MappingTraits<<unnamed>::BinaryHolder>::mapping(llvm::yaml::IO&, <unnamed>::BinaryHolder&)' has not external linkage llvm-svn: 186245
* Remove unneeded forward declarations.Craig Topper2013-07-131-3/+0
| | | | llvm-svn: 186244
* Pass SmallVector by const reference instead of by value.Craig Topper2013-07-131-2/+2
| | | | llvm-svn: 186243
* Make the new vectorizer test immune to TTIAndrew Trick2013-07-131-1/+1
| | | | llvm-svn: 186242
* LoopVectorize fix: LoopInfo must be valid when invoking utils like SCEVExpander.Andrew Trick2013-07-132-18/+131
| | | | | | | | | | | In general, one should always complete CFG modifications first, update CFG-based analyses, like Dominatores and LoopInfo, then generate instruction sequences. LoopVectorizer was creating a new loop, calling SCEVExpander to generate checks, then updating LoopInfo. I just changed the order. llvm-svn: 186241
* Try to open the file before use data from stat.Rafael Espindola2013-07-131-2/+3
| | | | | | | Looks like on mingw we get bogus last modification times on directories. Should fix the mingw bots. llvm-svn: 186240
* Remove unused file. Thanks to Sean Silva for noticing it.Rafael Espindola2013-07-131-419/+0
| | | | llvm-svn: 186239
* Add r186216 back, but make the test tolerant of different uids and gids.Rafael Espindola2013-07-132-1/+23
| | | | | | | original message: Fix a off by one error about which members need to use the string table. llvm-svn: 186238
* Add a microoptimization for urem.Nick Lewycky2013-07-132-0/+16
| | | | llvm-svn: 186235
* Revert commit r186217 -- this is breaking bots:Chandler Carruth2013-07-136-20/+25
| | | | | | | | | | http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RAincremental/builds/4328 Original commit log: Use the function attributes to pass along the stack protector buffer size. llvm-svn: 186234
* Revert commit r186216 -- it's breaking bots:Chandler Carruth2013-07-132-23/+1
| | | | | | | | | | http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/6897/steps/check-all/logs/LLVM%3A%3Aarchive-format.test Original commit log: Fix a off by one error about which members need to use the string table. llvm-svn: 186232
* [mips] Remove trailing whitespace.Akira Hatanaka2013-07-121-4/+4
| | | | llvm-svn: 186230
* Fix logic error optimizing "icmp pred (urem X, Y), Y" where pred is signed.Nick Lewycky2013-07-122-5/+16
| | | | | | Fixes PR16605. llvm-svn: 186229
* [mips] Implement MipsTargetMachine::getInstrItineraryData().Akira Hatanaka2013-07-1211-86/+98
| | | | llvm-svn: 186227
* Fix ARM paired GPR COPY loweringJF Bastien2013-07-122-0/+20
| | | | | | | | | | | | | ARM paired GPR COPY was being lowered to two MOVr without CC. This patch puts the CC back. My test is a reduction of the case where I encountered the issue, 64-bit atomics use paired GPRs. The issue only occurs with selectionDAG, FastISel doesn't encounter it so I didn't bother calling it. llvm-svn: 186226
* Fixed 80+ violation and added C++ to header.Michael Gottesman2013-07-121-1/+1
| | | | llvm-svn: 186225
* Fix a crash in EvaluateInDifferentElementOrder where it would generate anJoey Gouly2013-07-122-1/+18
| | | | | | | | undef vector of the wrong type. LGTM'd by Nick Lewycky on IRC. llvm-svn: 186224
* [mips] Add instruction itinerary classes for mult, seb and slt instructions.Akira Hatanaka2013-07-123-13/+16
| | | | llvm-svn: 186222
* Use the function attributes to pass along the stack protector buffer size.Bill Wendling2013-07-126-25/+20
| | | | | | | Now that we have robust function attributes, don't use a command line option to specify the stack protecto buffer size. llvm-svn: 186217
* Fix a off by one error about which members need to use the string table.Rafael Espindola2013-07-122-1/+23
| | | | llvm-svn: 186216
OpenPOWER on IntegriCloud