oota-llvm.git
19 years agosimplify this function a bit, allow DS-AA to build on/improve the mod/ref
Chris Lattner [Thu, 17 Mar 2005 20:16:58 +0000 (20:16 +0000)]
simplify this function a bit, allow DS-AA to build on/improve the mod/ref
results returned by AA, not just use one or the other.

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

19 years agoClean up some code, handle null pointer specially to avoid an assertion
Chris Lattner [Thu, 17 Mar 2005 19:56:56 +0000 (19:56 +0000)]
Clean up some code, handle null pointer specially to avoid an assertion

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

19 years agoTwo changes:
Chris Lattner [Thu, 17 Mar 2005 19:56:18 +0000 (19:56 +0000)]
Two changes:
  1. Chain to the parent implementation of M/R analysis if we can't find
     any information.  It has some heuristics that often do well.
  2. Do not clear all flags, this can make invalid nodes by turning nodes
     that used to be collapsed into non-collapsed nodes (fixing crashes)

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

19 years agoclean up warnings when building in release mode
Duraid Madina [Thu, 17 Mar 2005 19:00:40 +0000 (19:00 +0000)]
clean up warnings when building in release mode

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

19 years agonow the angry bug reports have somewhere to go!
Duraid Madina [Thu, 17 Mar 2005 18:57:02 +0000 (18:57 +0000)]
now the angry bug reports have somewhere to go!

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

19 years agostatically link ia64 into llc
Chris Lattner [Thu, 17 Mar 2005 18:39:06 +0000 (18:39 +0000)]
statically link ia64 into llc

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

19 years agoOK, IA64 is statically linked into llc
Duraid Madina [Thu, 17 Mar 2005 18:37:05 +0000 (18:37 +0000)]
OK, IA64 is statically linked into llc

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

19 years agobuild the IA64 target as a .so for now
Duraid Madina [Thu, 17 Mar 2005 18:29:04 +0000 (18:29 +0000)]
build the IA64 target as a .so for now

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

19 years agodainty
Duraid Madina [Thu, 17 Mar 2005 18:23:22 +0000 (18:23 +0000)]
dainty

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

19 years agoand so it begins...
Duraid Madina [Thu, 17 Mar 2005 18:17:03 +0000 (18:17 +0000)]
and so it begins...

PHASE 1: write instruction selector
PHASE 2: ???
PHASE 3: profit!

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

19 years agoDon't emit two comparisons when comparing a FP value against zero!
Chris Lattner [Thu, 17 Mar 2005 16:29:26 +0000 (16:29 +0000)]
Don't emit two comparisons when comparing a FP value against zero!

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

19 years agospiff up the nightly tester output one more notch
Chris Lattner [Thu, 17 Mar 2005 16:07:45 +0000 (16:07 +0000)]
spiff up the nightly tester output one more notch

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

19 years agoFix the missing symbols problem Bill was hitting. Patch contributed by
Chris Lattner [Thu, 17 Mar 2005 15:38:16 +0000 (15:38 +0000)]
Fix the missing symbols problem Bill was hitting.  Patch contributed by
Bill Wendling!!

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

19 years agoDo not create ridiculously huge DSNodes, as described in the comments.
Chris Lattner [Thu, 17 Mar 2005 05:25:34 +0000 (05:25 +0000)]
Do not create ridiculously huge DSNodes, as described in the comments.
This speeds up the BU pass on 172.mgrid from 62.3 -> 0.1242s.

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

19 years agoFix a bug where we would consider " .99" and "1.0" different because of the
Chris Lattner [Thu, 17 Mar 2005 04:49:04 +0000 (04:49 +0000)]
Fix a bug where we would consider " .99" and "1.0" different because of the
leading whitespace.

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

19 years agoremove compat_iterator, which is dead in the tree.
Chris Lattner [Wed, 16 Mar 2005 22:42:45 +0000 (22:42 +0000)]
remove compat_iterator, which is dead in the tree.

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

19 years agoremove use of compat_iterator.
Chris Lattner [Wed, 16 Mar 2005 22:42:19 +0000 (22:42 +0000)]
remove use of compat_iterator.

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

