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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Chris Lattner [Sun, 28 Apr 2002 16:06:24 +0000 (16:06 +0000)]
Remove extra unused argument from CheckFailed method
Remove extraneous \n's from assert strings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2367
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Apr 2002 16:04:26 +0000 (16:04 +0000)]
The check to see if an external function was marked internal was not reachable!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2366
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Apr 2002 05:49:53 +0000 (05:49 +0000)]
Expose the internalize pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2365
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Apr 2002 05:49:45 +0000 (05:49 +0000)]
Run the internalize pass to mark all functions except main internal when
linking the final program to allow smarter optimizations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2364
91177308-0d34-0410-b5e6-
96231b3b80d8