oota-llvm.git
19 years agosimplify and speed up some code
Chris Lattner [Sun, 6 Mar 2005 02:32:00 +0000 (02:32 +0000)]
simplify and speed up some code

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

19 years agosimplify some code.
Chris Lattner [Sun, 6 Mar 2005 02:28:23 +0000 (02:28 +0000)]
simplify some code.

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

19 years agonuke some dead methods.
Chris Lattner [Sun, 6 Mar 2005 02:25:02 +0000 (02:25 +0000)]
nuke some dead methods.

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

19 years agoThis fixes PR531, a crash when running the CBE on a bytecode file.
Chris Lattner [Sun, 6 Mar 2005 02:14:28 +0000 (02:14 +0000)]
This fixes PR531, a crash when running the CBE on a bytecode file.

The problem is that Function::renameLocalSymbols is iterating through
the symbol table planes, occasionally calling setName to rename a value
(which used to do a symbol table remove/insert pair).

The problem is that if there is only a single value in a particular type
plane that the remove will nuke the symbol table plane, and the insert
will create and insert a new one.  This hoses Function::renameLocalSymbols
because it has an iterator to the old plane, under the (very reasonable)
assumption that simply renaming a value won't cause the type plane to
disappear.

This patch fixes the bug by making the rename operation a single atomic
operation, which has a side effect of making the whole thing faster too. :)

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

19 years agoAdd a new method, allow symtab to poke name.
Chris Lattner [Sun, 6 Mar 2005 02:10:40 +0000 (02:10 +0000)]
Add a new method, allow symtab to poke name.

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

19 years agoReformat comments to fix 80 columns.
Jeff Cohen [Sat, 5 Mar 2005 22:45:40 +0000 (22:45 +0000)]
Reformat comments to fix 80 columns.

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

19 years agoReuse induction variables created for strength-reduced GEPs by other similar GEPs.
Jeff Cohen [Sat, 5 Mar 2005 22:40:34 +0000 (22:40 +0000)]
Reuse induction variables created for strength-reduced GEPs by other similar GEPs.

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

19 years agoremove extraneous spaces from argument lists.
Chris Lattner [Sat, 5 Mar 2005 19:58:40 +0000 (19:58 +0000)]
remove extraneous spaces from argument lists.

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

19 years agoremove all of the various setName implementations, consolidating them into
Chris Lattner [Sat, 5 Mar 2005 19:51:50 +0000 (19:51 +0000)]
remove all of the various setName implementations, consolidating them into
Value::setName, which is no longer virtual.

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

19 years agosecond argument to Value::setName is now gone.
Chris Lattner [Sat, 5 Mar 2005 19:05:20 +0000 (19:05 +0000)]
second argument to Value::setName is now gone.

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

19 years agoMake sure the two arguments of a setcc instruction point to the same node.
Chris Lattner [Sat, 5 Mar 2005 19:04:31 +0000 (19:04 +0000)]
Make sure the two arguments of a setcc instruction point to the same node.

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

19 years agozap
Chris Lattner [Sat, 5 Mar 2005 19:04:07 +0000 (19:04 +0000)]
zap

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

19 years ago2nd arg to setName goes away.
Chris Lattner [Sat, 5 Mar 2005 19:02:15 +0000 (19:02 +0000)]
2nd arg to setName goes away.

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

19 years agoConstants never get names.
Chris Lattner [Sat, 5 Mar 2005 19:01:59 +0000 (19:01 +0000)]
Constants never get names.

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

19 years agoRemove the 2nd argument to Value::setName
Chris Lattner [Sat, 5 Mar 2005 19:01:49 +0000 (19:01 +0000)]
Remove the 2nd argument to Value::setName

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

19 years agoRemove the second argument to Value::setName, it is never needed.
Chris Lattner [Sat, 5 Mar 2005 18:59:36 +0000 (18:59 +0000)]
Remove the second argument to Value::setName, it is never needed.

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

19 years agoNew testcase for PR533
Chris Lattner [Sat, 5 Mar 2005 18:47:28 +0000 (18:47 +0000)]
New testcase for PR533

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

19 years agodon't break the build on 32-bit hosts.
Chris Lattner [Sat, 5 Mar 2005 17:47:38 +0000 (17:47 +0000)]
don't break the build on 32-bit hosts.

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