19 years agoremove use of compat_iterator
Chris Lattner [Wed, 16 Mar 2005 22:42:01 +0000 (22:42 +0000)]
remove use of compat_iterator

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

19 years agoPrint out who commits and what files were modified at the bottom of the test summary...
Chris Lattner [Wed, 16 Mar 2005 17:09:53 +0000 (17:09 +0000)]
Print out who commits and what files were modified at the bottom of the test summary log sent to llvm-commits.

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

19 years agoDo #include HashExtras.h with VC++
Jeff Cohen [Wed, 16 Mar 2005 05:49:58 +0000 (05:49 +0000)]
Do #include HashExtras.h with VC++

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

19 years agoDon't provide default hash struct instantiation.
Jeff Cohen [Wed, 16 Mar 2005 05:49:06 +0000 (05:49 +0000)]
Don't provide default hash struct instantiation.

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

19 years agoConvert tabs to spaces
Misha Brukman [Wed, 16 Mar 2005 05:42:00 +0000 (05:42 +0000)]
Convert tabs to spaces

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

19 years agoAdd adapter class to let VC++ hash_map use GCC's hash struct.
Jeff Cohen [Wed, 16 Mar 2005 05:25:09 +0000 (05:25 +0000)]
Add adapter class to let VC++ hash_map use GCC's hash struct.

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

19 years agoRemove deleted files from VC++ project.
Jeff Cohen [Wed, 16 Mar 2005 05:09:59 +0000 (05:09 +0000)]
Remove deleted files from VC++ project.

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

19 years agoFix grammar wrt apostrophe's
Misha Brukman [Wed, 16 Mar 2005 03:54:50 +0000 (03:54 +0000)]
Fix grammar wrt apostrophe's

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

19 years agoConvert tabs to spaces
Misha Brukman [Wed, 16 Mar 2005 03:46:55 +0000 (03:46 +0000)]
Convert tabs to spaces

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

19 years agofix some 80 column violations
Chris Lattner [Tue, 15 Mar 2005 23:03:34 +0000 (23:03 +0000)]
fix some 80 column violations
Add support for programs that define main in a .a file, such as f2c'd programs.

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

19 years agoconsolidate LinkFiles into LinkItems, use lib_* iterators.
Chris Lattner [Tue, 15 Mar 2005 22:55:17 +0000 (22:55 +0000)]
consolidate LinkFiles into LinkItems, use lib_* iterators.

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

19 years agoconsolidate LinkLibraries into LinkItems
Chris Lattner [Tue, 15 Mar 2005 22:51:40 +0000 (22:51 +0000)]
consolidate LinkLibraries into LinkItems

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

19 years agomake sure to mark nodes in the globals graph incomplete after computing it
Chris Lattner [Tue, 15 Mar 2005 22:47:18 +0000 (22:47 +0000)]
make sure to mark nodes in the globals graph incomplete after computing it
so that external globals (and whatever they point to) are marked incomplete.

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

19 years agofix crashes when we only have a prototype for main.
Chris Lattner [Tue, 15 Mar 2005 22:10:04 +0000 (22:10 +0000)]
fix crashes when we only have a prototype for main.

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

19 years agoFix a crash that happens when mapping something like this:
Chris Lattner [Tue, 15 Mar 2005 21:36:50 +0000 (21:36 +0000)]
Fix a crash that happens when mapping something like this:

 { short, short }

to
  short

where the second short maps onto the second field of the first struct.  In
this case, the struct index is not aligned, so we should avoid calling
getLink(2), which asserts out.

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

19 years agosure, I can set a flag, but if I never check it, why bother setting it? Should fix...
Andrew Lenharth [Tue, 15 Mar 2005 19:51:19 +0000 (19:51 +0000)]
sure, I can set a flag, but if I never check it, why bother setting it?  Should fix 20 programs :)

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

19 years agoMake computeGGToGMapping compute an invnodemap
Chris Lattner [Tue, 15 Mar 2005 17:52:18 +0000 (17:52 +0000)]
Make computeGGToGMapping compute an invnodemap

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

