oota-llvm.git
20 years agoAdd an assertion to make sure we are at least getting argv[0] right.
Brian Gaeke [Fri, 12 Dec 2003 00:47:19 +0000 (00:47 +0000)]
Add an assertion to make sure we are at least getting argv[0] right.
Use a clearer error message when we fail to load a program.

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

20 years agoUpdate release notes for PR86 and C++ support
Chris Lattner [Thu, 11 Dec 2003 23:31:21 +0000 (23:31 +0000)]
Update release notes for PR86 and C++ support

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

20 years agoFactor out some duplicated code, implement the rest of the cases in
Chris Lattner [Thu, 11 Dec 2003 23:20:16 +0000 (23:20 +0000)]
Factor out some duplicated code, implement the rest of the cases in
BasicAA/2003-12-11-ConstExprGEP.ll

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

20 years agoRename variable to avoid confusing it with the global G
Chris Lattner [Thu, 11 Dec 2003 22:49:32 +0000 (22:49 +0000)]
Rename variable to avoid confusing it with the global G

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

20 years agoFix PR86. This makes basicaa _SIGNIFICANLY_ more aggressive with getelementptr's
Chris Lattner [Thu, 11 Dec 2003 22:44:13 +0000 (22:44 +0000)]
Fix PR86.  This makes basicaa _SIGNIFICANLY_ more aggressive with getelementptr's

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

20 years agoFix LICM/2003-12-11-SinkingToPHI.ll, and quite possibly all of the other known proble...
Chris Lattner [Thu, 11 Dec 2003 22:23:32 +0000 (22:23 +0000)]
Fix LICM/2003-12-11-SinkingToPHI.ll, and quite possibly all of the other known problems in the universe.

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

20 years agoNew testcase that LICM is breaking crafty on
Chris Lattner [Thu, 11 Dec 2003 22:15:11 +0000 (22:15 +0000)]
New testcase that LICM is breaking crafty on

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

20 years agoFinegrainify namespacification
Chris Lattner [Thu, 11 Dec 2003 21:48:18 +0000 (21:48 +0000)]
Finegrainify namespacification
Add new -print-cfg-only pass

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

20 years agoverifyFunction depends on dominator info, which levelraise does not declare
Chris Lattner [Thu, 11 Dec 2003 21:47:37 +0000 (21:47 +0000)]
verifyFunction depends on dominator info, which levelraise does not declare
that it needs.  This is pretty scary code!  This fixes

Regression.Transforms.LevelRaise.2002-07-16-SourceAndDestCrash
Regression.Transforms.LevelRaise.2002-07-31-AssertionFailure

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

20 years agoFix test that was failing because we were optimizing the program better than expected :)
Chris Lattner [Thu, 11 Dec 2003 21:06:43 +0000 (21:06 +0000)]
Fix test that was failing because we were optimizing the program better than expected :)

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

20 years agoNew testcase for PR86
Chris Lattner [Thu, 11 Dec 2003 19:16:30 +0000 (19:16 +0000)]
New testcase for PR86

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

20 years agoRun tailcall elimination in a more logical place
Chris Lattner [Thu, 11 Dec 2003 17:50:32 +0000 (17:50 +0000)]
Run tailcall elimination in a more logical place

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

20 years agoFix a glaring bug
Chris Lattner [Thu, 11 Dec 2003 06:06:28 +0000 (06:06 +0000)]
Fix a glaring bug

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

20 years agoRealize the gep P, <zeros> must aliases P.
Chris Lattner [Thu, 11 Dec 2003 06:02:00 +0000 (06:02 +0000)]
Realize the gep P, <zeros> must aliases P.
This is a partial fix for PR 86

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

20 years agoWith Brian's change to AA.h we can now clean out this uglyness
Chris Lattner [Thu, 11 Dec 2003 05:44:59 +0000 (05:44 +0000)]
With Brian's change to AA.h we can now clean out this uglyness

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

20 years agoIncludeFile hack to pull in BasicValueNumbering whenever ValueNumbering.h
Brian Gaeke [Thu, 11 Dec 2003 05:05:56 +0000 (05:05 +0000)]
IncludeFile hack to pull in BasicValueNumbering whenever ValueNumbering.h
is included.

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

