oota-llvm.git
22 years agoImplement constant propogation of shifts
Chris Lattner [Mon, 6 May 2002 03:00:54 +0000 (03:00 +0000)]
Implement constant propogation of shifts

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

22 years agoPrint functions with curly braces instead of begin/end
Chris Lattner [Mon, 6 May 2002 03:00:40 +0000 (03:00 +0000)]
Print functions with curly braces instead of begin/end

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

22 years agoAdd a range remove method
Chris Lattner [Mon, 6 May 2002 02:59:52 +0000 (02:59 +0000)]
Add a range remove method

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

22 years agoImplement two iterator remove method
Chris Lattner [Mon, 6 May 2002 02:59:34 +0000 (02:59 +0000)]
Implement two iterator remove method

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

22 years agoInitial testcases for CFG simplify (which is part of DCE for now)
Chris Lattner [Mon, 6 May 2002 02:37:38 +0000 (02:37 +0000)]
Initial testcases for CFG simplify (which is part of DCE for now)

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

22 years agoTest moved to SCCP test directory
Chris Lattner [Mon, 6 May 2002 00:52:06 +0000 (00:52 +0000)]
Test moved to SCCP test directory

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

22 years agoImplement remainder
Chris Lattner [Fri, 3 May 2002 21:41:07 +0000 (21:41 +0000)]
Implement remainder
Fix implementation of Not

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

22 years agoImplement remainder
Chris Lattner [Fri, 3 May 2002 21:40:37 +0000 (21:40 +0000)]
Implement remainder

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

22 years agoNew testcase for bugs in the constant propogator
Chris Lattner [Fri, 3 May 2002 20:25:40 +0000 (20:25 +0000)]
New testcase for bugs in the constant propogator

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

22 years agoAdd tests for floating point remainder elimination
Chris Lattner [Fri, 3 May 2002 20:16:29 +0000 (20:16 +0000)]
Add tests for floating point remainder elimination

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

22 years agoNew testcase to see if constant propogation of remainder is implemented
Chris Lattner [Fri, 3 May 2002 20:14:21 +0000 (20:14 +0000)]
New testcase to see if constant propogation of remainder is implemented

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

22 years agoThis testcase is a sanity check
Chris Lattner [Fri, 3 May 2002 20:12:31 +0000 (20:12 +0000)]
This testcase is a sanity check

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

22 years agoFix bug: test/Regression/Transforms/SCCP/2002-05-03-NotOperator.ll
Chris Lattner [Fri, 3 May 2002 20:09:52 +0000 (20:09 +0000)]
Fix bug: test/Regression/Transforms/SCCP/2002-05-03-NotOperator.ll
by using the ~ operator instead of !

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

22 years agoAdd new testcase for general constant prop.
Chris Lattner [Fri, 3 May 2002 19:58:17 +0000 (19:58 +0000)]
Add new testcase for general constant prop.

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

22 years agoAdd const prop pass to eliminate dead branches
Chris Lattner [Fri, 3 May 2002 19:57:16 +0000 (19:57 +0000)]
Add const prop pass to eliminate dead branches

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

22 years agoImplement the NOT operator.
Chris Lattner [Fri, 3 May 2002 19:52:30 +0000 (19:52 +0000)]
Implement the NOT operator.

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

22 years agoWe currently don't allow unresolved opaque types!
Chris Lattner [Fri, 3 May 2002 18:32:40 +0000 (18:32 +0000)]
We currently don't allow unresolved opaque types!

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

22 years agoAdd -d switch to test AsmWriter as well
Chris Lattner [Fri, 3 May 2002 18:31:30 +0000 (18:31 +0000)]
Add -d switch to test AsmWriter as well

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

22 years agoAllow open/closing curly braces instead of begin/end to define the body of a function
Chris Lattner [Fri, 3 May 2002 18:23:48 +0000 (18:23 +0000)]
Allow open/closing curly braces instead of begin/end to define the body of a function

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

22 years agoEliminate usage of function level constant pool
Chris Lattner [Thu, 2 May 2002 21:52:35 +0000 (21:52 +0000)]
Eliminate usage of function level constant pool

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

22 years agoUse unified diffs with gnu diff instead of old diffs
Chris Lattner [Thu, 2 May 2002 21:51:55 +0000 (21:51 +0000)]
Use unified diffs with gnu diff instead of old diffs

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

22 years agoOk, really it only takes me 3 times to get this right!
Chris Lattner [Thu, 2 May 2002 21:49:50 +0000 (21:49 +0000)]
Ok, really it only takes me 3 times to get this right!
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

