oota-llvm.git
21 years agoGrammar fix: `of course' is separated from the sentences by commas on both
Misha Brukman [Wed, 7 May 2003 21:47:16 +0000 (21:47 +0000)]
Grammar fix: `of course' is separated from the sentences by commas on both
sides.

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

21 years agoFix bug: Jello/2003-05-07-ArgumentTest.llx
Chris Lattner [Wed, 7 May 2003 20:31:37 +0000 (20:31 +0000)]
Fix bug: Jello/2003-05-07-ArgumentTest.llx
Also fixes yacr2/ks benchmarks

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

21 years agoNew testcase for problem that is actually generic to all 32 bit LLI targets
Chris Lattner [Wed, 7 May 2003 20:23:32 +0000 (20:23 +0000)]
New testcase for problem that is actually generic to all 32 bit LLI targets

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

21 years agoAdd a vector to keep track of which registers are allocatable. Remove FIXMEs
Chris Lattner [Wed, 7 May 2003 20:08:36 +0000 (20:08 +0000)]
Add a vector to keep track of which registers are allocatable. Remove FIXMEs

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

21 years agoAdd comments, add a vector to keep track of which registers are allocatable
Chris Lattner [Wed, 7 May 2003 20:07:58 +0000 (20:07 +0000)]
Add comments, add a vector to keep track of which registers are allocatable

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

