oota-llvm.git
21 years agoNew testcase for pow builtin recognition
Chris Lattner [Wed, 5 Mar 2003 22:56:59 +0000 (22:56 +0000)]
New testcase for pow builtin recognition

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5706 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd another testcase that may eventually be handled...
Chris Lattner [Wed, 5 Mar 2003 22:50:55 +0000 (22:50 +0000)]
Add another testcase that may eventually be handled...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5705 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoImplement %test7 in InstCombine/getelementptr.ll
Chris Lattner [Wed, 5 Mar 2003 22:33:14 +0000 (22:33 +0000)]
Implement %test7 in InstCombine/getelementptr.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5704 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd testcase for new instcombine xform
Chris Lattner [Wed, 5 Mar 2003 22:32:48 +0000 (22:32 +0000)]
Add testcase for new instcombine xform

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5703 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoImplement CFGSimplify/PhiBlockMerge*.ll
Chris Lattner [Wed, 5 Mar 2003 21:36:33 +0000 (21:36 +0000)]
Implement CFGSimplify/PhiBlockMerge*.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5702 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd new testcase
Chris Lattner [Wed, 5 Mar 2003 21:34:35 +0000 (21:34 +0000)]
Add new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5701 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoSimplify some of the PHI node interfaces
Chris Lattner [Wed, 5 Mar 2003 21:15:12 +0000 (21:15 +0000)]
Simplify some of the PHI node interfaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5700 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoImplement testcase CFGSimplify/EqualPHIEdgeBlockMerge.ll
Chris Lattner [Wed, 5 Mar 2003 21:01:52 +0000 (21:01 +0000)]
Implement testcase CFGSimplify/EqualPHIEdgeBlockMerge.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5699 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase for feature simplifycfg should handle
Chris Lattner [Wed, 5 Mar 2003 20:35:24 +0000 (20:35 +0000)]
New testcase for feature simplifycfg should handle

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5698 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd testcase for new feature for simplifycfg pass
Chris Lattner [Wed, 5 Mar 2003 20:22:50 +0000 (20:22 +0000)]
Add testcase for new feature for simplifycfg pass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5697 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoInitial checkin of AliasAnalysis doc
Chris Lattner [Tue, 4 Mar 2003 19:37:49 +0000 (19:37 +0000)]
Initial checkin of AliasAnalysis doc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5696 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: BasicAA/2003-03-04-GEPCrash.ll
Chris Lattner [Tue, 4 Mar 2003 16:40:17 +0000 (16:40 +0000)]
Fix bug: BasicAA/2003-03-04-GEPCrash.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5695 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase
Chris Lattner [Tue, 4 Mar 2003 16:33:52 +0000 (16:33 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5694 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoConvert LICM over to use AliasSetTracker. Besides being nicer, this automatically
Chris Lattner [Mon, 3 Mar 2003 23:32:45 +0000 (23:32 +0000)]
Convert LICM over to use AliasSetTracker.  Besides being nicer, this automatically
allows LICM to use access sizes to help alias analysis be more precise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5693 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: Assembler/2003-03-03-DuplicateConstant.ll
Chris Lattner [Mon, 3 Mar 2003 23:28:55 +0000 (23:28 +0000)]
Fix bug: Assembler/2003-03-03-DuplicateConstant.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5692 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoADd two new 'add' methods
Chris Lattner [Mon, 3 Mar 2003 23:28:05 +0000 (23:28 +0000)]
ADd two new 'add' methods

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5691 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd a few new 'add' methods. Move the iterator around
Chris Lattner [Mon, 3 Mar 2003 23:27:52 +0000 (23:27 +0000)]
Add a few new 'add' methods.  Move the iterator around

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5690 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake the testcase more interesting, test that two different array elements don't...
Chris Lattner [Mon, 3 Mar 2003 23:27:15 +0000 (23:27 +0000)]
Make the testcase more interesting, test that two different array elements don't alias

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5689 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase
Chris Lattner [Mon, 3 Mar 2003 21:29:00 +0000 (21:29 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5688 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd new testcase for forward reference of struct type
Chris Lattner [Mon, 3 Mar 2003 20:28:42 +0000 (20:28 +0000)]
Add new testcase for forward reference of struct type

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5687 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoEliminate tons of bogus warnings
Chris Lattner [Mon, 3 Mar 2003 19:57:46 +0000 (19:57 +0000)]
Eliminate tons of bogus warnings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5686 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoChange the mem2reg interface to accept a TargetData argument
Chris Lattner [Mon, 3 Mar 2003 17:25:18 +0000 (17:25 +0000)]
Change the mem2reg interface to accept a TargetData argument

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5685 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoDon't apply type information to load instructions if it will cause collapsing
Chris Lattner [Mon, 3 Mar 2003 17:13:31 +0000 (17:13 +0000)]
Don't apply type information to load instructions if it will cause collapsing

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5684 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoDon't apply type information to loads
Chris Lattner [Mon, 3 Mar 2003 17:13:22 +0000 (17:13 +0000)]
Don't apply type information to loads

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5683 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix a problem with negative indexes
Chris Lattner [Sun, 2 Mar 2003 23:43:34 +0000 (23:43 +0000)]
Fix a problem with negative indexes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5681 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago* Don't run tests if compilation failed
Chris Lattner [Fri, 28 Feb 2003 20:30:20 +0000 (20:30 +0000)]
* Don't run tests if compilation failed
* Don't summarize tests if testing failed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5680 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix broken links
Chris Lattner [Fri, 28 Feb 2003 20:05:20 +0000 (20:05 +0000)]
Fix broken links

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5678 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAllow tests to run for 5 minutes before timing out.
Chris Lattner [Fri, 28 Feb 2003 19:40:05 +0000 (19:40 +0000)]
Allow tests to run for 5 minutes before timing out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5677 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: LICM/2003-02-28-PromoteDifferentType.ll
Chris Lattner [Fri, 28 Feb 2003 19:21:40 +0000 (19:21 +0000)]
Fix bug: LICM/2003-02-28-PromoteDifferentType.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5675 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix testcase
Chris Lattner [Fri, 28 Feb 2003 19:21:27 +0000 (19:21 +0000)]
Fix testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5674 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd a test for a feature that I hope will be implemented someday
Chris Lattner [Fri, 28 Feb 2003 19:20:56 +0000 (19:20 +0000)]
Add a test for a feature that I hope will be implemented someday

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5673 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase
Chris Lattner [Fri, 28 Feb 2003 19:13:58 +0000 (19:13 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5672 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd dump method for Loops
Chris Lattner [Fri, 28 Feb 2003 16:54:45 +0000 (16:54 +0000)]
Add dump method for Loops

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5671 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd dump method for loops
Chris Lattner [Fri, 28 Feb 2003 16:54:37 +0000 (16:54 +0000)]
Add dump method for loops

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5670 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug I introduced yesterday :(
Chris Lattner [Fri, 28 Feb 2003 16:54:17 +0000 (16:54 +0000)]
Fix bug I introduced yesterday :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5669 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago* Reduce the number of useless bytecode files produced by bugpoint.
Chris Lattner [Fri, 28 Feb 2003 16:13:20 +0000 (16:13 +0000)]
* Reduce the number of useless bytecode files produced by bugpoint.
  - This also speeds it up as the bytecode writer isn't terribly fast.
* Add a new cleanup pass after everything else to run -funcresolve -globaldce

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5668 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: LICM/2003-02-27-PreheaderExitNodeUpdate.ll
Chris Lattner [Fri, 28 Feb 2003 03:07:54 +0000 (03:07 +0000)]
Fix bug: LICM/2003-02-27-PreheaderExitNodeUpdate.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5667 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd graph traits specializations for loop nesting information...
Chris Lattner [Fri, 28 Feb 2003 03:05:15 +0000 (03:05 +0000)]
Add graph traits specializations for loop nesting information...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5666 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew test
Chris Lattner [Fri, 28 Feb 2003 02:55:26 +0000 (02:55 +0000)]
New test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5665 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: 2003-02-27-PreheaderExitNodeUpdate.ll by updating exit node info
Chris Lattner [Thu, 27 Feb 2003 22:48:57 +0000 (22:48 +0000)]
Fix bug: 2003-02-27-PreheaderExitNodeUpdate.ll by updating exit node info

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5664 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd new Loop::hasExitBlock helper method
Chris Lattner [Thu, 27 Feb 2003 22:48:28 +0000 (22:48 +0000)]
Add new Loop::hasExitBlock helper method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5663 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoSimplify a bit by using a new member function
Chris Lattner [Thu, 27 Feb 2003 22:48:08 +0000 (22:48 +0000)]
Simplify a bit by using a new member function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5662 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoChange behavior of changeExitBlock function to replace all instances of exit block
Chris Lattner [Thu, 27 Feb 2003 22:37:44 +0000 (22:37 +0000)]
Change behavior of changeExitBlock function to replace all instances of exit block

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5661 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase
Chris Lattner [Thu, 27 Feb 2003 22:34:31 +0000 (22:34 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5660 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd a new assertion to check that stuff is happening right
Chris Lattner [Thu, 27 Feb 2003 22:31:07 +0000 (22:31 +0000)]
Add a new assertion to check that stuff is happening right
Ironically the exit block modification code wasn't updating the exit block
information itself.  Fix this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5659 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: 2003-02-27-StoreSinkPHIs.ll
Chris Lattner [Thu, 27 Feb 2003 21:59:36 +0000 (21:59 +0000)]
Fix bug: 2003-02-27-StoreSinkPHIs.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5658 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase
Chris Lattner [Thu, 27 Feb 2003 21:59:31 +0000 (21:59 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5657 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: LICM/2003-02-27-PreheaderProblem.ll
Chris Lattner [Thu, 27 Feb 2003 21:51:38 +0000 (21:51 +0000)]
Fix bug: LICM/2003-02-27-PreheaderProblem.ll
There may be a single outside predecessor and
still need a new loop-preheader if the predecessor has multiple
successors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5656 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago * Don't forget to update Loop information!
Chris Lattner [Thu, 27 Feb 2003 21:50:19 +0000 (21:50 +0000)]
  * Don't forget to update Loop information!
  * Remove bogus assertion: there may be a single outside predecessor and
    still need a new loop-preheader if the predecessor has multiple
    successors.  See bug: LICM/2003-02-27-PreheaderProblem.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5655 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoTestcase for Preheaders problem
Chris Lattner [Thu, 27 Feb 2003 21:38:56 +0000 (21:38 +0000)]
Testcase for Preheaders problem

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5654 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoReplace assertion with a handler.
Chris Lattner [Thu, 27 Feb 2003 20:55:48 +0000 (20:55 +0000)]
Replace assertion with a handler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5653 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago * Significant changes to the preheader insertion pass:
Chris Lattner [Thu, 27 Feb 2003 20:27:08 +0000 (20:27 +0000)]
 * Significant changes to the preheader insertion pass:
   - Now we perform loop exit-block splitting to ensure exit blocks are
     always dominated by the loop header.
   - We now preserve dominance frontier information
   - This fixes bug: LICM/2003-02-26-LoopExitNotDominated.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5652 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake the interface to update a little more efficient
Chris Lattner [Thu, 27 Feb 2003 20:24:17 +0000 (20:24 +0000)]
Make the interface to update a little more efficient

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5651 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago - LoopInfo now calculates and tracks loop exit blocks
Chris Lattner [Thu, 27 Feb 2003 00:38:34 +0000 (00:38 +0000)]
  - LoopInfo now calculates and tracks loop exit blocks

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5650 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago * LoopInfo now keeps track of exit blocks from the loop
Chris Lattner [Thu, 27 Feb 2003 00:37:22 +0000 (00:37 +0000)]
  * LoopInfo now keeps track of exit blocks from the loop
  * New LoopInfo::isLoopHeader method
  * Remove some #if 0 code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5649 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase crashing LICM
Chris Lattner [Wed, 26 Feb 2003 23:16:44 +0000 (23:16 +0000)]
New testcase crashing LICM

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5648 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake the aliassettracker much more precise by actually tracking size
Chris Lattner [Wed, 26 Feb 2003 22:11:00 +0000 (22:11 +0000)]
Make the aliassettracker much more precise by actually tracking size
information for various accesses.  What a concept.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5647 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix test
Chris Lattner [Wed, 26 Feb 2003 22:01:58 +0000 (22:01 +0000)]
Fix test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5646 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix bug: BasicAA/2003-02-26-AccessSizeTest.ll
Chris Lattner [Wed, 26 Feb 2003 21:57:23 +0000 (21:57 +0000)]
Fix bug: BasicAA/2003-02-26-AccessSizeTest.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5645 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase for size tracking brokenness
Chris Lattner [Wed, 26 Feb 2003 21:39:52 +0000 (21:39 +0000)]
New testcase for size tracking brokenness

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5644 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix several bugs in basic-aa
Chris Lattner [Wed, 26 Feb 2003 21:28:49 +0000 (21:28 +0000)]
Fix several bugs in basic-aa

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5643 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRename -no-* to -disable-*
Chris Lattner [Wed, 26 Feb 2003 20:00:41 +0000 (20:00 +0000)]
Rename -no-* to -disable-*

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5642 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd new -no-aa implementation
Chris Lattner [Wed, 26 Feb 2003 19:57:10 +0000 (19:57 +0000)]
Add new -no-aa implementation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5641 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMove BasicAA pass out to it's own header file
Chris Lattner [Wed, 26 Feb 2003 19:41:54 +0000 (19:41 +0000)]
Move BasicAA pass out to it's own header file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5640 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoBasicAA doesn't need a public header
Chris Lattner [Wed, 26 Feb 2003 19:41:46 +0000 (19:41 +0000)]
BasicAA doesn't need a public header

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5639 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdjust to implement new AA interface
Chris Lattner [Wed, 26 Feb 2003 19:29:36 +0000 (19:29 +0000)]
Adjust to implement new AA interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5638 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdjust to new AA interface
Chris Lattner [Wed, 26 Feb 2003 19:29:16 +0000 (19:29 +0000)]
Adjust to new AA interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5637 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoConvert to work with new AliasAnalysis interface by conservatively assuming all point...
Chris Lattner [Wed, 26 Feb 2003 19:28:57 +0000 (19:28 +0000)]
Convert to work with new AliasAnalysis interface by conservatively assuming all pointers are arbitrarily large accesses

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5636 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoCalculate and pass load sizes to the alias analysis infrastructure
Chris Lattner [Wed, 26 Feb 2003 19:27:35 +0000 (19:27 +0000)]
Calculate and pass load sizes to the alias analysis infrastructure

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5635 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdjust to new AA interface
Chris Lattner [Wed, 26 Feb 2003 19:27:05 +0000 (19:27 +0000)]
Adjust to new AA interface
Add tracking for Mod/Ref info

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5634 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago - Checkin of the alias analysis work:
Chris Lattner [Wed, 26 Feb 2003 19:26:51 +0000 (19:26 +0000)]
  - Checkin of the alias analysis work:
    * Takes into account the size of the memory reference to determine aliasing.
    * Expose mod/ref information in a more consistent way
    * BasicAA can now disambiguate A[i][1] and A[j][2] for conservative request
      sizes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5633 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoTweak to work with new AA implementation
Chris Lattner [Wed, 26 Feb 2003 19:25:04 +0000 (19:25 +0000)]
Tweak to work with new AA implementation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5632 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoCheckin of new alias analysis interface:
Chris Lattner [Wed, 26 Feb 2003 19:24:47 +0000 (19:24 +0000)]
Checkin of new alias analysis interface:
  * Takes into account the size of the memory reference to determine aliasing.
  * Expose mod/ref information in a more consistent way

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5631 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAllow ImmutablePass's to require other immutable passes and to be initialized
Chris Lattner [Wed, 26 Feb 2003 19:10:57 +0000 (19:10 +0000)]
Allow ImmutablePass's to require other immutable passes and to be initialized

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5630 91177308-0d34-0410-b5e6-96231b3b80d8

21 years ago* Un "protect" the getAnalysis<> functions
Chris Lattner [Wed, 26 Feb 2003 19:10:28 +0000 (19:10 +0000)]
* Un "protect" the getAnalysis<> functions
* Add a new initializePass() method to ImmutablePass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5629 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRemove implemented projects
Chris Lattner [Wed, 26 Feb 2003 16:38:22 +0000 (16:38 +0000)]
Remove implemented projects

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5628 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoUpdate programmers manual for renamed method
Chris Lattner [Wed, 26 Feb 2003 16:38:15 +0000 (16:38 +0000)]
Update programmers manual for renamed method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5627 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoHopefully final tweak to this testcase
Chris Lattner [Wed, 26 Feb 2003 16:18:00 +0000 (16:18 +0000)]
Hopefully final tweak to this testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5626 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd a new test for basicaa
Chris Lattner [Tue, 25 Feb 2003 21:43:37 +0000 (21:43 +0000)]
Add a new test for basicaa

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5625 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix typeo
Chris Lattner [Tue, 25 Feb 2003 21:14:59 +0000 (21:14 +0000)]
Fix typeo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5624 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRemove wierd case that can never happen
Chris Lattner [Tue, 25 Feb 2003 20:27:09 +0000 (20:27 +0000)]
Remove wierd case that can never happen

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5623 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd new helper template function
Chris Lattner [Tue, 25 Feb 2003 00:00:50 +0000 (00:00 +0000)]
Add new helper template function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5622 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix testcase
Chris Lattner [Mon, 24 Feb 2003 23:14:07 +0000 (23:14 +0000)]
Fix testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5621 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoRename Instruction::hasSideEffects() -> mayWriteToMemory()
Chris Lattner [Mon, 24 Feb 2003 20:48:32 +0000 (20:48 +0000)]
Rename Instruction::hasSideEffects() -> mayWriteToMemory()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5620 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoThis is a substantial rewrite of the AliasSetTracker class which now uses
Chris Lattner [Mon, 24 Feb 2003 20:37:56 +0000 (20:37 +0000)]
This is a substantial rewrite of the AliasSetTracker class which now uses
a union-find based algorithm, is significantly faster, and is more general.
It will also scale to handle call instructions correctly, which is a nice
added bonus.

This includes a new pass -print-alias-sets which can be used to show how
alias sets are formed for a particular analysis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5619 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoInitial checkin of CallSite wrapper for Call/Invoke instructions
Chris Lattner [Mon, 24 Feb 2003 20:35:45 +0000 (20:35 +0000)]
Initial checkin of CallSite wrapper for Call/Invoke instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5618 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix test
Chris Lattner [Mon, 24 Feb 2003 20:30:14 +0000 (20:30 +0000)]
Fix test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5617 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoMake printing messages nicer
Chris Lattner [Mon, 24 Feb 2003 20:07:54 +0000 (20:07 +0000)]
Make printing messages nicer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5616 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix #endif
Chris Lattner [Mon, 24 Feb 2003 04:40:35 +0000 (04:40 +0000)]
Fix #endif

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5615 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd support for the slist extension
Chris Lattner [Mon, 24 Feb 2003 04:31:49 +0000 (04:31 +0000)]
Add support for the slist extension

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5614 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoInitial implementation of Loop invariant memory->scalar promotion
Chris Lattner [Mon, 24 Feb 2003 03:52:32 +0000 (03:52 +0000)]
Initial implementation of Loop invariant memory->scalar promotion

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5613 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoTweak testcase
Chris Lattner [Mon, 24 Feb 2003 03:52:13 +0000 (03:52 +0000)]
Tweak testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5612 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase for scalar promotion
Chris Lattner [Mon, 24 Feb 2003 03:52:04 +0000 (03:52 +0000)]
New testcase for scalar promotion

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5611 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoSplit mem2reg promotion into two parts: a function which does the work, and
Chris Lattner [Sat, 22 Feb 2003 23:57:48 +0000 (23:57 +0000)]
Split mem2reg promotion into two parts: a function which does the work, and
a pass which wraps the function.  This allows other passes to use the functionality

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5610 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoAdd a new interface file for the PromoteMemToReg interface in the Utils library
Chris Lattner [Sat, 22 Feb 2003 23:04:52 +0000 (23:04 +0000)]
Add a new interface file for the PromoteMemToReg interface in the Utils library

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5609 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoClean up std namespace references
Chris Lattner [Sat, 22 Feb 2003 22:25:17 +0000 (22:25 +0000)]
Clean up std namespace references

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5608 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoNew testcase to check to see if LICM is performing scalar promotion
Chris Lattner [Sat, 22 Feb 2003 22:20:19 +0000 (22:20 +0000)]
New testcase to check to see if LICM is performing scalar promotion

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5607 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoDramatically simplify building of natural loops and fix a bug where the BBMap
Chris Lattner [Sat, 22 Feb 2003 21:33:11 +0000 (21:33 +0000)]
Dramatically simplify building of natural loops and fix a bug where the BBMap
was not correctly computed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5606 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix the requisite bug that I introduced
Chris Lattner [Thu, 20 Feb 2003 00:28:00 +0000 (00:28 +0000)]
Fix the requisite bug that I introduced

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5605 91177308-0d34-0410-b5e6-96231b3b80d8

21 years agoFix 80 character formatting
Chris Lattner [Thu, 20 Feb 2003 00:18:07 +0000 (00:18 +0000)]
Fix 80 character formatting

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5604 91177308-0d34-0410-b5e6-96231b3b80d8