20 years agoIncludeFile hack to pull in BasicAliasAnalysis whenever AliasAnalysis.h
Brian Gaeke [Thu, 11 Dec 2003 05:05:02 +0000 (05:05 +0000)]
IncludeFile hack to pull in BasicAliasAnalysis whenever AliasAnalysis.h
is included.

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

20 years agoSeparate out target for cleaning up qmtest garbage.
Brian Gaeke [Thu, 11 Dec 2003 04:48:38 +0000 (04:48 +0000)]
Separate out target for cleaning up qmtest garbage.

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

20 years agoAdd more fixed bugs. Keep llvm core section sorted by pr#. (Is that ok?)
Brian Gaeke [Thu, 11 Dec 2003 04:40:58 +0000 (04:40 +0000)]
Add more fixed bugs. Keep llvm core section sorted by pr#. (Is that ok?)

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

20 years agoStop laughing Misha
Chris Lattner [Thu, 11 Dec 2003 00:58:34 +0000 (00:58 +0000)]
Stop laughing Misha

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

20 years agoIn getObjectType(), doxygenify comment, and take a pointer to the
Brian Gaeke [Thu, 11 Dec 2003 00:38:04 +0000 (00:38 +0000)]
In getObjectType(), doxygenify comment, and take a pointer to the
beginning of the archive member data as an argument.

Get rid of ParseLongFilenameSection(), which is dead.

In ReadArchiveBuffer(), implement support for 4.4BSD/MacOSX long filenames.
This is kind of invasive, because they prepend the long filename to the archive
member data, and then lie about the size. So we have to keep track of the real
size.

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

20 years agoTurn off "attribute weak" to pacify Mac OS X's system compiler, which prints a
Brian Gaeke [Thu, 11 Dec 2003 00:24:36 +0000 (00:24 +0000)]
Turn off "attribute weak" to pacify Mac OS X's system compiler, which prints a
warning whenever it sees it.

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

20 years agoFix typo in comment. Add prototype for getConstantExprValue().
Brian Gaeke [Thu, 11 Dec 2003 00:23:28 +0000 (00:23 +0000)]
Fix typo in comment.  Add prototype for getConstantExprValue().

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

20 years agoAdd support for --debug-only=interpreter, to print out instrs before
Brian Gaeke [Thu, 11 Dec 2003 00:22:59 +0000 (00:22 +0000)]
Add support for --debug-only=interpreter, to print out instrs before
interpreting them.

Move support for getting the value of a ConstantExpr into
getConstantExprValue(), and add support for the rest of the different
kinds of ConstantExprs.  (I don't think I like ConstantExprs!)
This requires separate procedures executeShlInst() and executeShrInst().

Reduce the number of references to TheEE.

Get rid of an old comment mentioning annotations.

Fix exitCalled(), which was crashing the Interpreter. This was a
leftover from the return-value code refactoring.

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

20 years agoThis appears to fix Bug 172 and does not break any other feature tests or
John Criswell [Wed, 10 Dec 2003 22:51:41 +0000 (22:51 +0000)]
This appears to fix Bug 172 and does not break any other feature tests or
regression tests.

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

20 years agoFix bug: LICM/sink_multiple_exits.ll
Chris Lattner [Wed, 10 Dec 2003 22:35:56 +0000 (22:35 +0000)]
Fix bug: LICM/sink_multiple_exits.ll

Thanks for pointing this out John  :)

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

20 years agoDon't allow dead instructions to stop sinking early.
Chris Lattner [Wed, 10 Dec 2003 20:43:29 +0000 (20:43 +0000)]
Don't allow dead instructions to stop sinking early.

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

20 years agoFix bug: IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx
Chris Lattner [Wed, 10 Dec 2003 20:43:04 +0000 (20:43 +0000)]
Fix bug: IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx

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

20 years agoA new testcase, reduced by bugpoint
Chris Lattner [Wed, 10 Dec 2003 20:39:53 +0000 (20:39 +0000)]
A new testcase, reduced by bugpoint

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 20:22:42 +0000 (20:22 +0000)]
Finegrainify namespacification
Fix bug: LowerInvoke/2003-12-10-Crash.llx

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

20 years agonew testcase
Chris Lattner [Wed, 10 Dec 2003 20:18:09 +0000 (20:18 +0000)]
new testcase

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