19 years agoThis file is all commented out.
Chris Lattner [Sat, 5 Mar 2005 17:28:37 +0000 (17:28 +0000)]
This file is all commented out.

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

19 years agofix data size stuff for architectures with bit challenged data types
Andrew Lenharth [Sat, 5 Mar 2005 15:30:33 +0000 (15:30 +0000)]
fix data size stuff for architectures with bit challenged data types

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

19 years agoDo not compute 1ULL << 64, which is undefined. This fixes Ptrdist/ks on the
Chris Lattner [Fri, 4 Mar 2005 23:21:33 +0000 (23:21 +0000)]
Do not compute 1ULL << 64, which is undefined.  This fixes Ptrdist/ks on the
sparc, and testcase Regression/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll

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

19 years agoTestcase for a bug that caused us to miscompile ptrdist/ks on sparc.
Chris Lattner [Fri, 4 Mar 2005 23:20:46 +0000 (23:20 +0000)]
Testcase for a bug that caused us to miscompile ptrdist/ks on sparc.

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

19 years agofix up stack pointer adjustments
Andrew Lenharth [Fri, 4 Mar 2005 21:40:02 +0000 (21:40 +0000)]
fix up stack pointer adjustments

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

19 years agoTrivial cleanup patch
Chris Lattner [Fri, 4 Mar 2005 20:27:46 +0000 (20:27 +0000)]
Trivial cleanup patch

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

19 years agofix FCMOVxx typo, set rem and div to hardcode target reg to be the same as the one...
Andrew Lenharth [Fri, 4 Mar 2005 20:09:23 +0000 (20:09 +0000)]
fix FCMOVxx typo, set rem and div to hardcode target reg to be the same as the one the assembler uese, update ISel to put values in regs used by assembler for rem and div

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

19 years agoAdd support for not strength reducing GEPs where the element size is a small
Jeff Cohen [Fri, 4 Mar 2005 04:04:26 +0000 (04:04 +0000)]
Add support for not strength reducing GEPs where the element size is a small
power of two.  This emphatically includes the zeroeth power of two.

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

19 years agoturn on IEEE for compares
Andrew Lenharth [Thu, 3 Mar 2005 22:12:11 +0000 (22:12 +0000)]
turn on IEEE for compares

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

19 years agobeter Select on FP
Andrew Lenharth [Thu, 3 Mar 2005 21:47:53 +0000 (21:47 +0000)]
beter Select on FP

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

19 years agoPrint -X like this:
Chris Lattner [Thu, 3 Mar 2005 21:12:04 +0000 (21:12 +0000)]
Print -X like this:

double test(double l1_X) {
  return (-l1_X);
}

instead of like this:

double test(double l1_X) {
  return (-0x0p+0 - l1_X);
}

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

19 years agoLSR cleanup patch
Andrew Lenharth [Thu, 3 Mar 2005 19:03:21 +0000 (19:03 +0000)]
LSR cleanup patch

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

19 years agoDo not lower malloc's to pass "sizeof" expressions like this:
Chris Lattner [Thu, 3 Mar 2005 01:04:50 +0000 (01:04 +0000)]
Do not lower malloc's to pass "sizeof" expressions like this:

  ltmp_0_7 = malloc(((unsigned )(&(((signed char (*)[784])/*NULL*/0)[1u]))));

Instead, just emit the literal constant, like this:

  ltmp_0_7 = malloc(784u);