22 years agoOops, disable debugging code all the way. :)
Chris Lattner [Thu, 2 May 2002 21:47:40 +0000 (21:47 +0000)]
Oops, disable debugging code all the way.  :)

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

22 years ago* Finish the implementation of isEdgeFeasible this fixes bug:
Chris Lattner [Thu, 2 May 2002 21:44:00 +0000 (21:44 +0000)]
* Finish the implementation of isEdgeFeasible this fixes bug:
    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

22 years ago* Enable SCCP debugging to be turned on with a simple change of #define
Chris Lattner [Thu, 2 May 2002 21:18:01 +0000 (21:18 +0000)]
* Enable SCCP debugging to be turned on with a simple change of #define
* Change worklist to a set so that duplicates cannot happen
* Add support for the invoke instruction
* Avoid marking store and free instructions as overdefined, since they
  cannot produce a value anyway.
* Inline the OperandChangedState implementation
* Add isEdgeFeasible in preparation to fix a bug.  Right now it behaves
  exactly as before.
* Remove obsolete comment about constant pools

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

22 years agoMore testcases for SCCP
Chris Lattner [Thu, 2 May 2002 20:41:39 +0000 (20:41 +0000)]
More testcases for SCCP

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

22 years ago* Simplify the code by not bothering to name the folded constant
Chris Lattner [Thu, 2 May 2002 20:32:51 +0000 (20:32 +0000)]
* Simplify the code by not bothering to name the folded constant
* Do not skip the instruction immediately after a folded instruction.  This
  was causing the testcase failure:
test/Regression/Transforms/SCCP/2002-05-02-MissSecondInst.ll

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

22 years agoAdditional testcase
Chris Lattner [Thu, 2 May 2002 20:19:11 +0000 (20:19 +0000)]
Additional testcase

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

22 years agoRun the SCCP test
Chris Lattner [Thu, 2 May 2002 20:18:53 +0000 (20:18 +0000)]
Run the SCCP test

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

22 years agoFirst testcase for SCCP pass
Chris Lattner [Thu, 2 May 2002 20:18:37 +0000 (20:18 +0000)]
First testcase for SCCP pass

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

22 years agoSimplify the testcase a bit
Chris Lattner [Thu, 2 May 2002 19:58:05 +0000 (19:58 +0000)]
Simplify the testcase a bit

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

22 years agoNew testcase
Chris Lattner [Thu, 2 May 2002 19:54:58 +0000 (19:54 +0000)]
New testcase

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

22 years agoImplement cast operations on booleans to allow casting bools to ints, f.e.
Chris Lattner [Thu, 2 May 2002 19:28:45 +0000 (19:28 +0000)]
Implement cast operations on booleans to allow casting bools to ints, f.e.

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

22 years ago* Fix a bug (test/Regression/Assembler/2002-05-02-InvalidForwardRef.ll)
Chris Lattner [Thu, 2 May 2002 19:27:42 +0000 (19:27 +0000)]
* Fix a bug (test/Regression/Assembler/2002-05-02-InvalidForwardRef.ll)
  introduced in the 1.66 revision of this file.
* Convert a hard coded constant to a symbolic value.

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

22 years agoNew testcase for assembler failure
Chris Lattner [Thu, 2 May 2002 19:12:21 +0000 (19:12 +0000)]
New testcase for assembler failure

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

22 years agoThe implementation keyword is no longer neccesary
Chris Lattner [Thu, 2 May 2002 19:11:29 +0000 (19:11 +0000)]
The implementation keyword is no longer neccesary

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

22 years agoThe "implementation" is now allowed but not required by the parser. All type
Chris Lattner [Thu, 2 May 2002 19:11:13 +0000 (19:11 +0000)]
The "implementation" is now allowed but not required by the parser.  All type
definitions must still occur before function bodies, but the wierd keyword is
no longer neccesary.

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

22 years agoExprTypeConvert will already do this transformation, no need to specialize
Chris Lattner [Thu, 2 May 2002 17:38:55 +0000 (17:38 +0000)]
ExprTypeConvert will already do this transformation, no need to specialize
it here.

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

22 years agoBe a little more efficient, do not generate loads and stores with indices in them.
Chris Lattner [Thu, 2 May 2002 17:38:14 +0000 (17:38 +0000)]
Be a little more efficient, do not generate loads and stores with indices in them.

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

22 years agoFix bug: test/Regression/Transforms/LevelRaise/2002-05-02-BadCastElimination.ll
Chris Lattner [Thu, 2 May 2002 17:37:34 +0000 (17:37 +0000)]
Fix bug: test/Regression/Transforms/LevelRaise/2002-05-02-BadCastElimination.ll

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