21 years agoIMPLICIT_DEF was not the beautiful elegant solution I thought it was going
Chris Lattner [Wed, 7 May 2003 19:21:28 +0000 (19:21 +0000)]
IMPLICIT_DEF was not the beautiful elegant solution I thought it was going
to be.  In fact, it made stuff worse.  :(

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

21 years agoRe-add gross hack, it's still necessary. :(
Chris Lattner [Tue, 6 May 2003 21:44:54 +0000 (21:44 +0000)]
Re-add gross hack, it's still necessary.  :(

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

21 years agoRemove hideously nasty hack
Chris Lattner [Tue, 6 May 2003 21:32:39 +0000 (21:32 +0000)]
Remove hideously nasty hack

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

21 years agoEmit pseudo instructions to indicate that some registers are live on entrance
Chris Lattner [Tue, 6 May 2003 21:32:22 +0000 (21:32 +0000)]
Emit pseudo instructions to indicate that some registers are live on entrance
and exit of the function.  This fixes bug: Jello/2003-05-06-LivenessClobber.llx
and the Fhourstones benchmark

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

21 years agoDon't have a cow with new pseudo instructions
Chris Lattner [Tue, 6 May 2003 21:31:47 +0000 (21:31 +0000)]
Don't have a cow with new pseudo instructions

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

21 years agoAdd two new pseudo instructions
Chris Lattner [Tue, 6 May 2003 21:31:31 +0000 (21:31 +0000)]
Add two new pseudo instructions

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

21 years agoAdd a new open project
Chris Lattner [Tue, 6 May 2003 20:47:11 +0000 (20:47 +0000)]
Add a new open project

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

21 years agoNew testcase distilled from the fhourstones benchmark
Chris Lattner [Tue, 6 May 2003 19:41:25 +0000 (19:41 +0000)]
New testcase distilled from the fhourstones benchmark

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

21 years agoMake sure to compiel the LowerSwitch tests
Chris Lattner [Tue, 6 May 2003 19:04:02 +0000 (19:04 +0000)]
Make sure to compiel the LowerSwitch tests

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

21 years agoFix memory corruption problem
Chris Lattner [Tue, 6 May 2003 18:45:02 +0000 (18:45 +0000)]
Fix memory corruption problem

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

21 years agoDebug output should go to cerr, not cout, because that's where bytecode goes.
Misha Brukman [Sun, 4 May 2003 22:51:30 +0000 (22:51 +0000)]
Debug output should go to cerr, not cout, because that's where bytecode goes.

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

21 years agoNew testcase
Chris Lattner [Sat, 3 May 2003 18:55:29 +0000 (18:55 +0000)]
New testcase

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

21 years agoFix bug: UnitTests/2003-05-02-DependantPHI.c
Chris Lattner [Sat, 3 May 2003 07:11:00 +0000 (07:11 +0000)]
Fix bug: UnitTests/2003-05-02-DependantPHI.c
Fix testcase MultiSource/Ptrdist-ks

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

21 years agoFix miscompilation in Fhourstones and bug: LICM/2003-05-02-LoadHoist.ll
Chris Lattner [Sat, 3 May 2003 03:42:08 +0000 (03:42 +0000)]
Fix miscompilation in Fhourstones and bug: LICM/2003-05-02-LoadHoist.ll

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

21 years agoFix miscompilation found in Fhourstones by bugpoint
Chris Lattner [Sat, 3 May 2003 03:39:35 +0000 (03:39 +0000)]
Fix miscompilation found in Fhourstones by bugpoint

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

21 years agoIt's 'separate'. The 'i.e.' is kinda nit-picking, but think of it this way:
Misha Brukman [Sat, 3 May 2003 03:31:06 +0000 (03:31 +0000)]
It's 'separate'. The 'i.e.' is kinda nit-picking, but think of it this way:
'separate' is the one causing you to recompile all your passes anyway.

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

21 years agoMake a comment more accurate
Chris Lattner [Sat, 3 May 2003 03:20:36 +0000 (03:20 +0000)]
Make a comment more accurate

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

21 years agoAdd support for debugging miscompilations with the use of the JIT or CBE!
Chris Lattner [Sat, 3 May 2003 03:19:41 +0000 (03:19 +0000)]
Add support for debugging miscompilations with the use of the JIT or CBE!

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

21 years agoBugpoint is always verbose, eliminate option
Chris Lattner [Sat, 3 May 2003 03:18:41 +0000 (03:18 +0000)]
Bugpoint is always verbose, eliminate option

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

21 years ago* Eliminate using decls
Chris Lattner [Sat, 3 May 2003 03:14:35 +0000 (03:14 +0000)]
* Eliminate using decls
* Fix some styleistic things
* Fix bug: CWriter/2002-05-16-NameCollide.ll

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

21 years agoFix buggy tests
Chris Lattner [Sat, 3 May 2003 03:08:54 +0000 (03:08 +0000)]
Fix buggy tests

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

21 years agoThe Hyphenation-Adding Committee is now in session.
Misha Brukman [Sat, 3 May 2003 02:18:17 +0000 (02:18 +0000)]
The Hyphenation-Adding Committee is now in session.

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

21 years agoThe Grammar Police is out on patrol.
Misha Brukman [Sat, 3 May 2003 02:16:43 +0000 (02:16 +0000)]
The Grammar Police is out on patrol.

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

21 years agoAttempt to fix sumant's typesafety issue
Chris Lattner [Fri, 2 May 2003 19:32:04 +0000 (19:32 +0000)]
Attempt to fix sumant's typesafety issue

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

21 years agoFix spelling
Chris Lattner [Fri, 2 May 2003 19:26:34 +0000 (19:26 +0000)]
Fix spelling

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

21 years agoFix a bug which occurred with empty basic blocks
Chris Lattner [Fri, 2 May 2003 18:44:42 +0000 (18:44 +0000)]
Fix a bug which occurred with empty basic blocks

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

21 years agoAdd an instcombine pass before levelraise
Chris Lattner [Fri, 2 May 2003 18:19:05 +0000 (18:19 +0000)]
Add an instcombine pass before levelraise

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

21 years agoFix Bug: LowerSwitch/2003-05-01-PHIProblem.ll
Chris Lattner [Thu, 1 May 2003 22:21:21 +0000 (22:21 +0000)]
Fix Bug: LowerSwitch/2003-05-01-PHIProblem.ll

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

21 years agoReduce testcase a bit
Chris Lattner [Thu, 1 May 2003 21:38:57 +0000 (21:38 +0000)]
Reduce testcase a bit

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

21 years agoNew testcase for the lowerswitch pass
Chris Lattner [Thu, 1 May 2003 21:27:24 +0000 (21:27 +0000)]
New testcase for the lowerswitch pass

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

21 years agoMinor cleanup
Chris Lattner [Thu, 1 May 2003 21:18:47 +0000 (21:18 +0000)]
Minor cleanup

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

21 years agoFix bug: LevelRaise/2003-05-01-CallCast.ll
Chris Lattner [Thu, 1 May 2003 21:02:53 +0000 (21:02 +0000)]
Fix bug: LevelRaise/2003-05-01-CallCast.ll

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

21 years agoNew testcase: do not "raise" a call that is not through a function pointer!
Chris Lattner [Thu, 1 May 2003 21:02:35 +0000 (21:02 +0000)]
New testcase: do not "raise" a call that is not through a function pointer!

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

21 years agoEliminate use of NonCopyable so that doxygen documentation doesn't link
Chris Lattner [Thu, 1 May 2003 20:28:45 +0000 (20:28 +0000)]
Eliminate use of NonCopyable so that doxygen documentation doesn't link
the Annotation classes with the noncopyable classes for no reason

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

21 years agoFix another case where constexprs could cause a crash
Chris Lattner [Wed, 30 Apr 2003 22:34:06 +0000 (22:34 +0000)]
Fix another case where constexprs could cause a crash

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

21 years agoFix constant folding of constexprs
Chris Lattner [Wed, 30 Apr 2003 22:19:10 +0000 (22:19 +0000)]
Fix constant folding of constexprs

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

21 years agoRemove implemented project, add a new one
Chris Lattner [Mon, 28 Apr 2003 03:42:31 +0000 (03:42 +0000)]
Remove implemented project, add a new one

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

21 years agoAdd a new option to disable stripping of bytecode files
Chris Lattner [Mon, 28 Apr 2003 03:28:56 +0000 (03:28 +0000)]
Add a new option to disable stripping of bytecode files

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

21 years agoCreate constant expression casts instead of constant instructions if possible
Chris Lattner [Mon, 28 Apr 2003 01:25:38 +0000 (01:25 +0000)]
Create constant expression casts instead of constant instructions if possible

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

21 years agoFix several bugs:
Chris Lattner [Mon, 28 Apr 2003 01:23:29 +0000 (01:23 +0000)]
Fix several bugs:
  * Warnings were emitted all of the time and were really annoying
  * Functions could not be resolved unless they had external linkage.  Linkonce
    linkage was not allowed
  * ConstantPointerRef's were not handled when linking functions
    we now actually handle cast (CPR) to X -> cast (NewCPR) to X

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

21 years agoAvoid naming things exactly the same
Chris Lattner [Sun, 27 Apr 2003 22:55:56 +0000 (22:55 +0000)]
Avoid naming things exactly the same

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

21 years agoNew testcase distilled from a problem identified by sumant
Chris Lattner [Sat, 26 Apr 2003 20:29:09 +0000 (20:29 +0000)]
New testcase distilled from a problem identified by sumant

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

21 years agoRemove two fields from TargetData which are target specific.
Chris Lattner [Sat, 26 Apr 2003 20:11:09 +0000 (20:11 +0000)]
Remove two fields from TargetData which are target specific.

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

21 years agoThe promotion rules are the same for all targets, they are set by the C standard.
Chris Lattner [Sat, 26 Apr 2003 19:47:36 +0000 (19:47 +0000)]
The promotion rules are the same for all targets, they are set by the C standard.

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

21 years agoIntegerRegSize is always 8 for sparc
Chris Lattner [Sat, 26 Apr 2003 19:44:35 +0000 (19:44 +0000)]
IntegerRegSize is always 8 for sparc

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

21 years agoSwitch insns actually DO work.
Chris Lattner [Sat, 26 Apr 2003 19:36:06 +0000 (19:36 +0000)]
Switch insns actually DO work.

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

21 years agoFix bug: LoopPreheaders/2003-04-25-AssertFail.ll
Chris Lattner [Sat, 26 Apr 2003 19:34:18 +0000 (19:34 +0000)]
Fix bug: LoopPreheaders/2003-04-25-AssertFail.ll

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

21 years agoAdd comment to testcase
Chris Lattner [Sat, 26 Apr 2003 19:33:51 +0000 (19:33 +0000)]
Add comment to testcase

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

21 years agoWhoever checked this testcase in apparently never tested it.
Chris Lattner [Sat, 26 Apr 2003 17:44:17 +0000 (17:44 +0000)]
Whoever checked this testcase in apparently never tested it.

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

21 years agoRevert last checkin. Note that PHI nodes can use basic blocks also!
Chris Lattner [Sat, 26 Apr 2003 17:38:26 +0000 (17:38 +0000)]
Revert last checkin.  Note that PHI nodes can use basic blocks also!

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

21 years agoRemove long-dead obsolete cruft
Chris Lattner [Fri, 25 Apr 2003 23:39:08 +0000 (23:39 +0000)]
Remove long-dead obsolete cruft

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

21 years agoNew testcase that crashes preheaders
Chris Lattner [Fri, 25 Apr 2003 23:26:52 +0000 (23:26 +0000)]
New testcase that crashes preheaders

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

21 years agoFix a bug that occurred when removing the last predecessor INTO an
Chris Lattner [Fri, 25 Apr 2003 23:14:19 +0000 (23:14 +0000)]
Fix a bug that occurred when removing the last predecessor INTO an
infinite loop

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

21 years agoFix bug: ADCE/2003-04-25-PHIPostDominateProblem.ll
Chris Lattner [Fri, 25 Apr 2003 22:53:27 +0000 (22:53 +0000)]
Fix bug: ADCE/2003-04-25-PHIPostDominateProblem.ll

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

21 years agoNew testcase
Chris Lattner [Fri, 25 Apr 2003 22:53:12 +0000 (22:53 +0000)]
New testcase

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

21 years agoAdd options to disable simplification with passes, in case one of them crashes
Chris Lattner [Fri, 25 Apr 2003 22:08:12 +0000 (22:08 +0000)]
Add options to disable simplification with passes, in case one of them crashes

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

21 years agoFix bogus assert
Chris Lattner [Fri, 25 Apr 2003 21:58:54 +0000 (21:58 +0000)]
Fix bogus assert

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

21 years agoFix bug: Assembler/2003-04-25-UnresolvedGlobalReference.ll
Chris Lattner [Fri, 25 Apr 2003 21:47:33 +0000 (21:47 +0000)]
Fix bug: Assembler/2003-04-25-UnresolvedGlobalReference.ll

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

21 years agoNew testcase
Chris Lattner [Fri, 25 Apr 2003 20:09:17 +0000 (20:09 +0000)]
New testcase

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

21 years agoFix bugs in testcase
Chris Lattner [Fri, 25 Apr 2003 19:49:36 +0000 (19:49 +0000)]
Fix bugs in testcase

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

21 years agoAdd comment
Chris Lattner [Fri, 25 Apr 2003 18:44:30 +0000 (18:44 +0000)]
Add comment

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

21 years agoOnly do the %ld -> %lld promotion when running a 64 bit bytecode on a 32 bit host
Chris Lattner [Fri, 25 Apr 2003 18:28:44 +0000 (18:28 +0000)]
Only do the %ld -> %lld promotion when running a 64 bit bytecode on a 32 bit host

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

21 years agoAdd __strdup
Chris Lattner [Fri, 25 Apr 2003 18:23:38 +0000 (18:23 +0000)]
Add __strdup

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

21 years agoFix BasicAA/2003-04-25-GEPCrash.ll
Chris Lattner [Fri, 25 Apr 2003 18:03:06 +0000 (18:03 +0000)]
Fix BasicAA/2003-04-25-GEPCrash.ll

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

21 years agoNew testcase
Chris Lattner [Fri, 25 Apr 2003 17:59:02 +0000 (17:59 +0000)]
New testcase

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

21 years agoMAke sure that LLI properly configures align_of(double)
Chris Lattner [Fri, 25 Apr 2003 06:15:05 +0000 (06:15 +0000)]
MAke sure that LLI properly configures align_of(double)

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

21 years agoWhoops, 32 bit targets have _4_ byte pointers, not _32_ byte pointers!
Chris Lattner [Fri, 25 Apr 2003 06:06:43 +0000 (06:06 +0000)]
Whoops, 32 bit targets have _4_ byte pointers, not _32_ byte pointers!

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

21 years agoMake sure to copy double alignment as well
Chris Lattner [Fri, 25 Apr 2003 06:06:13 +0000 (06:06 +0000)]
Make sure to copy double alignment as well

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

21 years agoFix compatibility bug: X86 aligns doubles to 4 bytes, not 8!
Chris Lattner [Fri, 25 Apr 2003 06:05:57 +0000 (06:05 +0000)]
Fix compatibility bug: X86 aligns doubles to 4 bytes, not 8!

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

21 years agoKill using declarations
Chris Lattner [Fri, 25 Apr 2003 05:26:11 +0000 (05:26 +0000)]
Kill using declarations

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

21 years agoFix method name type-o
Chris Lattner [Fri, 25 Apr 2003 05:23:27 +0000 (05:23 +0000)]
Fix method name type-o

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

21 years agoFix obvious type-o
Chris Lattner [Fri, 25 Apr 2003 05:23:10 +0000 (05:23 +0000)]
Fix obvious type-o

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

21 years agoMake sure to add a targetdata instance to the passmanager, and make it match the
Chris Lattner [Fri, 25 Apr 2003 05:22:29 +0000 (05:22 +0000)]
Make sure to add a targetdata instance to the passmanager, and make it match the
one in use by the TargetMachine

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

21 years agoFix problem where we would read 64 bits worth of pointer information, even on 32...
Chris Lattner [Fri, 25 Apr 2003 04:21:19 +0000 (04:21 +0000)]
Fix problem where we would read 64 bits worth of pointer information, even on 32 bit targets!

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

21 years agoFix major problem with PHI node traversal: rechecking PHIs should go into
Chris Lattner [Fri, 25 Apr 2003 03:35:10 +0000 (03:35 +0000)]
Fix major problem with PHI node traversal: rechecking PHIs should go into
the visit function.  The worklist is for when their lattice value changes.

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

21 years agoRename Kept -> Suffix
Chris Lattner [Fri, 25 Apr 2003 03:16:33 +0000 (03:16 +0000)]
Rename Kept -> Suffix
FIX problem where we were incorrectly putting the prefix of the list into the "suffix" list.

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

21 years agoRename Kept -> Suffix
Chris Lattner [Fri, 25 Apr 2003 03:16:05 +0000 (03:16 +0000)]
Rename Kept -> Suffix
Fix problem where we accidentally returned KeepPrefix instead of KeepSuffix!

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

21 years ago** CORRECTLY, conservatively handle constant expressions
Chris Lattner [Fri, 25 Apr 2003 02:52:06 +0000 (02:52 +0000)]
** CORRECTLY, conservatively handle constant expressions

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

21 years ago*** Huge: Make constantexprs be handled correctly, conservatively
Chris Lattner [Fri, 25 Apr 2003 02:51:46 +0000 (02:51 +0000)]
*** Huge: Make constantexprs be handled correctly, conservatively

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

21 years agoAllow for easy detection of when a "default" TargetData is created by the
Chris Lattner [Fri, 25 Apr 2003 02:50:45 +0000 (02:50 +0000)]
Allow for easy detection of when a "default" TargetData is created by the
passmanager, which is never the right thing to do.

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

21 years agoDefault ctor doesn't provide name
Chris Lattner [Fri, 25 Apr 2003 02:50:19 +0000 (02:50 +0000)]
Default ctor doesn't provide name

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

21 years agoMinor non-functional changes:
Chris Lattner [Fri, 25 Apr 2003 02:50:03 +0000 (02:50 +0000)]
Minor non-functional changes:
  * Spell propagate right
  * Improve performance of phi node handling
  * Delete using directive
  * Other minor changes

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

21 years agoFix bug: mem2reg/2003-04-24-MultipleIdenticalSuccessors.ll
Chris Lattner [Fri, 25 Apr 2003 00:54:58 +0000 (00:54 +0000)]
Fix bug: mem2reg/2003-04-24-MultipleIdenticalSuccessors.ll

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

21 years agoBig programs have tons of global variable initializers, and most passes don't care
Chris Lattner [Fri, 25 Apr 2003 00:53:05 +0000 (00:53 +0000)]
Big programs have tons of global variable initializers, and most passes don't care
about them.  Try to delete them if it doesn't affect the passes.

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

21 years agoWhen cleaning up the final bytecode file, make sure to run DTE as well
Chris Lattner [Fri, 25 Apr 2003 00:52:30 +0000 (00:52 +0000)]
When cleaning up the final bytecode file, make sure to run DTE as well

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

21 years agoNew testcase
Chris Lattner [Fri, 25 Apr 2003 00:46:14 +0000 (00:46 +0000)]
New testcase

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

21 years agoSpeed up convergence significantly and also reduce the size of testcases by making...
Chris Lattner [Thu, 24 Apr 2003 23:51:38 +0000 (23:51 +0000)]
Speed up convergence significantly and also reduce the size of testcases by making large portions of a function's CFG dead at a time.

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

21 years agoThe big fix is this change:
Chris Lattner [Thu, 24 Apr 2003 22:54:06 +0000 (22:54 +0000)]
The big fix is this change:
-    if (I->isExternal() && !Functions.count(I))
+    if (!I->isExternal() && !Functions.count(I))

We were not actually deleting any functions from the module!

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

21 years agoRemove dead functions
Chris Lattner [Thu, 24 Apr 2003 22:53:24 +0000 (22:53 +0000)]
Remove dead functions

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

21 years agoMake sure that deleted functions have external linkage
Chris Lattner [Thu, 24 Apr 2003 22:53:01 +0000 (22:53 +0000)]
Make sure that deleted functions have external linkage

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

21 years agoUse the list reducer to improve convergence speed and to support crashes that
Chris Lattner [Thu, 24 Apr 2003 22:24:58 +0000 (22:24 +0000)]
Use the list reducer to improve convergence speed and to support crashes that
only occur when multiple passes interact or when multiple functions exist in a module

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

21 years agoAdjust to match new ListReducer interface
Chris Lattner [Thu, 24 Apr 2003 22:24:22 +0000 (22:24 +0000)]
Adjust to match new ListReducer interface
Move function to generic code

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

21 years agoAllow reducer interfaces to mutate the lists passed in
Chris Lattner [Thu, 24 Apr 2003 22:23:56 +0000 (22:23 +0000)]
Allow reducer interfaces to mutate the lists passed in

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

21 years agoMove function from Miscompilation.cpp
Chris Lattner [Thu, 24 Apr 2003 22:23:34 +0000 (22:23 +0000)]
Move function from Miscompilation.cpp

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

21 years agoMove the ListReducer Class into it's own header file instead of living in Miscompilat...
Chris Lattner [Thu, 24 Apr 2003 20:16:29 +0000 (20:16 +0000)]
Move the ListReducer Class into it's own header file instead of living in Miscompilation.cpp

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