This works around a bug in ICC 8.1 compiling the CBE generated code.  :-(

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

19 years agoAdd an optional argument to lower to a specific constant value instead of
Chris Lattner [Thu, 3 Mar 2005 01:03:43 +0000 (01:03 +0000)]
Add an optional argument to lower to a specific constant value instead of
to a "sizeof" expression.

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

19 years agoAdd an argument.
Chris Lattner [Thu, 3 Mar 2005 01:03:10 +0000 (01:03 +0000)]
Add an argument.

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

19 years agoFix the spelling of the word `the'
Misha Brukman [Wed, 2 Mar 2005 23:17:31 +0000 (23:17 +0000)]
Fix the spelling of the word `the'

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

19 years agoPrint the module ID as a comment.
Chris Lattner [Wed, 2 Mar 2005 23:12:40 +0000 (23:12 +0000)]
Print the module ID as a comment.

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

19 years agocleanup the cfg after lsr
Chris Lattner [Wed, 2 Mar 2005 21:56:00 +0000 (21:56 +0000)]
cleanup the cfg after lsr

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

19 years agoremove 32 sign extend after 32 sextload and handle small negative constant
Andrew Lenharth [Wed, 2 Mar 2005 17:23:03 +0000 (17:23 +0000)]
remove 32 sign extend after 32 sextload and handle small negative constant

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

19 years agoAdded LSR as a beta pass for alpha
Andrew Lenharth [Wed, 2 Mar 2005 17:21:38 +0000 (17:21 +0000)]
Added LSR as a beta pass for alpha

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

19 years agoAdd a temporary option for llc-beta: -enable-lsr-for-ppc, which turns on
Chris Lattner [Wed, 2 Mar 2005 06:19:22 +0000 (06:19 +0000)]
Add a temporary option for llc-beta: -enable-lsr-for-ppc, which turns on
Loop Strength Reduction.

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

19 years agoBe slightly more accurate in an error message.
Reid Spencer [Wed, 2 Mar 2005 05:45:56 +0000 (05:45 +0000)]
Be slightly more accurate in an error message.

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

19 years agoFix a nasty order of evaluation bug that Gabor Greif ran into. Here's an
Chris Lattner [Wed, 2 Mar 2005 03:54:43 +0000 (03:54 +0000)]
Fix a nasty order of evaluation bug that Gabor Greif ran into.  Here's an
explanation from IRC:

|sabre| I think it's an order of evaluation thing
|sabre| for me, the RHS of the assignment is evaluated first
|sabre| getTypeDescription checks to see if ConcreteTypeDescription[Ty] contains anything
|sabre| since it doesn't, it computes and returns the value
|sabre| this gets put into the map.
|sabre| For you, the LHS is evaluated first.
|sabre| Map[Ty] (aka ConcreteTypeDescriptions[Ty]) inserts an empty string into the map, returning a reference
|sabre| getTypeDesc then sees the empty string in the map
|sabre| and returns it
|sabre| bork :)

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

19 years agoNow that type does not derive from Value, these do not need to be virtual.
Chris Lattner [Wed, 2 Mar 2005 03:43:55 +0000 (03:43 +0000)]
Now that type does not derive from Value, these do not need to be virtual.

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

19 years agoFix HTML-4.01 Strict compliance
Misha Brukman [Tue, 1 Mar 2005 17:19:21 +0000 (17:19 +0000)]
Fix HTML-4.01 Strict compliance

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

19 years agoUse a colon instead of a period since we're introducing a command list
Misha Brukman [Tue, 1 Mar 2005 17:15:23 +0000 (17:15 +0000)]
Use a colon instead of a period since we're introducing a command list

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

19 years agoCorrect a typo in Makefile.rules.
Reid Spencer [Tue, 1 Mar 2005 16:27:06 +0000 (16:27 +0000)]
Correct a typo in Makefile.rules.
Patch idea contributed by Vladimir Merzliakov.

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

19 years agoFixed the following LSR bugs:
Jeff Cohen [Tue, 1 Mar 2005 03:46:11 +0000 (03:46 +0000)]
Fixed the following LSR bugs:

  * Loop invariant code does not dominate the loop header, but rather
    the end of the loop preheader.

  * The base for a reduced GEP isn't a constant unless all of its
    operands (preceding the induction variable) are constant.

  * Allow induction variable elimination for the simple case after all.

Also made changes recommended by Chris for properly deleting
instructions.

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

19 years agoLower llvm.isunordered(a, b) into a != a | b != b.
Alkis Evlogimenos [Tue, 1 Mar 2005 02:07:58 +0000 (02:07 +0000)]
Lower llvm.isunordered(a, b) into a != a | b != b.

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

19 years agocleanup my miswording
Chris Lattner [Mon, 28 Feb 2005 19:47:14 +0000 (19:47 +0000)]
cleanup my miswording

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

19 years agoRemove tabs from file.
Chris Lattner [Mon, 28 Feb 2005 19:36:15 +0000 (19:36 +0000)]
Remove tabs from file.

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