22 years ago* Add ability to eliminate a bunch of different cascading cast variations
Chris Lattner [Thu, 2 May 2002 17:06:02 +0000 (17:06 +0000)]
* Add ability to eliminate a bunch of different cascading cast variations
* Allow elimination of getelementptr X, uint 0 (which is a noop)

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

22 years agoIntitial checkin of cast tests
Chris Lattner [Thu, 2 May 2002 17:01:39 +0000 (17:01 +0000)]
Intitial checkin of cast tests

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

22 years agoNew testcase for bug found by Vikram
Chris Lattner [Thu, 2 May 2002 16:16:39 +0000 (16:16 +0000)]
New testcase for bug found by Vikram

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

22 years agoCheck another case
Chris Lattner [Thu, 2 May 2002 15:24:40 +0000 (15:24 +0000)]
Check another case

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

22 years agoFixed bug: test/Regression/Transforms/Mem2Reg/2002-05-01-ShouldNotPromoteThisAlloca.ll
Chris Lattner [Wed, 1 May 2002 15:38:23 +0000 (15:38 +0000)]
Fixed bug: test/Regression/Transforms/Mem2Reg/2002-05-01-ShouldNotPromoteThisAlloca.ll

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

22 years agoNew bug testcase
Chris Lattner [Wed, 1 May 2002 15:33:12 +0000 (15:33 +0000)]
New bug testcase

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

22 years agoRemove unneccesary pass.
Chris Lattner [Tue, 30 Apr 2002 20:53:05 +0000 (20:53 +0000)]
Remove unneccesary pass.

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

22 years agoRemove unneccesary pass
Chris Lattner [Tue, 30 Apr 2002 20:52:49 +0000 (20:52 +0000)]
Remove unneccesary pass

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

22 years agoNew testcase
Chris Lattner [Tue, 30 Apr 2002 19:50:47 +0000 (19:50 +0000)]
New testcase

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

22 years agoFix problem where subpasses would invalidate all analyses outstanding
Chris Lattner [Tue, 30 Apr 2002 18:50:17 +0000 (18:50 +0000)]
Fix problem where subpasses would invalidate all analyses outstanding

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

22 years agoAdd folding rules for mul X, 0 and mul X, 2
Chris Lattner [Mon, 29 Apr 2002 22:24:47 +0000 (22:24 +0000)]
Add folding rules for mul X, 0 and mul X, 2

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

22 years agoNew test cases for mul folding
Chris Lattner [Mon, 29 Apr 2002 22:24:24 +0000 (22:24 +0000)]
New test cases for mul folding

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

22 years agoSignificantly clean up SCCP pass. Now the two classes are merged and in
Chris Lattner [Mon, 29 Apr 2002 21:26:08 +0000 (21:26 +0000)]
Significantly clean up SCCP pass.  Now the two classes are merged and in
an anonymous namespace where they belong.

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

22 years agoRange insertion now returns an iterator
Chris Lattner [Mon, 29 Apr 2002 21:25:34 +0000 (21:25 +0000)]
Range insertion now returns an iterator

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

22 years agoMake the range insert operation return an iterator, even though the STL
Chris Lattner [Mon, 29 Apr 2002 21:23:30 +0000 (21:23 +0000)]
Make the range insert operation return an iterator, even though the STL
range insert doesn't

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

22 years agoThese aren't tools
Chris Lattner [Mon, 29 Apr 2002 20:29:30 +0000 (20:29 +0000)]
These aren't tools

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

22 years agoRemove unused files: This is the old induction varaible cannonicalization
Chris Lattner [Mon, 29 Apr 2002 20:18:00 +0000 (20:18 +0000)]
Remove unused files:  This is the old induction varaible cannonicalization
pass built on top of interval analysis

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

22 years agoMove constant merging pass earlier
Chris Lattner [Mon, 29 Apr 2002 20:11:38 +0000 (20:11 +0000)]
Move constant merging pass earlier
Include the SCCP pass in gccas

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

22 years agoFix for problem when allocating something like this:
Chris Lattner [Mon, 29 Apr 2002 20:09:21 +0000 (20:09 +0000)]
Fix for problem when allocating something like this:
   malloc(100-i);

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

22 years agoMerge Chris's script with the one already checked in
Chris Lattner [Mon, 29 Apr 2002 19:11:01 +0000 (19:11 +0000)]
Merge Chris's script with the one already checked in

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

22 years agoFix #include broken by iMemory.h not including DerivedTypes.h
Chris Lattner [Mon, 29 Apr 2002 18:56:45 +0000 (18:56 +0000)]
Fix #include broken by iMemory.h not including DerivedTypes.h

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

