aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add #include removed from ConstantHandling.hChris Lattner2002-05-061-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2496 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase for PHI foldingChris Lattner2002-05-061-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2495 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up ADCE by removing extraneous wrapper classChris Lattner2002-05-061-43/+42
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2494 91177308-0d34-0410-b5e6-96231b3b80d8
* Combine not (not X) -> XChris Lattner2002-05-061-1/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2493 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase to make sure not instructions get combinedChris Lattner2002-05-061-0/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2492 91177308-0d34-0410-b5e6-96231b3b80d8
* Instruction Combination can create a ton of trivially dead instructions. RemoveChris Lattner2002-05-061-0/+1
| | | | | | | them with an DIE pass before more expensive optimizations are run. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2491 91177308-0d34-0410-b5e6-96231b3b80d8
* Support more cases...Chris Lattner2002-05-061-16/+43
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2490 91177308-0d34-0410-b5e6-96231b3b80d8
* More testsChris Lattner2002-05-061-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2489 91177308-0d34-0410-b5e6-96231b3b80d8
* Add testcase for -(-A)Chris Lattner2002-05-061-1/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2488 91177308-0d34-0410-b5e6-96231b3b80d8
* Change usage of isPointerType to use isaChris Lattner2002-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2487 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace all usages of Type::isPointerType with isa<PointerType>Chris Lattner2002-05-0613-65/+53
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2486 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement getPrimitiveSize()Chris Lattner2002-05-061-2/+14
| | | | | | | don't use isPointerType() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2485 91177308-0d34-0410-b5e6-96231b3b80d8
* Add many more instruction combination simplificationsChris Lattner2002-05-061-10/+188
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2484 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add getPrimitiveSize methodChris Lattner2002-05-061-18/+28
| | | | | | | | | * Remove isPointerType, isMethodType, etc... methods. Use isa<> instead * Added specialization of isa for pointer types so that DerivedTypes.h doesn't have to be #included to use isa<PointerType>(..) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2483 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix testcase, the 'shift out all bits' doesn't apply to signed types.Chris Lattner2002-05-061-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2482 91177308-0d34-0410-b5e6-96231b3b80d8
* Void and Label values cannot be acted on directly so they have zero sizeChris Lattner2002-05-061-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2481 91177308-0d34-0410-b5e6-96231b3b80d8
* More testcases I don't want to forget aboutChris Lattner2002-05-064-1/+91
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2480 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcases so I don't forget about these algebraic simplificationsChris Lattner2002-05-064-0/+122
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2479 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase so I don't forget about this.Chris Lattner2002-05-061-0/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2478 91177308-0d34-0410-b5e6-96231b3b80d8
* Testcase for missed merge opportunityChris Lattner2002-05-061-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2477 91177308-0d34-0410-b5e6-96231b3b80d8
* Run DCE AFTER SCCP and GCSE!Chris Lattner2002-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2476 91177308-0d34-0410-b5e6-96231b3b80d8
* Build CFGsimplify directoryChris Lattner2002-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2475 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated documentation a _LOT_Chris Lattner2002-05-061-238/+221
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2474 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead codeChris Lattner2002-05-061-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2473 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge blocks like this:Chris Lattner2002-05-061-26/+39
| | | | | | | | | | | void "test3"(bool %T) { br bool %T, label %BB1, label %BB1 BB1: ret void } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2472 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of shift instructionsChris Lattner2002-05-065-7/+108
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2471 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of shiftsChris Lattner2002-05-061-0/+28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2470 91177308-0d34-0410-b5e6-96231b3b80d8
* Print functions with curly braces instead of begin/endChris Lattner2002-05-061-9/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2469 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a range remove methodChris Lattner2002-05-061-4/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2468 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement two iterator remove methodChris Lattner2002-05-061-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2467 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial testcases for CFG simplify (which is part of DCE for now)Chris Lattner2002-05-062-0/+37
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2466 91177308-0d34-0410-b5e6-96231b3b80d8
* Test moved to SCCP test directoryChris Lattner2002-05-061-61/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2465 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement remainderChris Lattner2002-05-031-9/+46
| | | | | | | Fix implementation of Not git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2464 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement remainderChris Lattner2002-05-033-33/+39
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2463 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase for bugs in the constant propogatorChris Lattner2002-05-031-0/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2462 91177308-0d34-0410-b5e6-96231b3b80d8
* Add tests for floating point remainder eliminationChris Lattner2002-05-031-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2461 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase to see if constant propogation of remainder is implementedChris Lattner2002-05-031-0/+17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2460 91177308-0d34-0410-b5e6-96231b3b80d8
* This testcase is a sanity checkChris Lattner2002-05-031-0/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2459 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Transforms/SCCP/2002-05-03-NotOperator.llChris Lattner2002-05-031-12/+26
| | | | | | | by using the ~ operator instead of ! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2458 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new testcase for general constant prop.Chris Lattner2002-05-031-0/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2457 91177308-0d34-0410-b5e6-96231b3b80d8
* Add const prop pass to eliminate dead branchesChris Lattner2002-05-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2456 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the NOT operator.Chris Lattner2002-05-031-0/+28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2455 91177308-0d34-0410-b5e6-96231b3b80d8
* We currently don't allow unresolved opaque types!Chris Lattner2002-05-031-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2453 91177308-0d34-0410-b5e6-96231b3b80d8
* Add -d switch to test AsmWriter as wellChris Lattner2002-05-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2452 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow open/closing curly braces instead of begin/end to define the body of a ↵Chris Lattner2002-05-032-3/+7
| | | | | | function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2451 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate usage of function level constant poolChris Lattner2002-05-022-10/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2450 91177308-0d34-0410-b5e6-96231b3b80d8
* Use unified diffs with gnu diff instead of old diffsChris Lattner2002-05-021-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2449 91177308-0d34-0410-b5e6-96231b3b80d8
* Ok, really it only takes me 3 times to get this right!Chris Lattner2002-05-021-1/+1
| | | | | | | Now use #if 0 instead of #ifdef 0 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2448 91177308-0d34-0410-b5e6-96231b3b80d8
* Oops, disable debugging code all the way. :)Chris Lattner2002-05-021-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2447 91177308-0d34-0410-b5e6-96231b3b80d8
* * Finish the implementation of isEdgeFeasible this fixes bug:Chris Lattner2002-05-021-57/+77
| | | | | | | | | | test/Regression/Transforms/SCCP/2002-05-02-EdgeFailure.ll * SCCP now preserves the CFG: It leaves conditional branches the way they are in the program, not simplifying them. A seperate pass should eliminate the potentially dead basic blocks and edges in the CFG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2446 91177308-0d34-0410-b5e6-96231b3b80d8