19 years agoremove warning, make computeGGToGMapping return an invnodemap.
Chris Lattner [Tue, 15 Mar 2005 17:52:07 +0000 (17:52 +0000)]
remove warning, make computeGGToGMapping return an invnodemap.

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

19 years agoadd support for hashing nodehandles.
Chris Lattner [Tue, 15 Mar 2005 17:51:51 +0000 (17:51 +0000)]
add support for hashing nodehandles.

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

19 years agoFinally fix (the right way) the problem where functions like this:
Chris Lattner [Tue, 15 Mar 2005 17:14:09 +0000 (17:14 +0000)]
Finally fix (the right way) the problem where functions like this:

void foo() {
  G = 1;
}

would have an empty DSGraph even though G (a global) is directly used
in the function.

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

19 years agoStart using retnodes_* for iteration.
Chris Lattner [Tue, 15 Mar 2005 16:55:04 +0000 (16:55 +0000)]
Start using retnodes_* for iteration.

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

19 years agoadd iterators for return nodes list.
Chris Lattner [Tue, 15 Mar 2005 16:46:11 +0000 (16:46 +0000)]
add iterators for return nodes list.

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

19 years agomethod renamed
Chris Lattner [Tue, 15 Mar 2005 15:48:22 +0000 (15:48 +0000)]
method renamed

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

19 years agoReplace more a*'s with arg_*'s, thanks to Gabor Greif!
Chris Lattner [Tue, 15 Mar 2005 15:48:06 +0000 (15:48 +0000)]
Replace more a*'s with arg_*'s, thanks to Gabor Greif!

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

19 years agoadd missing copyright header
Chris Lattner [Tue, 15 Mar 2005 15:46:23 +0000 (15:46 +0000)]
add missing copyright header

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

19 years agoStop using abegin and aend.
Alkis Evlogimenos [Tue, 15 Mar 2005 07:20:55 +0000 (07:20 +0000)]
Stop using abegin and aend.

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

19 years agoStop using abegin.
Alkis Evlogimenos [Tue, 15 Mar 2005 07:12:30 +0000 (07:12 +0000)]
Stop using abegin.

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

19 years agoUse arg_iterator and arg_begin and arg_end functions.
Alkis Evlogimenos [Tue, 15 Mar 2005 07:02:26 +0000 (07:02 +0000)]
Use arg_iterator and arg_begin and arg_end functions.

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

19 years agoAdd EquivClassGraphs.cpp to VC++ project.
Jeff Cohen [Tue, 15 Mar 2005 06:31:46 +0000 (06:31 +0000)]
Add EquivClassGraphs.cpp to VC++ project.

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

19 years agoavoid varialbe name collisions
Chris Lattner [Tue, 15 Mar 2005 06:29:12 +0000 (06:29 +0000)]
avoid varialbe name collisions

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

19 years agoDo it right...
Jeff Cohen [Tue, 15 Mar 2005 06:21:40 +0000 (06:21 +0000)]
Do it right...

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

19 years agoFix VC++ breakage.
Jeff Cohen [Tue, 15 Mar 2005 06:15:08 +0000 (06:15 +0000)]
Fix VC++ breakage.

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

19 years agostop using method.
Chris Lattner [Tue, 15 Mar 2005 05:19:49 +0000 (05:19 +0000)]
stop using method.

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

19 years agomethods removed.
Chris Lattner [Tue, 15 Mar 2005 05:19:20 +0000 (05:19 +0000)]
methods removed.

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

19 years agoremove reverse BB iterators.
Chris Lattner [Tue, 15 Mar 2005 05:17:48 +0000 (05:17 +0000)]
remove reverse BB iterators.

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

19 years agoremove a whole bunch of dead methods. Noone should use reverse iterators anyway.
Chris Lattner [Tue, 15 Mar 2005 05:13:47 +0000 (05:13 +0000)]
remove a whole bunch of dead methods.  Noone should use reverse iterators anyway.

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

19 years agostop using arg_front
Chris Lattner [Tue, 15 Mar 2005 05:03:36 +0000 (05:03 +0000)]
stop using arg_front

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

19 years agostop using arg_back
Chris Lattner [Tue, 15 Mar 2005 04:59:17 +0000 (04:59 +0000)]
stop using arg_back

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