20 years agoFixed a comma error.
John Criswell [Wed, 10 Dec 2003 20:04:13 +0000 (20:04 +0000)]
Fixed a comma error.
Added the --disable-threads option to GCC configure (to avoid pthread errors
when building code with LLVM).

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

20 years agoSupport 'make install' for LLVM include files.
Brian Gaeke [Wed, 10 Dec 2003 18:41:20 +0000 (18:41 +0000)]
Support 'make install' for LLVM include files.

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

20 years agoUpon Chris's suggestion, moved the #ifdef's to the generated C code.
John Criswell [Wed, 10 Dec 2003 18:17:57 +0000 (18:17 +0000)]
Upon Chris's suggestion, moved the #ifdef's to the generated C code.
This makes LLVM and the generated C code more portable.

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 18:06:47 +0000 (18:06 +0000)]
Finegrainify namespacification
Reorder #includes
Implement: IndVarsSimplify/2003-12-10-IndVarDeadCode.ll

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

20 years agoFixed the CBE on Solaris/Sparc. We need to define the return value of
John Criswell [Wed, 10 Dec 2003 18:06:34 +0000 (18:06 +0000)]
Fixed the CBE on Solaris/Sparc.  We need to define the return value of
the write() system call because it returns 64 bits on Solaris 64 bit,
and an implicit return value of int says it returns 32 bits.
Admittedly, this is a bit of a hack.

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

20 years agoNew testcase
Chris Lattner [Wed, 10 Dec 2003 17:57:38 +0000 (17:57 +0000)]
New testcase

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 17:20:35 +0000 (17:20 +0000)]
Finegrainify namespacification
Fix bug: LoopSimplify/2003-12-10-ExitBlocksProblem.ll

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

20 years agoNew testcase which caused a bunch of tests to break last night with more
Chris Lattner [Wed, 10 Dec 2003 17:09:35 +0000 (17:09 +0000)]
New testcase which caused a bunch of tests to break last night with more
aggressive LICM

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

20 years agoSimplify code
Chris Lattner [Wed, 10 Dec 2003 16:58:24 +0000 (16:58 +0000)]
Simplify code

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

20 years agoAvoid performing two identical lookups when one will suffice
Chris Lattner [Wed, 10 Dec 2003 16:57:24 +0000 (16:57 +0000)]
Avoid performing two identical lookups when one will suffice

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

20 years agoMake LICM itself a bit more efficient, and make the generated code more efficient...
Chris Lattner [Wed, 10 Dec 2003 15:56:24 +0000 (15:56 +0000)]
Make LICM itself a bit more efficient, and make the generated code more efficient too: don't insert a store in every exit block, because a particular block may be exited to more than once by a loop

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

20 years agoRemoved the pthread_once() function because it doesn't actually do
John Criswell [Wed, 10 Dec 2003 15:43:07 +0000 (15:43 +0000)]
Removed the pthread_once() function because it doesn't actually do
what it's supposed to do.
Just leave this library as a dummy library for now until we have time to
port a real pthread library (or get glibc working).

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 15:34:03 +0000 (15:34 +0000)]
Finegrainify namespacification

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

20 years agoFinegrainify namespacification
Chris Lattner [Wed, 10 Dec 2003 15:33:59 +0000 (15:33 +0000)]
Finegrainify namespacification
Provide a context module to WriteAsOperand

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

20 years agoAdded the --host= option to the Sparc configuration directions.
John Criswell [Wed, 10 Dec 2003 15:27:29 +0000 (15:27 +0000)]
Added the --host= option to the Sparc configuration directions.

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

20 years agoDummy implementation of the pthread library.
John Criswell [Wed, 10 Dec 2003 14:46:36 +0000 (14:46 +0000)]
Dummy implementation of the pthread library.
This is needed since libstdc++ uses pthread_once().

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

20 years agoMake 'opt -o -' work correctly instead of creating a file named './-'
Chris Lattner [Wed, 10 Dec 2003 14:41:33 +0000 (14:41 +0000)]
Make 'opt -o -' work correctly instead of creating a file named './-'

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

20 years agoImplement instruction sinking out of loops. This still can do a little bit
Chris Lattner [Wed, 10 Dec 2003 06:41:05 +0000 (06:41 +0000)]
Implement instruction sinking out of loops.  This still can do a little bit
better job, but this is the majority of the work.  This implements
LICM/sink*.ll

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

