oota-llvm.git
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

22 years agoRemove extra unused argument from CheckFailed method
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

22 years agoThe check to see if an external function was marked internal was not reachable!
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

22 years agoExpose the internalize pass.
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

22 years agoRun the internalize pass to mark all functions except main internal when
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

22 years agoBe careful not to make "external" function internal
Chris Lattner [Sun, 28 Apr 2002 05:48:34 +0000 (05:48 +0000)]
Be careful not to make "external" function internal

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

22 years agoInitial checkin of new "Internalize" pass for GCCLD
Chris Lattner [Sun, 28 Apr 2002 05:43:27 +0000 (05:43 +0000)]
Initial checkin of new "Internalize" pass for GCCLD

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

22 years agoMinor changes to allow Modules (which are no longer Values) to work
Chris Lattner [Sun, 28 Apr 2002 05:14:06 +0000 (05:14 +0000)]
Minor changes to allow Modules (which are no longer Values) to work

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

22 years agoUse operator << to print modules
Chris Lattner [Sun, 28 Apr 2002 05:13:45 +0000 (05:13 +0000)]
Use operator << to print modules

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

22 years agoSymTabValue class incorporated into Function and Module classes.
Chris Lattner [Sun, 28 Apr 2002 04:56:59 +0000 (04:56 +0000)]
SymTabValue class incorporated into Function and Module classes.

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

22 years agoInclude an operator<<, to print modules
Chris Lattner [Sun, 28 Apr 2002 04:56:28 +0000 (04:56 +0000)]
Include an operator<<, to print modules

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

22 years agoEliminate use of SymTabValue class
Chris Lattner [Sun, 28 Apr 2002 04:55:14 +0000 (04:55 +0000)]
Eliminate use of SymTabValue class

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

22 years agoThe contents of the SymTabValue class have been incorporated into the
Chris Lattner [Sun, 28 Apr 2002 04:52:28 +0000 (04:52 +0000)]
The contents of the SymTabValue class have been incorporated into the
Module and Function classes directly.

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

22 years ago* Incorporate the contents of SymTabValue into Function and Module
Chris Lattner [Sun, 28 Apr 2002 04:51:51 +0000 (04:51 +0000)]
* Incorporate the contents of SymTabValue into Function and Module
* Module no longer subclasses Value

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

22 years agoModule's are no longer values
Chris Lattner [Sun, 28 Apr 2002 04:51:09 +0000 (04:51 +0000)]
Module's are no longer values

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

22 years agoSimplify code
Chris Lattner [Sun, 28 Apr 2002 04:50:54 +0000 (04:50 +0000)]
Simplify code
Remove unneccesary getID variant for module's

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

22 years agoRemove unneccesary #include
Chris Lattner [Sun, 28 Apr 2002 04:50:19 +0000 (04:50 +0000)]
Remove unneccesary #include

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

22 years agoModule's are no longer Value subclasses
Chris Lattner [Sun, 28 Apr 2002 04:50:00 +0000 (04:50 +0000)]
Module's are no longer Value subclasses

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

22 years agoFix signed/unsigned comparison warning
Chris Lattner [Sun, 28 Apr 2002 04:49:43 +0000 (04:49 +0000)]
Fix signed/unsigned comparison warning

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

22 years agoRemove forward def'ns that are already in Value.h
Chris Lattner [Sun, 28 Apr 2002 04:47:33 +0000 (04:47 +0000)]
Remove forward def'ns that are already in Value.h
Do not support output of Modules directly

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

22 years agos/Method/Function
Chris Lattner [Sun, 28 Apr 2002 04:47:06 +0000 (04:47 +0000)]
s/Method/Function

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

22 years agoModule's are no longer Value's.
Chris Lattner [Sun, 28 Apr 2002 04:46:29 +0000 (04:46 +0000)]
Module's are no longer Value's.

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

22 years agoThe interesting contents of SymTabValue were incorporated into Function
Chris Lattner [Sun, 28 Apr 2002 04:46:07 +0000 (04:46 +0000)]
The interesting contents of SymTabValue were incorporated into Function

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

22 years ago* Module's are no longer Value's
Chris Lattner [Sun, 28 Apr 2002 04:45:48 +0000 (04:45 +0000)]
* Module's are no longer Value's
* Incorporate SymTabValue contents into the Module class

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

22 years agoAdd a forward defn for Module since it's no longer in Value.h
Chris Lattner [Sun, 28 Apr 2002 04:45:05 +0000 (04:45 +0000)]
Add a forward defn for Module since it's no longer in Value.h

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

22 years ago* Incorporate the functionality of SymTabValue into Function
Chris Lattner [Sun, 28 Apr 2002 04:44:40 +0000 (04:44 +0000)]
* Incorporate the functionality of SymTabValue into Function
* s/Method/Function

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