19 years agoThis mega patch converts us from using Function::a{iterator|begin|end} to
Chris Lattner [Tue, 15 Mar 2005 04:54:21 +0000 (04:54 +0000)]
This mega patch converts us from using Function::a{iterator|begin|end} to
using Function::arg_{iterator|begin|end}.  Likewise Module::g* -> Module::global_*.

This patch is contributed by Gabor Greif, thanks!

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

19 years agoswitch from a* to arg_* and g* to global_* for argument/global var iterators
Chris Lattner [Tue, 15 Mar 2005 04:48:32 +0000 (04:48 +0000)]
switch from a* to arg_* and g* to global_* for argument/global var iterators

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

19 years agoDon't crash if computing a mapping to a node with zero size
Chris Lattner [Tue, 15 Mar 2005 04:40:24 +0000 (04:40 +0000)]
Don't crash if computing a mapping to a node with zero size

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

19 years agorename method, add counterpart
Chris Lattner [Tue, 15 Mar 2005 00:58:16 +0000 (00:58 +0000)]
rename method, add counterpart

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

19 years agoRename method, add counterpart.
Chris Lattner [Tue, 15 Mar 2005 00:58:09 +0000 (00:58 +0000)]
Rename method, add counterpart.

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

19 years agoRemove the reverse iterators for arguments and global vars.
Chris Lattner [Mon, 14 Mar 2005 23:49:40 +0000 (23:49 +0000)]
Remove the reverse iterators for arguments and global vars.
Rename argument iterators arg_* instead of a*
Remove global variable iterators global_* instead of g*.

Keep the old names for temporary compatibility.

Patch contributed by Gabor Greif!

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

19 years agoFP 0.0 setcc optimization, and generate short branch sequence for setcc(FP) rather...
Andrew Lenharth [Mon, 14 Mar 2005 19:23:45 +0000 (19:23 +0000)]
FP 0.0 setcc optimization, and generate short branch sequence for setcc(FP) rather than stack usage

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

19 years agoadd a method to compute a commonly used mapping.
Chris Lattner [Mon, 14 Mar 2005 19:22:47 +0000 (19:22 +0000)]
add a method to compute a commonly used mapping.

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

19 years agoAdd a useful method.
Chris Lattner [Mon, 14 Mar 2005 19:22:33 +0000 (19:22 +0000)]
Add a useful method.

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

19 years agoregardless of whether or not the client things we should mark globals incomplete,
Chris Lattner [Sun, 13 Mar 2005 20:36:01 +0000 (20:36 +0000)]
regardless of whether or not the client things we should mark globals incomplete,
ALWAYS mark them incomplete if they are external!

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

19 years agoMake sure to remove incomplete markers before we add to them! :)
Chris Lattner [Sun, 13 Mar 2005 20:32:26 +0000 (20:32 +0000)]
Make sure to remove incomplete markers before we add to them! :)

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

19 years agoThe incoming arguments to main (the argv list) are not complete!
Chris Lattner [Sun, 13 Mar 2005 20:22:10 +0000 (20:22 +0000)]
The incoming arguments to main (the argv list) are not complete!

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

19 years agoAfter finishing BU analysis, move all global variables from the globals
Chris Lattner [Sun, 13 Mar 2005 20:15:06 +0000 (20:15 +0000)]
After finishing BU analysis, move all global variables from the globals
graph into main and mark them complete.

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

19 years agoADd support for printing eqgraphs.
Chris Lattner [Sun, 13 Mar 2005 19:51:24 +0000 (19:51 +0000)]
ADd support for printing eqgraphs.

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

19 years agoAdd support for printing EQ graphs
Chris Lattner [Sun, 13 Mar 2005 19:50:40 +0000 (19:50 +0000)]
Add support for printing EQ graphs

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

19 years agoReplace linear search with logrithmic one.
Chris Lattner [Sun, 13 Mar 2005 19:05:05 +0000 (19:05 +0000)]
Replace linear search with logrithmic one.

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

19 years agoadd a StructLayout::getElementContainingOffset method.
Chris Lattner [Sun, 13 Mar 2005 19:04:41 +0000 (19:04 +0000)]
add a StructLayout::getElementContainingOffset method.

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