20 years agonew testcase, checking to ensure we handle yet-another spiffy case correctly
Chris Lattner [Wed, 10 Dec 2003 05:42:23 +0000 (05:42 +0000)]
new testcase, checking to ensure we handle yet-another spiffy case correctly

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

20 years agoDon't assume that system headers define 'uint' or 'ulong' as types.
Brian Gaeke [Wed, 10 Dec 2003 05:06:38 +0000 (05:06 +0000)]
Don't assume that system headers define 'uint' or 'ulong' as types.

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

20 years agoFix apparent copy-and-paste-o.
Brian Gaeke [Wed, 10 Dec 2003 04:33:07 +0000 (04:33 +0000)]
Fix apparent copy-and-paste-o.
Get rid of %debug - Mac OS X bison doesn't have it.  sigh.

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

20 years agoAdd support for installing tool executables.
Brian Gaeke [Wed, 10 Dec 2003 00:26:28 +0000 (00:26 +0000)]
Add support for installing tool executables.

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

20 years agoAdd installation directories and commands, standardly provided by configure.
Brian Gaeke [Wed, 10 Dec 2003 00:25:32 +0000 (00:25 +0000)]
Add installation directories and commands, standardly provided by configure.

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

20 years agoYet another hard testcase
Chris Lattner [Tue, 9 Dec 2003 23:29:25 +0000 (23:29 +0000)]
Yet another hard testcase

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

20 years agoDo not insert one entry PHI nodes in split exit blocks!
Chris Lattner [Tue, 9 Dec 2003 23:12:55 +0000 (23:12 +0000)]
Do not insert one entry PHI nodes in split exit blocks!

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

20 years agoCheck in the llvm-native-gcc script, which I use in the process of
Brian Gaeke [Tue, 9 Dec 2003 22:23:24 +0000 (22:23 +0000)]
Check in the llvm-native-gcc script, which I use in the process of
debugging front-end miscompilations.

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

20 years agoAdd a new testcase which breaks the sinker because the loop canonnicalization
Chris Lattner [Tue, 9 Dec 2003 22:05:08 +0000 (22:05 +0000)]
Add a new testcase which breaks the sinker because the loop canonnicalization
pass does not do a canonnicalization that the sinker wants.

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

20 years agoFix buggy test
Chris Lattner [Tue, 9 Dec 2003 21:45:23 +0000 (21:45 +0000)]
Fix buggy test

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

20 years agoNew testcase for sinking operations from loops with multiple exits
Chris Lattner [Tue, 9 Dec 2003 21:40:36 +0000 (21:40 +0000)]
New testcase for sinking operations from loops with multiple exits

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

20 years agoMake the test a bit harder so that we test to ensure that _both_ instructions
Chris Lattner [Tue, 9 Dec 2003 20:50:20 +0000 (20:50 +0000)]
Make the test a bit harder so that we test to ensure that _both_ instructions
are sunk

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

20 years agoRefactor code a little bit, eliminating the gratuitous InstVisitor, which
Chris Lattner [Tue, 9 Dec 2003 19:32:44 +0000 (19:32 +0000)]
Refactor code a little bit, eliminating the gratuitous InstVisitor, which
should make subsequent changes simpler.  This also allows us to hoist vaarg
and vanext instructions

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

20 years agoFine grainify namespacification
Chris Lattner [Tue, 9 Dec 2003 17:18:00 +0000 (17:18 +0000)]
Fine grainify namespacification
Code cleanups
Make LICM::SafeToHoist marginally more efficient

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

20 years agoNew testcases for LICM improvement: code sinking.
Chris Lattner [Tue, 9 Dec 2003 16:56:51 +0000 (16:56 +0000)]
New testcases for LICM improvement: code sinking.

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

20 years agoImprove portability with Mac OS/X
Chris Lattner [Tue, 9 Dec 2003 16:49:12 +0000 (16:49 +0000)]
Improve portability with Mac OS/X

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

20 years agoImprove testcase portability on OS/X
Chris Lattner [Tue, 9 Dec 2003 16:48:24 +0000 (16:48 +0000)]
Improve testcase portability on OS/X

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

20 years agoNew testcase that is not actually handled yet, but should be in the future.
Chris Lattner [Tue, 9 Dec 2003 16:26:42 +0000 (16:26 +0000)]
New testcase that is not actually handled yet, but should be in the future.
This is here to remind me to get back to this after a while.

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