19 years agoAdd a test for llvm.prefetch.
Chris Lattner [Mon, 28 Feb 2005 19:31:42 +0000 (19:31 +0000)]
Add a test for llvm.prefetch.

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

19 years agoAdd support to the C backend for llvm.prefetch. Patch contributed by
Chris Lattner [Mon, 28 Feb 2005 19:29:46 +0000 (19:29 +0000)]
Add support to the C backend for llvm.prefetch.  Patch contributed by
Justin Wick!

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

19 years agorecognize llvm.prefetch. Patch contributed by Justin Wick!
Chris Lattner [Mon, 28 Feb 2005 19:28:00 +0000 (19:28 +0000)]
recognize llvm.prefetch.  Patch contributed by Justin Wick!

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

19 years agoVerify llvm.prefetch.
Chris Lattner [Mon, 28 Feb 2005 19:27:42 +0000 (19:27 +0000)]
Verify llvm.prefetch.

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

19 years agoLower prefetch to a noop, patch contributed by Justin Wick!
Chris Lattner [Mon, 28 Feb 2005 19:27:23 +0000 (19:27 +0000)]
Lower prefetch to a noop, patch contributed by Justin Wick!

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

19 years agoAdd a prefetch intrinsic, patch contributed by Justin Wick!
Chris Lattner [Mon, 28 Feb 2005 19:25:57 +0000 (19:25 +0000)]
Add a prefetch intrinsic, patch contributed by Justin Wick!

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

19 years agoDocument llvm.prefetch, patch contributed by Justin Wick!
Chris Lattner [Mon, 28 Feb 2005 19:24:19 +0000 (19:24 +0000)]
Document llvm.prefetch, patch contributed by Justin Wick!

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

19 years agofix integer division and stuff
Andrew Lenharth [Mon, 28 Feb 2005 17:22:18 +0000 (17:22 +0000)]
fix integer division and stuff

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

19 years agoAdam Treat implemented this :)
Chris Lattner [Mon, 28 Feb 2005 16:52:28 +0000 (16:52 +0000)]
Adam Treat implemented this :)

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

19 years agoChanges to enable creation of native executables directly from gccld and to
Reid Spencer [Mon, 28 Feb 2005 08:45:35 +0000 (08:45 +0000)]
Changes to enable creation of native executables directly from gccld and to
ensure that -L paths don't contain both bytecode and native libraries.
This patch contributed by Adam Treat.

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

19 years agoA few small steps toward HTML 4.01 Strict compliance.
Reid Spencer [Mon, 28 Feb 2005 01:10:48 +0000 (01:10 +0000)]
A few small steps toward HTML 4.01 Strict compliance.

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

19 years agoAdd a little more detail about the configuration process for projects.
Reid Spencer [Mon, 28 Feb 2005 00:40:29 +0000 (00:40 +0000)]
Add a little more detail about the configuration process for projects.

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

19 years agoFix crash in LSR due to attempt to remove original induction variable. However,
Jeff Cohen [Mon, 28 Feb 2005 00:08:56 +0000 (00:08 +0000)]
Fix crash in LSR due to attempt to remove original induction variable.  However,
for reasons explained in the comments, I also deactivated this code as it needs
more thought.

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

19 years agoPHI nodes were incorrectly placed when more than one GEP is reduced in a loop.
Jeff Cohen [Sun, 27 Feb 2005 21:08:04 +0000 (21:08 +0000)]
PHI nodes were incorrectly placed when more than one GEP is reduced in a loop.

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

19 years agoFirst pass at improved Loop Strength Reduction. Still not yet ready for prime time.
Jeff Cohen [Sun, 27 Feb 2005 19:37:07 +0000 (19:37 +0000)]
First pass at improved Loop Strength Reduction.  Still not yet ready for prime time.

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

19 years agoBug fixed
Chris Lattner [Sun, 27 Feb 2005 19:31:02 +0000 (19:31 +0000)]
Bug fixed

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

19 years agoNew testcase for PR529
Chris Lattner [Sun, 27 Feb 2005 19:28:30 +0000 (19:28 +0000)]
New testcase for PR529

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

19 years agoFix this to create a recursive mutex. Patch by Evan Jones!
Chris Lattner [Sun, 27 Feb 2005 19:07:36 +0000 (19:07 +0000)]
Fix this to create a recursive mutex.  Patch by Evan Jones!

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