19 years agoadd a helper method
Chris Lattner [Sun, 13 Mar 2005 19:04:04 +0000 (19:04 +0000)]
add a helper method

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

19 years agoShould fix mesa
Andrew Lenharth [Sun, 13 Mar 2005 00:43:20 +0000 (00:43 +0000)]
Should fix mesa

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

19 years agomake sure to mark nodes returned from functions as incomplete
Chris Lattner [Sat, 12 Mar 2005 14:58:28 +0000 (14:58 +0000)]
make sure to mark nodes returned from functions as incomplete

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

19 years agoremove this from the PA namespace, leaving it in the llvm ns
Chris Lattner [Sat, 12 Mar 2005 12:08:52 +0000 (12:08 +0000)]
remove this from the PA namespace, leaving it in the llvm ns

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

19 years agoMove this from the pool allocator project to here, where it logically belongs.
Chris Lattner [Sat, 12 Mar 2005 11:51:30 +0000 (11:51 +0000)]
Move this from the pool allocator project to here, where it logically belongs.

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

19 years agothis doesn't fail on the suns either!
Chris Lattner [Sat, 12 Mar 2005 03:43:38 +0000 (03:43 +0000)]
this doesn't fail on the suns either!

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

19 years agoMove link to GCC prefetch info here, since it's gone from Open Projects page
Misha Brukman [Fri, 11 Mar 2005 21:18:18 +0000 (21:18 +0000)]
Move link to GCC prefetch info here, since it's gone from Open Projects page

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

19 years agothis passes on darwin
Chris Lattner [Fri, 11 Mar 2005 21:18:00 +0000 (21:18 +0000)]
this passes on darwin

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

19 years agoFix computation of compiled objects, contributed by Vladimir Merzliakov!
Chris Lattner [Fri, 11 Mar 2005 20:17:04 +0000 (20:17 +0000)]
Fix computation of compiled objects, contributed by Vladimir Merzliakov!

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

19 years agoremove a pseudo instruction and improve inline constant generation
Andrew Lenharth [Fri, 11 Mar 2005 17:48:05 +0000 (17:48 +0000)]
remove a pseudo instruction and improve inline constant generation

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

19 years agoprefetch is now supported.
Chris Lattner [Fri, 11 Mar 2005 06:16:26 +0000 (06:16 +0000)]
prefetch is now supported.

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

19 years agonew testcase for __builtin_prefetch support.
Chris Lattner [Fri, 11 Mar 2005 06:14:23 +0000 (06:14 +0000)]
new testcase for __builtin_prefetch support.

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

19 years ago* Remove extraneous spaces
Misha Brukman [Fri, 11 Mar 2005 04:15:18 +0000 (04:15 +0000)]
* Remove extraneous spaces
* Convert some tabs to spaces

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

19 years agoAdd SelectionDAG library to PPC JIT so that lli will link when
Nate Begeman [Fri, 11 Mar 2005 03:58:53 +0000 (03:58 +0000)]
Add SelectionDAG library to PPC JIT so that lli will link when
PPC32ISelPattern.cpp is present.

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

19 years agoFix some crashes noted by John Mellor-Crummey's group.
Chris Lattner [Fri, 11 Mar 2005 00:00:56 +0000 (00:00 +0000)]
Fix some crashes noted by John Mellor-Crummey's group.

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

19 years agoSprinkle code examples and command-line interaction examples with some style
Misha Brukman [Fri, 11 Mar 2005 00:00:33 +0000 (00:00 +0000)]
Sprinkle code examples and command-line interaction examples with some style

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

19 years ago* Add directions to send output of nightly test script to llvm-testresults@cs
Misha Brukman [Thu, 10 Mar 2005 22:51:59 +0000 (22:51 +0000)]
* Add directions to send output of nightly test script to llvm-testresults@cs
* Use the doc_code class to nightly test script example
* Enclose file names in <tt> tags
* Achieve compliance with HTML-4.01 Strict

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

19 years agoI didn't mean to check this in. :(
Chris Lattner [Thu, 10 Mar 2005 20:59:51 +0000 (20:59 +0000)]
I didn't mean to check this in. :(

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

