oota-llvm.git
19 years agoRevamp long/ulong comparisons to use a much more efficient sequence (thanks
Chris Lattner [Mon, 29 Nov 2004 05:55:24 +0000 (05:55 +0000)]
Revamp long/ulong comparisons to use a much more efficient sequence (thanks
to Brian and the Sun compiler for pointing out that the obvious works :)

This also enables folding all long comparisons into setcc and branch
instructions: before we could only do == and !=

For example, for:
void test(unsigned long long A, unsigned long long B) {
   if (A < B) foo();
 }

We now generate:

test:
        subl $4, %esp
        movl %esi, (%esp)
        movl 8(%esp), %eax
        movl 12(%esp), %ecx
        movl 16(%esp), %edx
        movl 20(%esp), %esi
        subl %edx, %eax
        sbbl %esi, %ecx
        jae .LBBtest_2  # UnifiedReturnBlock
.LBBtest_1:     # then
        call foo
        movl (%esp), %esi
        addl $4, %esp
        ret
.LBBtest_2:     # UnifiedReturnBlock
        movl (%esp), %esi
        addl $4, %esp
        ret

Instead of:

test:
        subl $12, %esp
        movl %esi, 8(%esp)
        movl %ebx, 4(%esp)
        movl 16(%esp), %eax
        movl 20(%esp), %ecx
        movl 24(%esp), %edx
        movl 28(%esp), %esi
        cmpl %edx, %eax
        setb %al
        cmpl %esi, %ecx
        setb %bl
        cmove %ax, %bx
        testb %bl, %bl
        je .LBBtest_2   # UnifiedReturnBlock
.LBBtest_1:     # then
        call foo
        movl 4(%esp), %ebx
        movl 8(%esp), %esi
        addl $12, %esp
        ret
.LBBtest_2:     # UnifiedReturnBlock
        movl 4(%esp), %ebx
        movl 8(%esp), %esi
        addl $12, %esp
        ret

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

19 years ago* Allow date command to be printed in verbose mode
Reid Spencer [Mon, 29 Nov 2004 05:00:33 +0000 (05:00 +0000)]
* Allow date command to be printed in verbose mode
* Get rid of appending -lbz2 and -lz to ExtraLibs now that we don't need
  them any more.
* Fix the dist-check target so that EXTRA_DIST can be defined AFTER the
  include of Makefile.common. This is needed because Makefile.common
  provides variable definitions that may need to be used in computing the
  value of EXTRA_DIST.
* Clean up some "distdir" target output.

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

19 years agoAdd "docs" as a descendable directory (at the end)
Reid Spencer [Mon, 29 Nov 2004 04:57:55 +0000 (04:57 +0000)]
Add "docs" as a descendable directory (at the end)

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

19 years ago* allow doxygen documentation to be enabled/disabled (default off)
Reid Spencer [Mon, 29 Nov 2004 04:56:35 +0000 (04:56 +0000)]
* allow doxygen documentation to be enabled/disabled (default off)
* organize programs we test for properly
* add new programs needed for documentation generation
* Adjust install paths so llvm stuff doesn't muck up /usr/local or /usr if
  $prefix is set to those.

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

19 years ago* Get additional configured values into the makefiles
Reid Spencer [Mon, 29 Nov 2004 04:53:50 +0000 (04:53 +0000)]
* Get additional configured values into the makefiles
* Provide support for ENABLE_DOXYGEN
* New tools that documentation generation requires

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

19 years agoMake the check a little quieter.
Reid Spencer [Mon, 29 Nov 2004 04:51:58 +0000 (04:51 +0000)]
Make the check a little quieter.

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

19 years ago* Make this makefile compliant with LLVM makefile standards
Reid Spencer [Mon, 29 Nov 2004 04:47:35 +0000 (04:47 +0000)]
* Make this makefile compliant with LLVM makefile standards
* Implement optional doxygen doc generation
* Implement HTML and doxygen installation

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

19 years agoMoved --> doxygen.cfg.in
Reid Spencer [Mon, 29 Nov 2004 04:46:12 +0000 (04:46 +0000)]
Moved --> doxygen.cfg.in

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

19 years agoReworked branching so we don't handle BAs specially. It just updates the branchTO...
Tanya Lattner [Mon, 29 Nov 2004 04:39:47 +0000 (04:39 +0000)]
Reworked branching so we don't handle BAs specially. It just updates the branchTO regardless of what type of branch it is.

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

19 years ago* Get rid of extraneous directories
Reid Spencer [Mon, 29 Nov 2004 04:34:05 +0000 (04:34 +0000)]
* Get rid of extraneous directories
* Ensure things installed to same place are all getting there by using a
  variable to name that place.
* Make sure missing index.html, images and *.css files get installed.

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

19 years ago* add llvmc and llvm-ld
Reid Spencer [Mon, 29 Nov 2004 04:32:37 +0000 (04:32 +0000)]
* add llvmc and llvm-ld
* fix the links to not be in an html subdir as that's not how this gets
  installed (anymore).

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

19 years agoAdjust this so that doxygen doesn't barf on it.
Reid Spencer [Mon, 29 Nov 2004 03:47:37 +0000 (03:47 +0000)]
Adjust this so that doxygen doesn't barf on it.

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

19 years ago* Adjust so this falls in line with LLVM Makefile standards.
Reid Spencer [Mon, 29 Nov 2004 03:45:02 +0000 (03:45 +0000)]
* Adjust so this falls in line with LLVM Makefile standards.
* Implement installation of doxygen and html documentation
* Fix it so it works with objdir != srcdir.

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

19 years ago* Fix an item list.
Reid Spencer [Mon, 29 Nov 2004 03:43:29 +0000 (03:43 +0000)]
* Fix an item list.
* Add an ENVIRONMENT section to describe LLVM_LIB_SEARCH_PATH

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

19 years agoAdd a link.
Reid Spencer [Mon, 29 Nov 2004 03:37:54 +0000 (03:37 +0000)]
Add a link.

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

19 years agoFor PR393:
Reid Spencer [Mon, 29 Nov 2004 03:33:22 +0000 (03:33 +0000)]
For PR393:
This file was originally doxygen.cfg, but it needs to be configured to get
the right srcdir/objdir paths for things. This is needed because building
the doxygen will now be part of the install and dist-check targets.

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

19 years agoFixed bug where instructions in the kernel were not ordered right to preserve depende...
Tanya Lattner [Sun, 28 Nov 2004 23:36:15 +0000 (23:36 +0000)]
Fixed bug where instructions in the kernel were not ordered right to preserve dependencies in a cycle.

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

19 years agoUpdate the test to match the optimization. The optimization can let some
Reid Spencer [Sun, 28 Nov 2004 21:36:52 +0000 (21:36 +0000)]
Update the test to match the optimization. The optimization can let some
casts through, but they will only be sbyte -> ubyte in this test case so
make sure we don't let any other kinds through.

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

19 years agoFix for PR454:
Reid Spencer [Sun, 28 Nov 2004 21:31:15 +0000 (21:31 +0000)]
Fix for PR454:
* Make sure we handle signed to unsigned conversion correctly
* Move this visitSetCondInst case to its own method.

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

19 years agoThe LLVM bool type shall have 1 byte alignment on PPC.
Chris Lattner [Sun, 28 Nov 2004 21:16:45 +0000 (21:16 +0000)]
The LLVM bool type shall have 1 byte alignment on PPC.

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

19 years agoMake DSE potentially more aggressive by being more specific about alloca sizes.
Chris Lattner [Sun, 28 Nov 2004 20:44:37 +0000 (20:44 +0000)]
Make DSE potentially more aggressive by being more specific about alloca sizes.

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

19 years agoFix DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll
Chris Lattner [Sun, 28 Nov 2004 20:30:15 +0000 (20:30 +0000)]
Fix DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll

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

19 years agoNew testcase. The store is not dead here.
Chris Lattner [Sun, 28 Nov 2004 19:54:02 +0000 (19:54 +0000)]
New testcase.  The store is not dead here.

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

19 years agoFix SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c, and hopefully
Chris Lattner [Sun, 28 Nov 2004 17:56:47 +0000 (17:56 +0000)]
Fix SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c, and hopefully
PR449

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

19 years agonew testcase for PR463
Chris Lattner [Sun, 28 Nov 2004 16:47:46 +0000 (16:47 +0000)]
new testcase for PR463

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

19 years agoFix PR463
Chris Lattner [Sun, 28 Nov 2004 16:45:45 +0000 (16:45 +0000)]
Fix PR463

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

19 years agoCorrect the RUN line to remove unneeded parameters and make sure the test
Reid Spencer [Sun, 28 Nov 2004 08:15:33 +0000 (08:15 +0000)]
Correct the RUN line to remove unneeded parameters and make sure the test
case is testing the right thing.

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

19 years agoTest case for PR454
Reid Spencer [Sun, 28 Nov 2004 04:29:29 +0000 (04:29 +0000)]
Test case for PR454

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

19 years agoCompute the firstFileOffset correctly after reading the LLVM symbol table.
Reid Spencer [Sun, 28 Nov 2004 03:13:02 +0000 (03:13 +0000)]
Compute the firstFileOffset correctly after reading the LLVM symbol table.

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

19 years agoBug fixed
Chris Lattner [Sun, 28 Nov 2004 01:25:20 +0000 (01:25 +0000)]
Bug fixed

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

19 years agoNew testcase for PR447
Chris Lattner [Sun, 28 Nov 2004 01:22:49 +0000 (01:22 +0000)]
New testcase for PR447

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

19 years agoBug fixed
Chris Lattner [Sun, 28 Nov 2004 00:43:59 +0000 (00:43 +0000)]
Bug fixed

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

19 years agoNew testcase for PR360
Chris Lattner [Sun, 28 Nov 2004 00:39:58 +0000 (00:39 +0000)]
New testcase for PR360

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

19 years agoBug fixed
Chris Lattner [Sun, 28 Nov 2004 00:09:38 +0000 (00:09 +0000)]
Bug fixed

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

19 years agoNew testcase for PR244
Chris Lattner [Sun, 28 Nov 2004 00:06:07 +0000 (00:06 +0000)]
New testcase for PR244

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

19 years agoBug fixed
Chris Lattner [Sat, 27 Nov 2004 23:27:26 +0000 (23:27 +0000)]
Bug fixed

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

19 years agoNew testcase for PR397
Chris Lattner [Sat, 27 Nov 2004 23:24:23 +0000 (23:24 +0000)]
New testcase for PR397

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

19 years agoBug fixed
Chris Lattner [Sat, 27 Nov 2004 22:47:08 +0000 (22:47 +0000)]
Bug fixed

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

19 years agonew testcase
Chris Lattner [Sat, 27 Nov 2004 22:43:51 +0000 (22:43 +0000)]
new testcase

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

19 years agoRemove a dead check at the end of the configure script that was a left over
Reid Spencer [Sat, 27 Nov 2004 22:01:43 +0000 (22:01 +0000)]
Remove a dead check at the end of the configure script that was a left over
from the bzip2 support. This dead check produced the error:
test: -ne: unary operator expected

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

19 years agoGet the cache variable name right.
Reid Spencer [Sat, 27 Nov 2004 21:59:57 +0000 (21:59 +0000)]
Get the cache variable name right.

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

19 years agoMove this to the QOI section
Chris Lattner [Sat, 27 Nov 2004 21:33:28 +0000 (21:33 +0000)]
Move this to the QOI section

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

19 years agoMention dj
Chris Lattner [Sat, 27 Nov 2004 21:29:43 +0000 (21:29 +0000)]
Mention dj

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

19 years agoBug fixed
Chris Lattner [Sat, 27 Nov 2004 20:34:25 +0000 (20:34 +0000)]
Bug fixed

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

19 years agoNew testcase
Chris Lattner [Sat, 27 Nov 2004 20:31:59 +0000 (20:31 +0000)]
New testcase

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

19 years agoPass in llvmgxx
Chris Lattner [Sat, 27 Nov 2004 20:31:14 +0000 (20:31 +0000)]
Pass in llvmgxx

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

19 years agoAdd notes
Chris Lattner [Sat, 27 Nov 2004 19:50:58 +0000 (19:50 +0000)]
Add notes

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

19 years agoNew testcase for PR424
Chris Lattner [Sat, 27 Nov 2004 19:44:07 +0000 (19:44 +0000)]
New testcase for PR424

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

19 years agoAdd some notes
Chris Lattner [Sat, 27 Nov 2004 19:24:06 +0000 (19:24 +0000)]
Add some notes

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

19 years agoAdd bzip2
Chris Lattner [Sat, 27 Nov 2004 19:20:23 +0000 (19:20 +0000)]
Add bzip2

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

19 years agoThese have been removed
Chris Lattner [Sat, 27 Nov 2004 19:19:44 +0000 (19:19 +0000)]
These have been removed

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

19 years agoRemove zlib from the llvm tarball. This is only used (in theory by povray-31
Chris Lattner [Sat, 27 Nov 2004 19:18:35 +0000 (19:18 +0000)]
Remove zlib from the llvm tarball.  This is only used (in theory by povray-31
which is part of llvm-test).  If anyone is interested in adding it to llvm-test,
feel free to go for it.

This is part of PR417

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

19 years agoRemove zlib from the llvm tarball. This is only used (in theory by povray-31
Chris Lattner [Sat, 27 Nov 2004 19:18:05 +0000 (19:18 +0000)]
Remove zlib from the llvm tarball.  This is only used (in theory by povray-31
which is part of llvm-test).  If anyone is interested in adding it to llvm-test,
feel free to go for it.

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

19 years agoWhen merging to alias sets, if they are both must alias, the result is not
Chris Lattner [Sat, 27 Nov 2004 18:37:42 +0000 (18:37 +0000)]
When merging to alias sets, if they are both must alias, the result is not
a must alias set unless all of the pointers in the resultant set are must
aliased together.

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

19 years agoChange interface to this method a bit
Chris Lattner [Sat, 27 Nov 2004 18:37:04 +0000 (18:37 +0000)]
Change interface to this method a bit

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

19 years agoImplement Regression/Transforms/InstCombine/getelementptr_cast.ll, which
Chris Lattner [Sat, 27 Nov 2004 17:55:46 +0000 (17:55 +0000)]
Implement Regression/Transforms/InstCombine/getelementptr_cast.ll, which
occurs many times in crafty

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

19 years agoNew testcase
Chris Lattner [Sat, 27 Nov 2004 17:55:20 +0000 (17:55 +0000)]
New testcase

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

19 years agoDon't depend on grep or sed to be portable at all. Just compare against
Reid Spencer [Sat, 27 Nov 2004 06:44:10 +0000 (06:44 +0000)]
Don't depend on grep or sed to be portable at all. Just compare against
static test files.

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

19 years agoPut the expected tables of contents of the test archives into separate
Reid Spencer [Sat, 27 Nov 2004 06:43:03 +0000 (06:43 +0000)]
Put the expected tables of contents of the test archives into separate
files so we don't have to process them at test time at all.

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

19 years agoUse grep instead of sed because on Solaris sed doesn't copy null bytes and
Reid Spencer [Sat, 27 Nov 2004 06:27:30 +0000 (06:27 +0000)]
Use grep instead of sed because on Solaris sed doesn't copy null bytes and
it needs to in order for the bug in MacOSX archives to be tested correctly.

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

19 years agoAccommodate the braindead Solaris "diff" that doesn't understand the -q
Reid Spencer [Sat, 27 Nov 2004 06:00:36 +0000 (06:00 +0000)]
Accommodate the braindead Solaris "diff" that doesn't understand the -q
option.

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

19 years agoRemove the ISel->AsmPrinter link via the TargetMachine that was put in
Nate Begeman [Sat, 27 Nov 2004 04:45:11 +0000 (04:45 +0000)]
Remove the ISel->AsmPrinter link via the TargetMachine that was put in
place to help bring up the PowerPC back end on Darwin.  This code is no
longer serves any purpose now that the AsmPrinter does the right thing
all the time printing GlobalValues.  --Cruft.

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

19 years agoAdd a new interface
Chris Lattner [Fri, 26 Nov 2004 21:36:25 +0000 (21:36 +0000)]
Add a new interface

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

19 years agoProvide size information when checking to see if we can LICM a load, this
Chris Lattner [Fri, 26 Nov 2004 21:20:09 +0000 (21:20 +0000)]
Provide size information when checking to see if we can LICM a load, this
allows us to hoist more loads in some cases.

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

19 years agoWhen evaluating an AA, pass in size info
Chris Lattner [Fri, 26 Nov 2004 21:05:39 +0000 (21:05 +0000)]
When evaluating an AA, pass in size info

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

19 years agoThere is no reason to store <x,x>, just store <x>.
Chris Lattner [Fri, 26 Nov 2004 20:25:17 +0000 (20:25 +0000)]
There is no reason to store <x,x>, just store <x>.

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

19 years agoThe trick with globals actually works with allocas and malloc too
Chris Lattner [Fri, 26 Nov 2004 20:01:48 +0000 (20:01 +0000)]
The trick with globals actually works with allocas and malloc too

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

19 years agoA store or load cannot alias a global if the accessed amount is larger then
Chris Lattner [Fri, 26 Nov 2004 19:20:01 +0000 (19:20 +0000)]
A store or load cannot alias a global if the accessed amount is larger then
the global.

This implements Regression/Analysis/BasicAA/global-size.ll

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

19 years agonew testcase basicaa should handle
Chris Lattner [Fri, 26 Nov 2004 19:19:28 +0000 (19:19 +0000)]
new testcase basicaa should handle

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

19 years agoIndicate that PR427 won't be fixed.
Reid Spencer [Thu, 25 Nov 2004 22:43:58 +0000 (22:43 +0000)]
Indicate that PR427 won't be fixed.

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

19 years ago* Add features I implemented this release.
Reid Spencer [Thu, 25 Nov 2004 22:38:30 +0000 (22:38 +0000)]
* Add features I implemented this release.
* Wrap long lines at 80 cols
* Indent lists so structure of document is a little more clear
* Make the page HTML 4.01 Strict compliant.

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

19 years agoAdd LLVMbzip2 library, now required.
Reid Spencer [Thu, 25 Nov 2004 20:22:06 +0000 (20:22 +0000)]
Add LLVMbzip2 library, now required.

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

19 years agoRemove HAVE_BZLIB and HAVE_BZIP2. We always have bzip2 now.
Reid Spencer [Thu, 25 Nov 2004 20:21:53 +0000 (20:21 +0000)]
Remove HAVE_BZLIB and HAVE_BZIP2. We always have bzip2 now.

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

19 years agoAlways pass -D_GNU_SOURCE to cc1plus
Reid Spencer [Thu, 25 Nov 2004 19:38:51 +0000 (19:38 +0000)]
Always pass -D_GNU_SOURCE to cc1plus

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

19 years agoAlways pass -D_GNU_SOURCE to cc1
Reid Spencer [Thu, 25 Nov 2004 19:38:39 +0000 (19:38 +0000)]
Always pass -D_GNU_SOURCE to cc1

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

19 years agoAdd bzip2 subdirectory
Reid Spencer [Thu, 25 Nov 2004 19:38:28 +0000 (19:38 +0000)]
Add bzip2 subdirectory

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

19 years agoRemove zlib support in favor of our own bzip2 library
Reid Spencer [Thu, 25 Nov 2004 19:38:16 +0000 (19:38 +0000)]
Remove zlib support in favor of our own bzip2 library

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

19 years agoAdjust to Compressor interface change
Reid Spencer [Thu, 25 Nov 2004 19:38:05 +0000 (19:38 +0000)]
Adjust to Compressor interface change

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

19 years agoRestrict the interface to not allow algorithm selection
Reid Spencer [Thu, 25 Nov 2004 19:37:42 +0000 (19:37 +0000)]
Restrict the interface to not allow algorithm selection

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

19 years agoAdd some instructions about ranlib'ing the CFE runtime libraries so that
Reid Spencer [Thu, 25 Nov 2004 17:13:17 +0000 (17:13 +0000)]
Add some instructions about ranlib'ing the CFE runtime libraries so that
they link faster. This should eventually be codified into the CFE's
makefile.

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

19 years agoRevise to LLVM makefile standards.
Reid Spencer [Thu, 25 Nov 2004 16:12:25 +0000 (16:12 +0000)]
Revise to LLVM makefile standards.

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

19 years agoInitial Version from bzip2 Release 1.0.2.
Reid Spencer [Thu, 25 Nov 2004 16:11:36 +0000 (16:11 +0000)]
Initial Version from bzip2 Release 1.0.2.

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

19 years agoCorrect the configuration variable used to find the bin directory.
Reid Spencer [Thu, 25 Nov 2004 09:36:28 +0000 (09:36 +0000)]
Correct the configuration variable used to find the bin directory.

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

19 years agoImplement dependent library linking. It is no longer required that -lstdc++
Reid Spencer [Thu, 25 Nov 2004 09:32:08 +0000 (09:32 +0000)]
Implement dependent library linking. It is no longer required that -lstdc++
-lstdsup++ no -lc be passed on the command line to llvm linkers if the
progam being linked was compiled with the C/C++ Front End or Stacker.

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

19 years agoRemove blank comment lines for uniformity.
Reid Spencer [Thu, 25 Nov 2004 09:29:44 +0000 (09:29 +0000)]
Remove blank comment lines for uniformity.
Make sure lines don't exceed 80 cols.

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

19 years agoAdd a convenience target to build all three modes: Debug, Release, Profile
Reid Spencer [Thu, 25 Nov 2004 09:08:54 +0000 (09:08 +0000)]
Add a convenience target to build all three modes: Debug, Release, Profile

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

19 years agoGack. Actually use the correct variable name in setting the JIT support.
Reid Spencer [Thu, 25 Nov 2004 07:28:19 +0000 (07:28 +0000)]
Gack. Actually use the correct variable name in setting the JIT support.

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

19 years agoEnable optimization suggested by Chris Lattner to not emit reloc stubs for
Nate Begeman [Thu, 25 Nov 2004 07:09:01 +0000 (07:09 +0000)]
Enable optimization suggested by Chris Lattner to not emit reloc stubs for
static global variables whose addresses are taken.  This allows us to
convert the following code for taking the address of a static function foo

        addis r2, r30, ha16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")
        lwz r3, lo16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")(r2)

which also includes linker stub code emitted at the end of the .s file not
shown here, and replace it with this:

        addis r2, r30, ha16(l1__2E_foo_2-"L00001$pb")
        la r3, lo16(l1__2E_foo_2-"L00001$pb")(r2)

which in addition to not needing linker help, also has no load instruction.
For those not up on PowerPC mnemonics, la is shorthand for add immediate.

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

19 years agoThe PPC backend is basically stable, and has a JIT now.
Chris Lattner [Thu, 25 Nov 2004 06:33:10 +0000 (06:33 +0000)]
The PPC backend is basically stable, and has a JIT now.

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

19 years agoBug fixed
Chris Lattner [Thu, 25 Nov 2004 06:31:42 +0000 (06:31 +0000)]
Bug fixed

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

19 years agoNew testcase for PR451
Chris Lattner [Thu, 25 Nov 2004 06:25:13 +0000 (06:25 +0000)]
New testcase for PR451

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

19 years agoFix the build on non ppc machines
Chris Lattner [Thu, 25 Nov 2004 06:14:45 +0000 (06:14 +0000)]
Fix the build on non ppc machines

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

19 years agoPR256 fixed.
Reid Spencer [Thu, 25 Nov 2004 06:07:42 +0000 (06:07 +0000)]
PR256 fixed.

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

19 years agoFix the lib/System/platform link by using proper cached variable name.
Reid Spencer [Thu, 25 Nov 2004 06:03:14 +0000 (06:03 +0000)]
Fix the lib/System/platform link by using proper cached variable name.

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

19 years agoFor PR256:
Reid Spencer [Thu, 25 Nov 2004 04:51:04 +0000 (04:51 +0000)]
For PR256:
* cache more values
* standardize cache value names
* organize configure script per autoconf recommendations (10 sections)
* Eliminate some redundancies and complexities in the script
* Provide better documentation in the script.

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

19 years agoCache the value of this test.
Reid Spencer [Thu, 25 Nov 2004 04:44:46 +0000 (04:44 +0000)]
Cache the value of this test.

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

19 years agoTidy up the indentation. Give the cache variable a proper name.
Reid Spencer [Thu, 25 Nov 2004 04:43:54 +0000 (04:43 +0000)]
Tidy up the indentation. Give the cache variable a proper name.

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

19 years agoEliminate duplicate "checking" message.
Reid Spencer [Thu, 25 Nov 2004 04:42:25 +0000 (04:42 +0000)]
Eliminate duplicate "checking" message.

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

19 years agoThe JIT works enough
Chris Lattner [Thu, 25 Nov 2004 04:14:54 +0000 (04:14 +0000)]
The JIT works enough

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

19 years agoFix encoding of fsel, fixing olden/power, McCat/bisort and several others.
Chris Lattner [Thu, 25 Nov 2004 04:11:07 +0000 (04:11 +0000)]
Fix encoding of fsel, fixing olden/power, McCat/bisort and several others.
All of Olden passes now! :)

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