summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix getNode to allow a vector for the shift amount for shifts of vectors.Mon P Wang2008-12-094-9/+44
| | | | | | | | Fix the shift amount when unrolling a vector shift into scalar shifts. Fix problem in getShuffleScalarElt where it assumes that the input of a bit convert must be a vector. llvm-svn: 60740
* Fix a really subtle off-by-one bug that Duncan noticed with valgrindChris Lattner2008-12-091-1/+1
| | | | | | on test/CodeGen/Generic/2007-06-06-CriticalEdgeLandingPad. llvm-svn: 60739
* CellSPU:Scott Michel2008-12-091-2/+5
| | | | | | | | - Change default scheduling preference to list-burr, which produces somewhat better code than the default. Could also use list-tdrr, but need to ask dev list about the appropriate handy mnemonic before commiting. llvm-svn: 60738
* Add initial support for fast-isel of the [SU]ADDO intrinsics. It isn'tBill Wendling2008-12-091-7/+84
| | | | | | | | | | | | | | | | | | | complete. For instance, it lowers the common case into this less-than-optimal code: addl %ecx, %eax seto %cl testb %cl, %cl jne LBB1_2 ## overflow instead of: addl %ecx, %eax jo LBB1_2 ## overflow That will come in a future commit. llvm-svn: 60737
* Fix the name of ISD::TokenFactor in a comment. Thanks Gabor!Dan Gohman2008-12-091-1/+1
| | | | llvm-svn: 60736
* remove two unneeded forward declarations, pointed out by Gabor.Chris Lattner2008-12-091-2/+0
| | | | llvm-svn: 60735
* [static analyzer] Extend VLA size checking to look for undefined sizes.Ted Kremenek2008-12-094-18/+51
| | | | llvm-svn: 60734
* Don't charge full latency for an anti-dependence, in this simplisticDan Gohman2008-12-091-3/+7
| | | | | | pipeline model. llvm-svn: 60733
* Update Driver to new interface for LiveVariables.Ted Kremenek2008-12-091-1/+1
| | | | llvm-svn: 60732
* Add zero-sized VLA check test case.Ted Kremenek2008-12-091-0/+7
| | | | llvm-svn: 60731
* Fixed LiveVariables bug where we didn't consider block-level expressions ↵Ted Kremenek2008-12-094-6/+24
| | | | | | that functioned as the size of a VLA to be live. llvm-svn: 60730
* Change condition under which 'retain'/'copy' are directly evaluated.Fariborz Jahanian2008-12-081-4/+6
| | | | llvm-svn: 60729
* Fix a couple of mistaken switch case fall-throughs. Thanks to BillDan Gohman2008-12-081-0/+2
| | | | | | for spotting these! llvm-svn: 60728
* Actually test something. Use PR3170 test case.Devang Patel2008-12-081-36/+25
| | | | llvm-svn: 60727
* Add checking for zero-sized VLAs.Ted Kremenek2008-12-083-41/+91
| | | | llvm-svn: 60726
* remove DebugIterations option. Despite the accusations, Chris Lattner2008-12-081-14/+1
| | | | | | | jump threading has been shown to only expose problems not have bugs itself. I'm sure it's completely bug free! ;-) llvm-svn: 60725
* Incorporate MissingDealloc_IBOutlet.m test case into MissingDealloc.mTed Kremenek2008-12-082-20/+18
| | | | llvm-svn: 60722
* Incorporate MissingDeallc_SEL.m test case into MissingDealloc.mTed Kremenek2008-12-082-30/+24
| | | | llvm-svn: 60721
* Add test case for <rdar://problem/6380411>.Ted Kremenek2008-12-081-0/+23
| | | | llvm-svn: 60720
* Fix PR3172: if we see an eof or } at the top level, reject it.Chris Lattner2008-12-082-0/+14
| | | | | | | This is important because ParseDeclarationOrFunctionDefinition skips to, but does not consume, an } on error. llvm-svn: 60719
* improve comment.Chris Lattner2008-12-081-1/+1
| | | | llvm-svn: 60718
* 'self.myIvar = nil' (properties) only releases myIvar when the property has ↵Ted Kremenek2008-12-081-2/+5
| | | | | | kind 'assign'. This fixes <rdar://problem/6380411>. llvm-svn: 60717
* ObjCInterfaceDecl::lookupInstanceMethod() needs to look through a categories ↵Steve Naroff2008-12-082-0/+56
| | | | | | | | protocols. Fixes <rdar://problem/6418640> clang on prokit: error: incompatible type returning 'id', expected 'NSSize' llvm-svn: 60716
* Fix a couple uninitialized variables from my previous commit.Steve Naroff2008-12-081-1/+3
| | | | llvm-svn: 60713
* Remove the #include of ScheduleDAGSDNodes.h, which is no longer necessary.Dan Gohman2008-12-081-1/+0
| | | | llvm-svn: 60712
* Re-apply 60689 now my head is screwed on right.Evan Cheng2008-12-081-0/+2
| | | | llvm-svn: 60711
* Changed 'readonly' 'retain/copy' diagnostics intoFariborz Jahanian2008-12-083-5/+8
| | | | | | warning as it is allowed in gcc and will break projects. llvm-svn: 60710
* Since we do not allow a readonly property to be 'copy'retain', weFariborz Jahanian2008-12-082-6/+2
| | | | | | | must allow the continuation class to extend it to a 'readwrite' and 'copy/retain'. llvm-svn: 60709
* Move Sema::isTemplateParameterDecl to Decl::isTemplateParameter, where it ↵Douglas Gregor2008-12-085-17/+19
| | | | | | belongs llvm-svn: 60708
* Fix the top-level comments, and fix some 80-column violations.Dan Gohman2008-12-081-7/+9
| | | | llvm-svn: 60707
* Move the conversion to intptr_t to a separate statement. ThisDan Gohman2008-12-081-2/+3
| | | | | | avoids GCC's warning even on 64-bit hosts. llvm-svn: 60706
* Revert 60689. It caused many regressions on Darwin targets.Dan Gohman2008-12-081-3/+1
| | | | llvm-svn: 60705
* Fix <rdar://problem/6423452> clang ObjC rewriter: Don't use ↵Steve Naroff2008-12-081-28/+30
| | | | | | __declspec(dllimport) for Blocks functions, as they are linked statically. llvm-svn: 60704
* Use 'delete []' instead of 'delete' in OwningArray::reset().Ted Kremenek2008-12-081-1/+1
| | | | llvm-svn: 60703
* Fix spelling. Devang Patel2008-12-081-10/+10
| | | | | | Thanks Duncan! llvm-svn: 60702
* Undo previous patch. Devang Patel2008-12-082-4/+2
| | | | llvm-svn: 60701
* Handle chained/nested property 'getters' (obj.p1.p2.p3).Steve Naroff2008-12-082-10/+111
| | | | | | This is a follow-up to fixing <rdar://problem/6213955> clang ObjC rewriter: rewriter doesn't appear to support @property and @synthesize. llvm-svn: 60700
* Fill in some parts of cxx_status.htmlSebastian Redl2008-12-081-40/+129
| | | | llvm-svn: 60699
* Fix comment typo.Duncan Sands2008-12-081-1/+1
| | | | llvm-svn: 60698
* Fix comment typo.Duncan Sands2008-12-081-1/+1
| | | | llvm-svn: 60697
* Factor out the code for sign-extending/truncating gep indicesDan Gohman2008-12-084-26/+57
| | | | | | | | | and use it in x86 address mode folding. Also, make getRegForValue return 0 for illegal types even if it has a ValueMap for them, because Argument values are put in the ValueMap. This fixes PR3181. llvm-svn: 60696
* add another level of caching for non-local pointer queries, keepingChris Lattner2008-12-082-8/+34
| | | | | | | | | track of whether the CachedNonLocalPointerInfo for a block is specific to a block. If so, just return it without any pred scanning. This is good for a 6% speedup on GVN (when it uses this lookup method, which it doesn't right now). llvm-svn: 60695
* consistencyChris Lattner2008-12-081-2/+2
| | | | llvm-svn: 60694
* fix 80-col violation.Zhongxing Xu2008-12-081-1/+1
| | | | llvm-svn: 60693
* introduce a new RoundUpAlignment helper function, use it to Chris Lattner2008-12-082-37/+40
| | | | | | | remove some more 64-bit divs and rems from the StructLayout ctor. llvm-svn: 60692
* Make ConstantAggregateZero::get return a ConstantAggregateZero*,Dan Gohman2008-12-082-2/+2
| | | | | | as suggested in PR3182. llvm-svn: 60691
* Update CPP backend for PrintModulePass API changes.Dan Gohman2008-12-081-4/+4
| | | | llvm-svn: 60690
* Perform cheap checks first.Evan Cheng2008-12-081-1/+3
| | | | llvm-svn: 60689
* Speed up getABITypeSize by turning a i64 mul and div into anChris Lattner2008-12-081-2/+6
| | | | | | | | | AND. This is speedup on any reasonable target, but particularly on 32-bit targets where this often turns into a libcall like udivdi3. We know that alignments are a power of two but the compiler doesn't. llvm-svn: 60688
* Some minor optimizations for isObjectSmallerThan.Chris Lattner2008-12-081-7/+12
| | | | llvm-svn: 60687
OpenPOWER on IntegriCloud