20 years agoAdded the -h option for compatibility with other linkers.
John Criswell [Tue, 9 Dec 2003 15:39:11 +0000 (15:39 +0000)]
Added the -h option for compatibility with other linkers.

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

20 years agoWhoops, forgot to check this in. :)
Chris Lattner [Mon, 8 Dec 2003 23:41:09 +0000 (23:41 +0000)]
Whoops, forgot to check this in.  :)

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

20 years agoImplement: TailCallElim/accum_recursion_constant_arg.ll
Chris Lattner [Mon, 8 Dec 2003 23:37:35 +0000 (23:37 +0000)]
Implement: TailCallElim/accum_recursion_constant_arg.ll

Also make sure to clean up any PHI nodes that are inserted which are pointless.

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

20 years agoImplement: test/Regression/Transforms/TailCallElim/accum_recursion.ll
Chris Lattner [Mon, 8 Dec 2003 23:19:26 +0000 (23:19 +0000)]
Implement: test/Regression/Transforms/TailCallElim/accum_recursion.ll

We now insert accumulator variables as necessary to eliminate tail recursion
more aggressively.  This is still fairly limited, but allows us to transform
fib/factorial, and other functions into nice happy loops.  :)

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

20 years agoNew testcase for automatic insertion of accumulator variables to eliminate
Chris Lattner [Mon, 8 Dec 2003 23:16:25 +0000 (23:16 +0000)]
New testcase for automatic insertion of accumulator variables to eliminate
tail recursion

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

20 years agoAdd a missing semi colon, which breaks bison 1.5
Chris Lattner [Mon, 8 Dec 2003 20:15:33 +0000 (20:15 +0000)]
Add a missing semi colon, which breaks bison 1.5

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

20 years agoSimplify makefiles by just explicitly listing directories
Chris Lattner [Mon, 8 Dec 2003 20:12:46 +0000 (20:12 +0000)]
Simplify makefiles by just explicitly listing directories

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

20 years agoUpdated build instructions for Sparc.
John Criswell [Mon, 8 Dec 2003 19:59:14 +0000 (19:59 +0000)]
Updated build instructions for Sparc.

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

20 years agoFixed the dynamic generation of the list of subdirectories to compile.
John Criswell [Mon, 8 Dec 2003 17:52:32 +0000 (17:52 +0000)]
Fixed the dynamic generation of the list of subdirectories to compile.

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

20 years agoimplement method
Chris Lattner [Mon, 8 Dec 2003 08:23:04 +0000 (08:23 +0000)]
implement method

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

20 years agoUse the new method, though noone currently implements it any better than before
Chris Lattner [Mon, 8 Dec 2003 08:22:48 +0000 (08:22 +0000)]
Use the new method, though noone currently implements it any better than before

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

20 years agoadd two new virtual functions:
Chris Lattner [Mon, 8 Dec 2003 08:22:01 +0000 (08:22 +0000)]
add two new virtual functions:
  The first returns a function pointer or a stub if it's not already generated
  The second exposes what was previously JIT specific state to general clients

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

20 years agoFinegrainify namespacification
Chris Lattner [Mon, 8 Dec 2003 08:06:28 +0000 (08:06 +0000)]
Finegrainify namespacification

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

20 years agoMakefile updates contributed by Reid
Chris Lattner [Mon, 8 Dec 2003 07:08:00 +0000 (07:08 +0000)]
Makefile updates contributed by Reid

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

20 years agoNew bug
Chris Lattner [Mon, 8 Dec 2003 06:33:19 +0000 (06:33 +0000)]
New bug

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

20 years ago`effect' is the noun, `affect' is the verb.
Misha Brukman [Mon, 8 Dec 2003 06:22:05 +0000 (06:22 +0000)]
`effect' is the noun, `affect' is the verb.

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

20 years agoNew testcase for PR165
Chris Lattner [Mon, 8 Dec 2003 06:18:37 +0000 (06:18 +0000)]
New testcase for PR165

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

20 years agoAdd note about sucky suse compiler
Chris Lattner [Mon, 8 Dec 2003 05:43:19 +0000 (05:43 +0000)]
Add note about sucky suse compiler

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