22 years agoAdd neccesary #include
Chris Lattner [Mon, 29 Apr 2002 18:48:55 +0000 (18:48 +0000)]
Add neccesary #include

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

22 years agochanges because iMemory.h no longer #includes DerivedTypes.h
Chris Lattner [Mon, 29 Apr 2002 18:48:30 +0000 (18:48 +0000)]
changes because iMemory.h no longer #includes DerivedTypes.h
This only requires Type.h anyway

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

22 years agoChanges so that iMemory.h doesn't include DerivedTypes.h
Chris Lattner [Mon, 29 Apr 2002 18:46:50 +0000 (18:46 +0000)]
Changes so that iMemory.h doesn't include DerivedTypes.h

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

22 years agoChange to allow iMemory.h to avoid including DerivedTypes.h
Chris Lattner [Mon, 29 Apr 2002 18:46:22 +0000 (18:46 +0000)]
Change to allow iMemory.h to avoid including DerivedTypes.h

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

22 years agoFix bug: test/Regression/Other/2002-04-29-NameBinding.ll
Chris Lattner [Mon, 29 Apr 2002 18:25:33 +0000 (18:25 +0000)]
Fix bug: test/Regression/Other/2002-04-29-NameBinding.ll

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

22 years agoRemove InstForest from analysis namespace
Chris Lattner [Mon, 29 Apr 2002 18:13:31 +0000 (18:13 +0000)]
Remove InstForest from analysis namespace

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

22 years agoEliminate dead global variables
Chris Lattner [Mon, 29 Apr 2002 18:13:11 +0000 (18:13 +0000)]
Eliminate dead global variables

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

22 years agoRemove analysis namespace
Chris Lattner [Mon, 29 Apr 2002 18:12:52 +0000 (18:12 +0000)]
Remove analysis namespace

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

22 years agoNew test for broken asm parser
Chris Lattner [Mon, 29 Apr 2002 18:12:28 +0000 (18:12 +0000)]
New test for broken asm parser

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

22 years agoEliminate duplicate or unneccesary #include's
Chris Lattner [Mon, 29 Apr 2002 17:42:12 +0000 (17:42 +0000)]
Eliminate duplicate or unneccesary #include's

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

22 years agoRemove broken assertion.
Chris Lattner [Mon, 29 Apr 2002 16:20:25 +0000 (16:20 +0000)]
Remove broken assertion.

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

22 years agoAdd new optional getPassName() virtual function that a Pass can override
Chris Lattner [Mon, 29 Apr 2002 14:57:45 +0000 (14:57 +0000)]
Add new optional getPassName() virtual function that a Pass can override
to make debugging output a lot nicer.

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

22 years agoAdd a new command line option for PassManager using utilities.
Chris Lattner [Mon, 29 Apr 2002 04:04:29 +0000 (04:04 +0000)]
Add a new command line option for PassManager using utilities.
Now for llc, gccas, analyze, opt, etc you can specify the -time-passes
command line option that outputs a timing summary report that indicates
how long each pass takes to execute.

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

22 years agoStub functions for timing support
Chris Lattner [Mon, 29 Apr 2002 04:02:50 +0000 (04:02 +0000)]
Stub functions for timing support

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

22 years agoMore cleanups
Chris Lattner [Mon, 29 Apr 2002 01:58:47 +0000 (01:58 +0000)]
More cleanups

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

22 years agoCode cleanups
Chris Lattner [Mon, 29 Apr 2002 01:22:55 +0000 (01:22 +0000)]
Code cleanups

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

22 years agoRemove dead code
Chris Lattner [Sun, 28 Apr 2002 21:57:50 +0000 (21:57 +0000)]
Remove dead code

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

22 years agoFIXME removed: malloc/alloca ALWAYS have a size argument
Chris Lattner [Sun, 28 Apr 2002 21:57:33 +0000 (21:57 +0000)]
FIXME removed: malloc/alloca ALWAYS have a size argument

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

22 years agoRename functions to be more consistend with other pass constructors
Chris Lattner [Sun, 28 Apr 2002 21:45:36 +0000 (21:45 +0000)]
Rename functions to be more consistend with other pass constructors

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

22 years agoTodo has been implemented, remove it
Chris Lattner [Sun, 28 Apr 2002 21:45:02 +0000 (21:45 +0000)]
Todo has been implemented, remove it

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

22 years agoTighten up the AnalysisUsage of lots of passes, primarily to correctly indicate wheth...
Chris Lattner [Sun, 28 Apr 2002 21:27:06 +0000 (21:27 +0000)]
Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFGA

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