19 years agoFix a bug where we would incorrectly do a sign ext instead of a zero ext
Chris Lattner [Thu, 10 Mar 2005 20:55:51 +0000 (20:55 +0000)]
Fix a bug where we would incorrectly do a sign ext instead of a zero ext
because we were checking the wrong thing.  Thanks to andrew for pointing
this out!

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

19 years agoyay for camel_cvs diff
Andrew Lenharth [Thu, 10 Mar 2005 20:15:09 +0000 (20:15 +0000)]
yay for camel_cvs diff

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

19 years agosome typoes and .bss isn't liked, at all
Andrew Lenharth [Thu, 10 Mar 2005 19:02:02 +0000 (19:02 +0000)]
some typoes and .bss isn't liked, at all

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

19 years agoReplace tabs with spaces, separate function arguments with a space
Misha Brukman [Thu, 10 Mar 2005 16:32:33 +0000 (16:32 +0000)]
Replace tabs with spaces, separate function arguments with a space

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

19 years agoImprove formatting of the sent mail for the dj test results.
Chris Lattner [Thu, 10 Mar 2005 16:26:50 +0000 (16:26 +0000)]
Improve formatting of the sent mail for the dj test results.

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

19 years agoAllow the live interval analysis pass to be a bit more aggressive about
Chris Lattner [Wed, 9 Mar 2005 23:05:19 +0000 (23:05 +0000)]
Allow the live interval analysis pass to be a bit more aggressive about
numbering values in live ranges for physical registers.

The alpha backend currently generates code that looks like this:

  vreg = preg
...
  preg = vreg
  use preg
...
  preg = vreg
  use preg

etc.  Because vreg contains the value of preg coming in, each of the
copies back into preg contain that initial value as well.

In the case of the Alpha, this allows this testcase:

void "foo"(int %blah) {
        store int 5, int *%MyVar
        store int 12, int* %MyVar2
        ret void
}

to compile to:

foo:
        ldgp $29, 0($27)
        ldiq $0,5
        stl $0,MyVar
        ldiq $0,12
        stl $0,MyVar2
        ret $31,($26),1

instead of:

foo:
        ldgp $29, 0($27)
        bis $29,$29,$0
        ldiq $1,5
        bis $0,$0,$29
        stl $1,MyVar
        ldiq $1,12
        bis $0,$0,$29
        stl $1,MyVar2
        ret $31,($26),1

This does not seem to have any noticable effect on X86 code.

This fixes PR535.

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

19 years agominor correction for Register that isn't used
Andrew Lenharth [Wed, 9 Mar 2005 20:48:23 +0000 (20:48 +0000)]
minor correction for Register that isn't used

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

19 years agoconstant fold FP_ROUND_INREG, ZERO_EXTEND_INREG, and SIGN_EXTEND_INREG
Chris Lattner [Wed, 9 Mar 2005 18:37:12 +0000 (18:37 +0000)]
constant fold FP_ROUND_INREG, ZERO_EXTEND_INREG, and SIGN_EXTEND_INREG

This allows the alpha backend to compile:

bool %test(uint %P) {
        %c = seteq uint %P, 0
        ret bool %c
}

into:

test:
        ldgp $29, 0($27)
        ZAP $16,240,$0
        CMPEQ $0,0,$0
        AND $0,1,$0
        ret $31,($26),1

instead of:

test:
        ldgp $29, 0($27)
        ZAP $16,240,$0
        ldiq $1,0
        ZAP $1,240,$1
        CMPEQ $0,$1,$0
        AND $0,1,$0
        ret $31,($26),1

... and fixes PR534.

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

19 years agocorrect the computation of the isAbstract bit for types.
Chris Lattner [Wed, 9 Mar 2005 17:34:27 +0000 (17:34 +0000)]
correct the computation of the isAbstract bit for types.

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

19 years agoFix Regression/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll, a miscompilation
Chris Lattner [Wed, 9 Mar 2005 16:29:52 +0000 (16:29 +0000)]
Fix Regression/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll, a miscompilation
that Alkis found with Java, thanks Alkis!

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