19 years agoUse const iterators where possible. Patch by Evan Jones!
Chris Lattner [Sun, 27 Feb 2005 19:06:10 +0000 (19:06 +0000)]
Use const iterators where possible.  Patch by Evan Jones!

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

19 years agoRename include guard, patch contributed by Evan Jones!
Chris Lattner [Sun, 27 Feb 2005 19:05:24 +0000 (19:05 +0000)]
Rename include guard, patch contributed by Evan Jones!

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

19 years agoTeach globalopt how memset/cpy/move affect memory, to allow better optimization.
Chris Lattner [Sun, 27 Feb 2005 18:58:52 +0000 (18:58 +0000)]
Teach globalopt how memset/cpy/move affect memory, to allow better optimization.

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

19 years agonew testcase globalopt should handle.
Chris Lattner [Sun, 27 Feb 2005 18:48:19 +0000 (18:48 +0000)]
new testcase globalopt should handle.

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

19 years agonew testcase globalopt should implement
Chris Lattner [Sun, 27 Feb 2005 18:47:17 +0000 (18:47 +0000)]
new testcase globalopt should implement

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

19 years agoTest that a global is marked constant when it can be.
Chris Lattner [Sun, 27 Feb 2005 18:19:26 +0000 (18:19 +0000)]
Test that a global is marked constant when it can be.

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

19 years agoAdd llc to tools.
Alkis Evlogimenos [Sun, 27 Feb 2005 10:21:37 +0000 (10:21 +0000)]
Add llc to tools.

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

19 years agoFix spelling, patch contributed by Gabor Greif!
Chris Lattner [Sun, 27 Feb 2005 06:18:25 +0000 (06:18 +0000)]
Fix spelling, patch contributed by Gabor Greif!

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

19 years agoFix spelling, patch contributed by Gabor Greif
Chris Lattner [Sun, 27 Feb 2005 06:15:51 +0000 (06:15 +0000)]
Fix spelling, patch contributed by Gabor Greif

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

19 years agoFix misspellings, patch contributed by Gabor Greif!
Chris Lattner [Sun, 27 Feb 2005 06:14:21 +0000 (06:14 +0000)]
Fix misspellings, patch contributed by Gabor Greif!

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

19 years agoRemove some stuff I checked in accidentally
Chris Lattner [Sun, 27 Feb 2005 04:32:35 +0000 (04:32 +0000)]
Remove some stuff I checked in accidentally

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

19 years agoDCE a dead function
Chris Lattner [Sat, 26 Feb 2005 23:36:45 +0000 (23:36 +0000)]
DCE a dead function

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

19 years agoImplement an isBytecodeArchive method to determine if an archive contains
Reid Spencer [Sat, 26 Feb 2005 22:00:32 +0000 (22:00 +0000)]
Implement an isBytecodeArchive method to determine if an archive contains
bytecode file members or not.
Patch Contributed By Adam Treat

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

19 years ago1 + 100 + 51 == 152, not 52.
Chris Lattner [Sat, 26 Feb 2005 18:50:19 +0000 (18:50 +0000)]
1 + 100 + 51 == 152, not 52.
If we fold three constants together (c1+c2+c3), make sure to keep
LHSC updated, instead of reusing (in this case), the 1 instead of the
partial sum.

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

19 years agoA testcase that we miscompile, noticed from the demo page.
Chris Lattner [Sat, 26 Feb 2005 18:49:04 +0000 (18:49 +0000)]
A testcase that we miscompile, noticed from the demo page.

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

