summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Delete useless trailing semicolons.Dan Gohman2010-01-0557-102/+102
| | | | llvm-svn: 92740
* Nick Lewycky pointed out that this code makes changes unconditionally.Dan Gohman2010-01-051-1/+2
| | | | llvm-svn: 92739
* Have TableGen emit code that uses dbgs() rather than errs().David Greene2010-01-051-2/+2
| | | | llvm-svn: 92738
* Fix <rdar://problem/7490212> clang rewriter: return of the mixed line ↵Steve Naroff2010-01-051-1/+3
| | | | | | | | | | endings, which is related to <rdar://problem/6596843> clang ObjC rewriter: Line endings still mixed in rewrite output This fix was dropped when I integrated the 'objective-rewrite' branch. llvm-svn: 92737
* If a scope has only one instruction then first instruction is also the last ↵Devang Patel2010-01-052-1/+19
| | | | | | instruction. llvm-svn: 92736
* Set Changed properly after calling DeleteDeadPHIs.Dan Gohman2010-01-052-2/+2
| | | | llvm-svn: 92735
* Use do+while instead of while for loops which obviously have aDan Gohman2010-01-0512-29/+23
| | | | | | non-zero trip count. Use SmallVector's pop_back_val(). llvm-svn: 92734
* Fix indentation.Dan Gohman2010-01-051-1/+1
| | | | llvm-svn: 92733
* Make RecursivelyDeleteTriviallyDeadInstructions,Dan Gohman2010-01-054-15/+25
| | | | | | | RecursivelyDeleteDeadPHINode, and DeleteDeadPHIs return a flag indicating whether they made any changes. llvm-svn: 92732
* Some versions of GCC don't like non-static data members in sizeofDan Gohman2010-01-051-1/+1
| | | | | | in this context. llvm-svn: 92731
* Add a SmallBitVector class, which mimics BitVector but uses onlyDan Gohman2010-01-054-0/+671
| | | | | | | | | | | | a single pointer (PointerIntPair) member. In "small" mode, the pointer field is reinterpreted as a set of bits. In "large" mode, the pointer points to a heap-allocated object. Also, give BitVector empty and swap functions. And, add some simple unittests for BitVector and SmallBitVector. llvm-svn: 92730
* Add newline at EOF.Benjamin Kramer2010-01-051-1/+1
| | | | llvm-svn: 92727
* Avoid going through the LLVMContext for type equality where it's safe to ↵Benjamin Kramer2010-01-0525-58/+46
| | | | | | dereference the type pointer. llvm-svn: 92726
* Move test case to a more appropriate file.Zhongxing Xu2010-01-052-9/+10
| | | | llvm-svn: 92725
* Add test case.Zhongxing Xu2010-01-051-0/+9
| | | | llvm-svn: 92724
* Revert r92318. Instead fix the analyzer: do not call Zhongxing Xu2010-01-052-9/+3
| | | | | | ASTContext::hasSameUnqualifiedType() when one of the type is VariableArrayType. llvm-svn: 92723
* if an arraytype is canonical, then its element is guaranteed to be canonical.Zhongxing Xu2010-01-051-1/+2
| | | | llvm-svn: 92715
* prune some #includes.Chris Lattner2010-01-051-8/+1
| | | | llvm-svn: 92712
* split and/or/xor out into one overly-large (2000LOC) file. However, I thinkChris Lattner2010-01-053-1963/+1978
| | | | | | it does make sense to keep them together, at least for now. llvm-svn: 92711
* missed file with previous commit.Chris Lattner2010-01-051-418/+0
| | | | llvm-svn: 92710
* split instcombine of shifts out to its own file.Chris Lattner2010-01-052-0/+437
| | | | llvm-svn: 92709
* eliminate getBitCastOperand and simplify some over-complex inbounds stuff.Chris Lattner2010-01-051-46/+22
| | | | llvm-svn: 92708
* split call handling out to InstCombineCalls.cppChris Lattner2010-01-053-1110/+1133
| | | | llvm-svn: 92707
* optimize cttz and ctlz when we can prove something about the Chris Lattner2010-01-052-2/+58
| | | | | | leading/trailing bits. Patch by Alastair Lynn! llvm-svn: 92706
* this inline function moved to addsubChris Lattner2010-01-051-24/+0
| | | | llvm-svn: 92705
* split add/sub out to its own file. Eliminate use ofChris Lattner2010-01-053-695/+749
| | | | | | | dyn_castNotVal in the X+~X transform. dyn_castNotVal is dramatic overkill for what the xform needed. llvm-svn: 92704
* all the places we use hasOneUse() we know are instructions, so inlineChris Lattner2010-01-051-12/+9
| | | | | | and simplify. llvm-svn: 92700
* eliminate AssociativeOpt and its last uses.Chris Lattner2010-01-051-35/+2
| | | | llvm-svn: 92697
* inline the FoldICmpLogical functor.Chris Lattner2010-01-051-98/+90
| | | | llvm-svn: 92695
* Code refactoring.Evan Cheng2010-01-051-9/+19
| | | | llvm-svn: 92694
* inline the 'AddRHS' transformation, simplifying things significantly.Chris Lattner2010-01-051-39/+4
| | | | | | | | Eliminate the 'AddMaskingAnd' transformation, it is redundant with this more general code right below it: // A+B --> A|B iff A and B have no bits set in common. llvm-svn: 92693
* remove massive over-genality manifested as a big template Chris Lattner2010-01-051-60/+1
| | | | | | | | that got instantiated. There is no reason for instcombine to try this hard for simple associative optimizations. Next up, eliminate the template completely. llvm-svn: 92692
* split mul/div/rem instructions out to their own file.Chris Lattner2010-01-054-674/+701
| | | | llvm-svn: 92689
* clean up header.Chris Lattner2010-01-051-7/+2
| | | | llvm-svn: 92688
* split select out to its own file.Chris Lattner2010-01-053-692/+712
| | | | llvm-svn: 92687
* Allow clang to pass -x cl through to compiler driver.Nate Begeman2010-01-052-0/+3
| | | | llvm-svn: 92686
* split out load/store/alloca.Chris Lattner2010-01-053-607/+614
| | | | llvm-svn: 92685
* reduce indentationChris Lattner2010-01-051-4/+7
| | | | llvm-svn: 92684
* split vector stuff out to InstCombineVectorOps.cppChris Lattner2010-01-053-540/+558
| | | | llvm-svn: 92683
* split PHI node stuff out to InstCombinePHI.cppChris Lattner2010-01-053-821/+842
| | | | llvm-svn: 92682
* convert various IntrinsicInst's to use class instead of struct.Chris Lattner2010-01-053-14/+24
| | | | llvm-svn: 92681
* When emitting member function pointers, use the canonical decl if the member ↵Anders Carlsson2010-01-053-1/+15
| | | | | | function is virtual. Fixes PR5940. llvm-svn: 92680
* fix an infinite loop in reassociate building emacs.Chris Lattner2010-01-052-0/+19
| | | | llvm-svn: 92679
* Add a radar reference.Mike Stump2010-01-051-0/+1
| | | | llvm-svn: 92678
* Disallow captured arrays in blocks as well. Radar 7438948.Mike Stump2010-01-053-0/+16
| | | | llvm-svn: 92677
* Disallow capturing vlas inside blocks.Mike Stump2010-01-053-1/+19
| | | | llvm-svn: 92676
* Make static analysis support for C++ 'this' expression context-sensitive. ↵Ted Kremenek2010-01-057-42/+130
| | | | | | Essentially treat 'this' as a implicit parameter to the method call, and associate a region with it. llvm-svn: 92675
* Change this back to errs().David Greene2010-01-051-2/+1
| | | | llvm-svn: 92674
* These should probably be errs().David Greene2010-01-051-3/+3
| | | | llvm-svn: 92673
* Delete renaming use of dead dbg intrinsics.Devang Patel2010-01-054-22/+0
| | | | | | | | | Intrinsic::dbg_stoppoint Intrinsic::dbg_region_start Intrinsic::dbg_region_end Intrinsic::dbg_func_start llvm-svn: 92672
OpenPOWER on IntegriCloud