20 years agoCleanup and restructure the code to make it easier to read and maintain.
Chris Lattner [Mon, 8 Dec 2003 05:34:54 +0000 (05:34 +0000)]
Cleanup and restructure the code to make it easier to read and maintain.
The only functionality change is that we now implement:
  Regression/Transforms/TailCallElim/intervening-inst.ll

Which is really kinda pointless, because it means that trivially dead code
does not interfere with -tce, but trivially dead code probably wouldn't be
around anytime when this pass is run anyway.

The point of including this change it to support other more aggressive
transformations when we have the analysis capabilities to do so.

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

20 years agoNew testcase, this should be -tailcallelim'inated
Chris Lattner [Mon, 8 Dec 2003 05:32:48 +0000 (05:32 +0000)]
New testcase, this should be -tailcallelim'inated

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

20 years agoSince ssaification of the varargs builtings, the vaarg instruction no longer
Chris Lattner [Mon, 8 Dec 2003 05:29:33 +0000 (05:29 +0000)]
Since ssaification of the varargs builtings, the vaarg instruction no longer
can write to memory.

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

20 years agoRegenerated using autoheader-2.57
Brian Gaeke [Mon, 8 Dec 2003 00:57:01 +0000 (00:57 +0000)]
Regenerated using autoheader-2.57

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

20 years agoBugpoint had appalingly bad grammar. Fix some of it.
Chris Lattner [Sun, 7 Dec 2003 02:43:09 +0000 (02:43 +0000)]
Bugpoint had appalingly bad grammar.  Fix some of it.

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

20 years agoDo not leave a bunch of crud lying around
Chris Lattner [Sun, 7 Dec 2003 02:31:03 +0000 (02:31 +0000)]
Do not leave a bunch of crud lying around

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

20 years agoIt is now after pldi. This issue has been fixed, so remove the hack
Chris Lattner [Sun, 7 Dec 2003 01:44:18 +0000 (01:44 +0000)]
It is now after pldi.  This issue has been fixed, so remove the hack

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

20 years agoImplement RaiseAllocations/FreeCastConstantExpr.ll
Chris Lattner [Sun, 7 Dec 2003 01:42:08 +0000 (01:42 +0000)]
Implement RaiseAllocations/FreeCastConstantExpr.ll

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

20 years agoNew testcase that the raiseallocations pass should be able to handle.
Chris Lattner [Sun, 7 Dec 2003 01:25:36 +0000 (01:25 +0000)]
New testcase that the raiseallocations pass should be able to handle.

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

20 years ago* Finegrainify namespacification
Chris Lattner [Sun, 7 Dec 2003 01:24:23 +0000 (01:24 +0000)]
* Finegrainify namespacification
* Transform: free <ty>* (cast <ty2>* X to <ty>*) into free <ty2>* X

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

20 years agoThe recalclulate method was a nasty hack that was once used by the -cee pass,
Chris Lattner [Sun, 7 Dec 2003 00:55:32 +0000 (00:55 +0000)]
The recalclulate method was a nasty hack that was once used by the -cee pass,
which never worked itself.  The cee pass still doesn't work, but it doesn't use
this method anymore anyway, so eliminate the method.

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

20 years agoCompletely rewrite domset, idom, and domtree implementation. Now it is based
Chris Lattner [Sun, 7 Dec 2003 00:38:08 +0000 (00:38 +0000)]
Completely rewrite domset, idom, and domtree implementation.  Now it is based
on the algorithm for directly computing immediate dominators presented in this
paper:

  A Fast Algorithm for Finding Dominators in a Flowgraph
  T. Lengauer & R. Tarjan, ACM TOPLAS July 1979, pgs 121-141.

This _substantially_ speeds up construction of all dominator related information.
Post-dominators to follow.

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

20 years agoRewrite dominators implementation. Now domset is constructed from immdom,
Chris Lattner [Sun, 7 Dec 2003 00:36:16 +0000 (00:36 +0000)]
Rewrite dominators implementation.  Now domset is constructed from immdom,
instead of the other way around.

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

20 years agoFinegrainify namespacification
Chris Lattner [Sun, 7 Dec 2003 00:35:42 +0000 (00:35 +0000)]
Finegrainify namespacification
Move method out of generic dominators construction code

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

20 years agoMove this method out of the generic dominators calculation code
Chris Lattner [Sun, 7 Dec 2003 00:35:19 +0000 (00:35 +0000)]
Move this method out of the generic dominators calculation code

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