19 years agoFix a case where we incorrectly returned hasComputableLoopEvolution for
Chris Lattner [Sat, 26 Feb 2005 18:40:02 +0000 (18:40 +0000)]
Fix a case where we incorrectly returned hasComputableLoopEvolution for
a ternary commutative expr.  Remove FIXME that does not need to be fixed
(can't happen).

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

19 years agoremove extraneous cast
Chris Lattner [Sat, 26 Feb 2005 18:33:28 +0000 (18:33 +0000)]
remove extraneous cast

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

19 years agomake BB labels be exported for debuging, add fp negation optimization, further pecimi...
Andrew Lenharth [Fri, 25 Feb 2005 22:55:15 +0000 (22:55 +0000)]
make BB labels be exported for debuging, add fp negation optimization, further pecimise the FP instructions

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

19 years agoadd an entry, add links to entries for demo page.
Chris Lattner [Fri, 25 Feb 2005 20:30:21 +0000 (20:30 +0000)]
add an entry, add links to entries for demo page.

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

19 years agoHandle null a bit more carefully.
Chris Lattner [Fri, 25 Feb 2005 01:27:48 +0000 (01:27 +0000)]
Handle null a bit more carefully.

Actually teach dsa about select instructions.  This doesn't affect the
graph in any way other than not setting a spurious U marker on pointer
nodes that are selected.

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

19 years agoUse DataInstall macro instead of INSTALL.
Reid Spencer [Thu, 24 Feb 2005 21:43:43 +0000 (21:43 +0000)]
Use DataInstall macro instead of INSTALL.

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

19 years agoRemove a -C I forgot to remove earlier.
Reid Spencer [Thu, 24 Feb 2005 21:41:26 +0000 (21:41 +0000)]
Remove a -C I forgot to remove earlier.

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

19 years agoDon't try to strip bytecode files!
Reid Spencer [Thu, 24 Feb 2005 21:36:32 +0000 (21:36 +0000)]
Don't try to strip bytecode files!

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

19 years agoThe install program doesn't know how to strip bytecode files so install
Reid Spencer [Thu, 24 Feb 2005 21:30:37 +0000 (21:30 +0000)]
The install program doesn't know how to strip bytecode files so install
bytecode as data, not program.

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

19 years agoFor PR528:
Reid Spencer [Thu, 24 Feb 2005 21:28:08 +0000 (21:28 +0000)]
For PR528:
Use the DataInstall and MKDIR macros instead of using $(INSTALL) directly

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

19 years agoThis instruction:
Chris Lattner [Thu, 24 Feb 2005 19:55:31 +0000 (19:55 +0000)]
This instruction:
  X = gep null, ...

Used to not create a scalar map entry for X, which caused clients to barf.
This is bad.

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

19 years agoAdjust to changes needed to more easily support projects via the new
Reid Spencer [Thu, 24 Feb 2005 19:05:19 +0000 (19:05 +0000)]
Adjust to changes needed to more easily support projects via the new
LLVM_CONFIG_PROJECT macro.

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

19 years agoUpdate to reflect various changes in the autoconf directory. THe
Reid Spencer [Thu, 24 Feb 2005 18:53:47 +0000 (18:53 +0000)]
Update to reflect various changes in the autoconf directory. THe
recommended configuration of projects is now much simplified and depends
on LLVM file presence rather than local project file presence.

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

19 years agoRemove auxilliary files that are now picked up from llvm/autoconf. This
Reid Spencer [Thu, 24 Feb 2005 18:52:22 +0000 (18:52 +0000)]
Remove auxilliary files that are now picked up from llvm/autoconf. This
avoids version conflict problems with ltmain.sh (libtool), mkinstalldirs
and install-sh. This prevents projects from becoming stale when the LLVM
build system is upgraded or modified.

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

19 years ago* Move all the "standard" configuration stuff to the start of the file
Reid Spencer [Thu, 24 Feb 2005 18:50:53 +0000 (18:50 +0000)]
* Move all the "standard" configuration stuff to the start of the file
* Make the auxilliary directory be llvm/autoconf not the project's
* Use the LLVM_CONFIG_PROJECT macro to get the --with-llvm{src,obj} args

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

19 years agoDon't put generated files into CVS.
Reid Spencer [Thu, 24 Feb 2005 18:49:37 +0000 (18:49 +0000)]
Don't put generated files into CVS.

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

19 years agoFix a bug introduced by revision 1.187 of this file.
Chris Lattner [Thu, 24 Feb 2005 18:48:07 +0000 (18:48 +0000)]
Fix a bug introduced by revision 1.187 of this file.

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

19 years ago* Fix an output message
Reid Spencer [Thu, 24 Feb 2005 18:42:34 +0000 (18:42 +0000)]
* Fix an output message
* Make aclocal look in LLVM's autoconf/m4 directory for macros
* Don't force generation of missing files

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