22 years agoTighten up the AnalysisUsage of lots of passes, primarily to correctly indicate wheth...
Chris Lattner [Sun, 28 Apr 2002 21:26:51 +0000 (21:26 +0000)]
Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFG

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

22 years agoMove FunctionPass::doesNotModifyCFG to AnalysisUsage::preservesCFG()
Chris Lattner [Sun, 28 Apr 2002 21:25:41 +0000 (21:25 +0000)]
Move FunctionPass::doesNotModifyCFG to AnalysisUsage::preservesCFG()

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

22 years ago* Add a stub to FunctionPass so that subclasses can declare that they do not
Chris Lattner [Sun, 28 Apr 2002 20:46:05 +0000 (20:46 +0000)]
* Add a stub to FunctionPass so that subclasses can declare that they do not
  modify the CFG.  It currently does nothing, but will in the future.
* Changes to make the public PassManager.h be MUCH smaller, and devoid of
  implementation details.  Now PassManager is just a Pimpl class that wraps
  PassManagerT<Module>, but lib/VMCore/Pass.cpp is now the only class that
  has to #include PassManagerT.h

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

22 years agoMove include/llvm/PassManager.h to lib/VMCore/PassManagerT.h
Chris Lattner [Sun, 28 Apr 2002 20:42:50 +0000 (20:42 +0000)]
Move include/llvm/PassManager.h to lib/VMCore/PassManagerT.h

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

22 years agoAdd #include that was removed from TargetMachine.h
Chris Lattner [Sun, 28 Apr 2002 20:40:59 +0000 (20:40 +0000)]
Add #include that was removed from TargetMachine.h

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

22 years agoUse forward decl instead of #include
Chris Lattner [Sun, 28 Apr 2002 20:40:25 +0000 (20:40 +0000)]
Use forward decl instead of #include

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

22 years agoInclude appropriate file
Chris Lattner [Sun, 28 Apr 2002 20:40:16 +0000 (20:40 +0000)]
Include appropriate file

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

22 years agoSplit ConstantVals.h into Constant.h and Constants.h
Chris Lattner [Sun, 28 Apr 2002 19:55:58 +0000 (19:55 +0000)]
Split ConstantVals.h into Constant.h and Constants.h

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

22 years agoFix two FIXME's
Chris Lattner [Sun, 28 Apr 2002 19:49:58 +0000 (19:49 +0000)]
Fix two FIXME's

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

22 years agoSimplify and update code a bit
Chris Lattner [Sun, 28 Apr 2002 19:20:10 +0000 (19:20 +0000)]
Simplify and update code a bit

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

22 years agoEliminate the PromoteInstance class, incorporating it into the PromotePass
Chris Lattner [Sun, 28 Apr 2002 19:12:38 +0000 (19:12 +0000)]
Eliminate the PromoteInstance class, incorporating it into the PromotePass
class.

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

22 years agoEliminate visited, CurrentValue, and WriteSets as instance variables of
Chris Lattner [Sun, 28 Apr 2002 18:54:01 +0000 (18:54 +0000)]
Eliminate visited, CurrentValue, and WriteSets as instance variables of
PromoteInstance.  Make them local variables that are passed around as
appropriate.  Especially in the case of CurrentValue, this makes the
code simpler.

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

22 years ago* Fix bug: test/Regression/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll
Chris Lattner [Sun, 28 Apr 2002 18:39:46 +0000 (18:39 +0000)]
* Fix bug: test/Regression/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll
* Minor cleanup that was missed in last patch

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

22 years agoThis huge changeset is a strictly cleanup change
Chris Lattner [Sun, 28 Apr 2002 18:27:55 +0000 (18:27 +0000)]
This huge changeset is a strictly cleanup change
Bugfixes will come in the next revision so that the diff is obvious.

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

22 years agoEliminate the cfg namespace
Chris Lattner [Sun, 28 Apr 2002 16:21:53 +0000 (16:21 +0000)]
Eliminate the cfg namespace

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

22 years agoEliminate the cfg namespace, moving LoopInfo, Dominators, Interval* classes
Chris Lattner [Sun, 28 Apr 2002 16:21:30 +0000 (16:21 +0000)]
Eliminate the cfg namespace, moving LoopInfo, Dominators, Interval* classes
to the global namespace

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

22 years agoRemove all contents of the cfg namespace to the global namespace
Chris Lattner [Sun, 28 Apr 2002 16:19:42 +0000 (16:19 +0000)]
Remove all contents of the cfg namespace to the global namespace

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

22 years agoRemove obsolete namespace from example
Chris Lattner [Sun, 28 Apr 2002 16:18:32 +0000 (16:18 +0000)]
Remove obsolete namespace from example

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