oota-llvm.git
19 years agoEliminate the explicit opcode field in ConstantExpr, using the SubclassData
Chris Lattner [Sat, 5 Feb 2005 02:00:12 +0000 (02:00 +0000)]
Eliminate the explicit opcode field in ConstantExpr, using the SubclassData
field to hold it instead.  This shrinks memory usage for 176.gcc from
57628728 to 57598144 bytes, a small reduction of about 30K.

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

19 years agoEliminate the explicit volatile fields in LoadInst and StoreInst. This shrinks
Chris Lattner [Sat, 5 Feb 2005 01:44:18 +0000 (01:44 +0000)]
Eliminate the explicit volatile fields in LoadInst and StoreInst.  This shrinks
LoadInst from 60 -> 56 bytes and StoreInst from 76 -> 72 bytes.

Note however, that this doesn't actually save any memory on common systems
where 'malloc' returns 8-byte aligned memory, as the saved space is replaced
by useless alignment padding.  :(

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

19 years agoInstead of initializing the volatile field, use accessors to set it.
Chris Lattner [Sat, 5 Feb 2005 01:38:38 +0000 (01:38 +0000)]
Instead of initializing the volatile field, use accessors to set it.

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

19 years agoInitialize new field.
Chris Lattner [Sat, 5 Feb 2005 01:37:58 +0000 (01:37 +0000)]
Initialize new field.

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

19 years agoSubclassID is really a small field. Split it into half and let subclasses
Chris Lattner [Sat, 5 Feb 2005 01:37:44 +0000 (01:37 +0000)]
SubclassID is really a small field.  Split it into half and let subclasses
play with the unused part.

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

19 years agoAdd support for .cc and .hpp files. Patch contributed by Vladimir Merzliakov!
Chris Lattner [Fri, 4 Feb 2005 21:28:50 +0000 (21:28 +0000)]
Add support for .cc and .hpp files.  Patch contributed by Vladimir Merzliakov!

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

19 years agoMake file header comment consistent: extend the whole 80 cols to fill the line
Misha Brukman [Fri, 4 Feb 2005 20:25:52 +0000 (20:25 +0000)]
Make file header comment consistent: extend the whole 80 cols to fill the line

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

19 years agoIf we have an indirect call site that calls N functions, inline the N functions
Chris Lattner [Fri, 4 Feb 2005 19:59:49 +0000 (19:59 +0000)]
If we have an indirect call site that calls N functions, inline the N functions
into a temporary graph, remember it for later, then inline the tmp graph into
the call site.

In the case where there are other call sites to the same set of functions, this
permits us to just inline the temporary graph instead of all of the callees.

This turns N*M inlining situations into an N+M inlining situation.

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

19 years agoSplit mergeInGraph into two methods.
Chris Lattner [Fri, 4 Feb 2005 19:58:28 +0000 (19:58 +0000)]
Split mergeInGraph into two methods.

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

19 years agoAdd some new members
Chris Lattner [Fri, 4 Feb 2005 19:58:06 +0000 (19:58 +0000)]
Add some new members

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

19 years agoadd new member
Chris Lattner [Fri, 4 Feb 2005 19:57:57 +0000 (19:57 +0000)]
add new member

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

19 years agoFix the Regression/Transforms/DSAnalysis/recursion.ll regression.
Chris Lattner [Fri, 4 Feb 2005 18:58:04 +0000 (18:58 +0000)]
Fix the Regression/Transforms/DSAnalysis/recursion.ll regression.

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

19 years agoFix a case where were incorrectly compiled cast from short to int on 64-bit
Chris Lattner [Fri, 4 Feb 2005 18:39:19 +0000 (18:39 +0000)]
Fix a case where were incorrectly compiled cast from short to int on 64-bit
targets.

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

19 years agoalignment
Andrew Lenharth [Fri, 4 Feb 2005 14:09:38 +0000 (14:09 +0000)]
alignment

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

19 years agoget alignment printing correctly and get rid of __main hack
Andrew Lenharth [Fri, 4 Feb 2005 14:01:21 +0000 (14:01 +0000)]
get alignment printing correctly and get rid of __main hack

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

19 years agofix constant pointer outputing on 64 bit machines
Andrew Lenharth [Fri, 4 Feb 2005 13:47:16 +0000 (13:47 +0000)]
fix constant pointer outputing on 64 bit machines

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

19 years ago* Fix broken link to directions to get llvm, llvm-gcc, and llvm-test from CVS
Misha Brukman [Thu, 3 Feb 2005 22:25:23 +0000 (22:25 +0000)]
* Fix broken link to directions to get llvm, llvm-gcc, and llvm-test from CVS
* Remove duplicated CVS directions and refer reader to the CVS section
* Clean up directions to be brief

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

19 years agoFP fixes
Andrew Lenharth [Thu, 3 Feb 2005 21:01:15 +0000 (21:01 +0000)]
FP fixes

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

19 years agoRefactor getFunctionArgumentsForCall out of mergeInGraph.
Chris Lattner [Thu, 3 Feb 2005 18:40:25 +0000 (18:40 +0000)]
Refactor getFunctionArgumentsForCall out of mergeInGraph.

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

19 years agoAdd a new method.
Chris Lattner [Thu, 3 Feb 2005 18:40:05 +0000 (18:40 +0000)]
Add a new method.

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

19 years ago* Clearly mark LLVM_LIB_SEARCH_PATH as being optional
Misha Brukman [Thu, 3 Feb 2005 18:28:08 +0000 (18:28 +0000)]
* Clearly mark LLVM_LIB_SEARCH_PATH as being optional
* llvmgcc and llvmg++ aliases are no longer needed (binaries have llvm- prefix)

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

19 years agoThis is no longer needed. Global variables with undef initializers can be
Chris Lattner [Wed, 2 Feb 2005 20:50:50 +0000 (20:50 +0000)]
This is no longer needed.  Global variables with undef initializers can be
initialized to anything, including garbage.

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

19 years ago* Instead of fixing the version numbers before every release, mark them as x.y
Misha Brukman [Wed, 2 Feb 2005 18:01:57 +0000 (18:01 +0000)]
* Instead of fixing the version numbers before every release, mark them as x.y
* Eliminate the redundant "This is the..." in released file listing
* Fix grammar

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

19 years agoStore fix
Andrew Lenharth [Wed, 2 Feb 2005 17:32:39 +0000 (17:32 +0000)]
Store fix

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

19 years agooops
Andrew Lenharth [Wed, 2 Feb 2005 17:01:31 +0000 (17:01 +0000)]
oops

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

19 years agoprevent register allocator from using the stack pointer :)
Andrew Lenharth [Wed, 2 Feb 2005 17:00:21 +0000 (17:00 +0000)]
prevent register allocator from using the stack pointer :)

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

19 years agofix loading of floats
Andrew Lenharth [Wed, 2 Feb 2005 15:05:33 +0000 (15:05 +0000)]
fix loading of floats

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

19 years agoPut libraries in a common directory
Jeff Cohen [Wed, 2 Feb 2005 06:33:11 +0000 (06:33 +0000)]
Put libraries in a common directory

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

19 years agomarked mem* as not supported
Andrew Lenharth [Wed, 2 Feb 2005 05:49:42 +0000 (05:49 +0000)]
marked mem* as not supported

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

19 years agoAdd additional source of Win32 GNU utilities.
Jeff Cohen [Wed, 2 Feb 2005 05:46:20 +0000 (05:46 +0000)]
Add additional source of Win32 GNU utilities.

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

19 years agoFix crash on MallocInsts of unsized types.
Alkis Evlogimenos [Wed, 2 Feb 2005 04:43:37 +0000 (04:43 +0000)]
Fix crash on MallocInsts of unsized types.

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

19 years agofix Load bug
Andrew Lenharth [Wed, 2 Feb 2005 04:35:44 +0000 (04:35 +0000)]
fix Load bug

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

19 years agoFix yet another memset issue.
Chris Lattner [Wed, 2 Feb 2005 03:44:41 +0000 (03:44 +0000)]
Fix yet another memset issue.

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

19 years agotry to make a bug bugpointable, add yet more constant pool stuff, fixup constant...
Andrew Lenharth [Wed, 2 Feb 2005 03:36:35 +0000 (03:36 +0000)]
try to make a bug bugpointable, add yet more constant pool stuff, fixup constant loads for FP

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

19 years agobetter constant handling, should fix many remaining cases
Andrew Lenharth [Wed, 2 Feb 2005 00:51:15 +0000 (00:51 +0000)]
better constant handling, should fix many remaining cases

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

19 years agoAdd variable for bugpoint.
Alkis Evlogimenos [Wed, 2 Feb 2005 00:40:15 +0000 (00:40 +0000)]
Add variable for bugpoint.

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

19 years agoEliminate some duplicated debug code
Chris Lattner [Tue, 1 Feb 2005 21:55:40 +0000 (21:55 +0000)]
Eliminate some duplicated debug code

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

19 years agoEliminate self-recursion as a special case.
Chris Lattner [Tue, 1 Feb 2005 21:49:43 +0000 (21:49 +0000)]
Eliminate self-recursion as a special case.

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

19 years agoEliminate use of DSCallSiteIterator in key loop. This is a half step to
Chris Lattner [Tue, 1 Feb 2005 21:37:27 +0000 (21:37 +0000)]
Eliminate use of DSCallSiteIterator in key loop.  This is a half step to
a tasty speedup.

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

19 years agoremove dead method
Chris Lattner [Tue, 1 Feb 2005 21:37:06 +0000 (21:37 +0000)]
remove dead method

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

19 years agofix FP arg passing bug, Add unsigned to/from int, fix SELECT, fix Constant pool
Andrew Lenharth [Tue, 1 Feb 2005 20:40:27 +0000 (20:40 +0000)]
fix FP arg passing bug, Add unsigned to/from int, fix SELECT, fix Constant pool

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

19 years agoPrint the Constant pool
Andrew Lenharth [Tue, 1 Feb 2005 20:38:53 +0000 (20:38 +0000)]
Print the Constant pool

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

19 years agoMake cmov work right and loads for fp from constant pool
Andrew Lenharth [Tue, 1 Feb 2005 20:36:44 +0000 (20:36 +0000)]
Make cmov work right and loads for fp from constant pool

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

19 years agoCorrect stack stuff for FP
Andrew Lenharth [Tue, 1 Feb 2005 20:35:57 +0000 (20:35 +0000)]
Correct stack stuff for FP

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

19 years agotry to match alpha pattern
Andrew Lenharth [Tue, 1 Feb 2005 20:35:11 +0000 (20:35 +0000)]
try to match alpha pattern

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

19 years agofix register names
Andrew Lenharth [Tue, 1 Feb 2005 20:34:29 +0000 (20:34 +0000)]
fix register names

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

19 years agoSignficantly speed up printing by not emitting the same file twice with
Chris Lattner [Tue, 1 Feb 2005 19:10:48 +0000 (19:10 +0000)]
Signficantly speed up printing by not emitting the same file twice with
different names.  Large SCC's tend to be big, so this saves a lot of time.

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

19 years agoFix some bugs andrew noticed legalizing memset for alpha
Chris Lattner [Tue, 1 Feb 2005 18:38:28 +0000 (18:38 +0000)]
Fix some bugs andrew noticed legalizing memset for alpha

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

19 years agoDo not revisit nodes in the SCC traversal. This speeds up the BU pass a bit.
Chris Lattner [Tue, 1 Feb 2005 17:35:52 +0000 (17:35 +0000)]
Do not revisit nodes in the SCC traversal.  This speeds up the BU pass a bit.

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

19 years agoPut finishing touches on GettingStartedVS.html and link it to the index.
Jeff Cohen [Tue, 1 Feb 2005 15:59:28 +0000 (15:59 +0000)]
Put finishing touches on GettingStartedVS.html and link it to the index.

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

19 years agoFix test/Regression/Assembler/2005-01-31-CallingAggregateFunction.ll
Chris Lattner [Tue, 1 Feb 2005 01:47:42 +0000 (01:47 +0000)]
Fix test/Regression/Assembler/2005-01-31-CallingAggregateFunction.ll

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

19 years agoApparently := confuses makellvm
Chris Lattner [Tue, 1 Feb 2005 01:47:12 +0000 (01:47 +0000)]
Apparently := confuses makellvm

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

19 years agoThis bug crashes the assembler, distilled from a testcase produced by Andrew.
Chris Lattner [Tue, 1 Feb 2005 01:44:54 +0000 (01:44 +0000)]
This bug crashes the assembler, distilled from a testcase produced by Andrew.

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

19 years agopecimise loads, put indirect call addr in right register. still doesn't fix methcall
Andrew Lenharth [Tue, 1 Feb 2005 01:37:24 +0000 (01:37 +0000)]
pecimise loads, put indirect call addr in right register.  still doesn't fix methcall

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

19 years agoUpdate speedup and shrinkage info
Chris Lattner [Tue, 1 Feb 2005 01:33:52 +0000 (01:33 +0000)]
Update speedup and shrinkage info

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

19 years agoUpdates for new use list changes.
Chris Lattner [Tue, 1 Feb 2005 01:24:21 +0000 (01:24 +0000)]
Updates for new use list changes.

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

19 years agoUpdate for API change.
Chris Lattner [Tue, 1 Feb 2005 01:24:01 +0000 (01:24 +0000)]
Update for API change.

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

19 years agoAPI change.
Chris Lattner [Tue, 1 Feb 2005 01:23:49 +0000 (01:23 +0000)]
API change.

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

19 years agoAdjust to changes in APIs
Chris Lattner [Tue, 1 Feb 2005 01:23:31 +0000 (01:23 +0000)]
Adjust to changes in APIs

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

19 years agoHacks to make this ugly ugly code work with the new use lists.
Chris Lattner [Tue, 1 Feb 2005 01:22:56 +0000 (01:22 +0000)]
Hacks to make this ugly ugly code work with the new use lists.

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

19 years agoSwitch from using an ilist for uses to using a custom doubly linked list.
Chris Lattner [Tue, 1 Feb 2005 01:22:06 +0000 (01:22 +0000)]
Switch from using an ilist for uses to using a custom doubly linked list.
This list does not provide the ability to go backwards in the list (its
more of an unordered collection, stored in the shape of a list).

This change means that use iterators are now only forward iterators, not
bidirectional.

This improves the memory usage of use lists from '5 + 4*#use' per value to
'1 + 4*#use'.  While it would be better to reduce the multiplied factor,
I'm not smart enough to do so.  This list also has slightly more efficient
operators for manipulating list nodes (a few less loads/stores), due to not
needing to be able to iterate backwards through the list.

This change reduces the memory footprint required to hold 176.gcc from
66.025M -> 57.687M, a 14% reduction.  It also speeds up the compiler,
7.73% in the case of bytecode loading alone (release build loading 176.gcc).

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

19 years agoFix a problem where we could infinitely recurse on phi nodes.
Chris Lattner [Tue, 1 Feb 2005 00:18:30 +0000 (00:18 +0000)]
Fix a problem where we could infinitely recurse on phi nodes.

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

19 years agoFix hyphenation in output comment
Misha Brukman [Mon, 31 Jan 2005 06:19:57 +0000 (06:19 +0000)]
Fix hyphenation in output comment

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

19 years agoImplement InstCombine/cast.ll:test25, a case that occurs many times
Chris Lattner [Mon, 31 Jan 2005 05:51:45 +0000 (05:51 +0000)]
Implement InstCombine/cast.ll:test25, a case that occurs many times
in spec

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

19 years agoNew testcase
Chris Lattner [Mon, 31 Jan 2005 05:51:18 +0000 (05:51 +0000)]
New testcase

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

19 years agoAdd LLVM with Visual Studio overview
Jeff Cohen [Mon, 31 Jan 2005 05:42:10 +0000 (05:42 +0000)]
Add LLVM with Visual Studio overview

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

19 years agoImplement the trivial cases in InstCombine/store.ll
Chris Lattner [Mon, 31 Jan 2005 05:36:43 +0000 (05:36 +0000)]
Implement the trivial cases in InstCombine/store.ll

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

19 years agoNew testcase
Chris Lattner [Mon, 31 Jan 2005 05:36:19 +0000 (05:36 +0000)]
New testcase

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

19 years agoRename these to start with %c, as they are the only ones that are checked.
Chris Lattner [Mon, 31 Jan 2005 05:17:31 +0000 (05:17 +0000)]
Rename these to start with %c, as they are the only ones that are checked.
No change to the tests themselves.

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

19 years agoImplement Transforms/InstCombine/cast-load-gep.ll, which allows us to devirtualize
Chris Lattner [Mon, 31 Jan 2005 04:50:46 +0000 (04:50 +0000)]
Implement Transforms/InstCombine/cast-load-gep.ll, which allows us to devirtualize
11 indirect calls in perlbmk.

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

19 years agoNew testcase
Chris Lattner [Mon, 31 Jan 2005 04:49:22 +0000 (04:49 +0000)]
New testcase

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

19 years agoindirect call fix
Andrew Lenharth [Mon, 31 Jan 2005 03:19:31 +0000 (03:19 +0000)]
indirect call fix

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

19 years agofp to int and back conversion sequences
Andrew Lenharth [Mon, 31 Jan 2005 01:44:26 +0000 (01:44 +0000)]
fp to int and back conversion sequences

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

19 years agoFix the regressions my User changes introduced. Apparently some parts of
Chris Lattner [Mon, 31 Jan 2005 01:11:13 +0000 (01:11 +0000)]
Fix the regressions my User changes introduced.  Apparently some parts of
LLVM make the very reasonable assumption that constant expressions will
have at least one operand! :)

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

19 years agoRename variables to work with VC++'s hokey scoping rules.
Chris Lattner [Mon, 31 Jan 2005 00:10:58 +0000 (00:10 +0000)]
Rename variables to work with VC++'s hokey scoping rules.

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

19 years agoFix some scary bugs that VC++ detected.
Chris Lattner [Mon, 31 Jan 2005 00:10:45 +0000 (00:10 +0000)]
Fix some scary bugs that VC++ detected.

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

19 years agoMake things more const-correct, adjust to changes in DSA interfaces.
Chris Lattner [Sun, 30 Jan 2005 23:51:25 +0000 (23:51 +0000)]
Make things more const-correct, adjust to changes in DSA interfaces.

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

19 years ago* Make some methods more const correct.
Chris Lattner [Sun, 30 Jan 2005 23:51:02 +0000 (23:51 +0000)]
* Make some methods more const correct.
* Change the FunctionCalls and AuxFunctionCalls vectors into std::lists.
  This makes many operations on these lists much more natural, and avoids
  *exteremely* expensive copying of DSCallSites (e.g. moving nodes around
  between lists, erasing a node from not the end of the vector, etc).

With a profile build of analyze, this speeds up BU DS from 25.14s to
12.59s on 176.gcc.  I expect that it would help TD even more, but I don't
have data for it.

This effectively eliminates removeIdenticalCalls and children from the
profile, going from 6.53 to 0.27s.

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

19 years agoadded fp extend and removed a forgotten assert in more than 6 arg support (should...
Andrew Lenharth [Sun, 30 Jan 2005 20:42:36 +0000 (20:42 +0000)]
added fp extend and removed a forgotten assert in more than 6 arg support (should break somewhere else now :) ) and fix an incorrect asm sequence for indirect calls

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

19 years agoSilence VC++ warnings about using 'this' in base member initializations.
Jeff Cohen [Sun, 30 Jan 2005 17:54:12 +0000 (17:54 +0000)]
Silence VC++ warnings about using 'this' in base member initializations.

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

19 years agoThis code is really unreachable.
Chris Lattner [Sun, 30 Jan 2005 16:33:46 +0000 (16:33 +0000)]
This code is really unreachable.

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

19 years agoFix warnings.
Chris Lattner [Sun, 30 Jan 2005 16:32:48 +0000 (16:32 +0000)]
Fix warnings.

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

19 years agosupport for larger calls
Andrew Lenharth [Sun, 30 Jan 2005 00:35:27 +0000 (00:35 +0000)]
support for larger calls

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

19 years agoImprove spelling
Chris Lattner [Sun, 30 Jan 2005 00:13:34 +0000 (00:13 +0000)]
Improve spelling

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

19 years agoImprove conformance with the Misha spelling benchmark suite
Chris Lattner [Sun, 30 Jan 2005 00:09:23 +0000 (00:09 +0000)]
Improve conformance with the Misha spelling benchmark suite

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

19 years agoMake this work on systems where size_t == unsigned and where they are not
Tanya Lattner [Sat, 29 Jan 2005 23:29:55 +0000 (23:29 +0000)]
Make this work on systems where size_t == unsigned and where they are not
the same.

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

19 years agoMake this work on systems where size_t is not the same as unsigned.
Tanya Lattner [Sat, 29 Jan 2005 23:08:01 +0000 (23:08 +0000)]
Make this work on systems where size_t is not the same as unsigned.

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

19 years agoUnbreak the build :(
Chris Lattner [Sat, 29 Jan 2005 19:27:28 +0000 (19:27 +0000)]
Unbreak the build  :(

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

19 years agoAdjust to ilist changes.
Chris Lattner [Sat, 29 Jan 2005 18:43:28 +0000 (18:43 +0000)]
Adjust to ilist changes.

Based on the ilist changes avoid allocating an entire Use object for the
end of the Use chain.  This saves 8 bytes of memory for each Value allocated
in the program.  For 176.gcc, this reduces us from 69.5M -> 66.0M, a 5.3%
memory savings.

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

19 years agoadjust to ilist changes.
Chris Lattner [Sat, 29 Jan 2005 18:41:25 +0000 (18:41 +0000)]
adjust to ilist changes.

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

19 years agoAdjust to ilist changes.
Chris Lattner [Sat, 29 Jan 2005 18:41:12 +0000 (18:41 +0000)]
Adjust to ilist changes.

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

19 years agoAdjust to changes in ilist
Chris Lattner [Sat, 29 Jan 2005 18:41:00 +0000 (18:41 +0000)]
Adjust to changes in ilist

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

19 years agoRename createNode -> createSentinal.
Chris Lattner [Sat, 29 Jan 2005 18:40:19 +0000 (18:40 +0000)]
Rename createNode -> createSentinal.

Add a new method, destroySentinal, that is used to delete it (instead of
requiring use of delete.

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

19 years agoclean up comments
Chris Lattner [Sat, 29 Jan 2005 17:29:05 +0000 (17:29 +0000)]
clean up comments

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

19 years agoThis has been deprecated for long enough, nuke it.
Chris Lattner [Sat, 29 Jan 2005 17:27:26 +0000 (17:27 +0000)]
This has been deprecated for long enough, nuke it.

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

19 years agoThis file was schizophrenic when it came to representing sizes. In some
Chris Lattner [Sat, 29 Jan 2005 17:17:18 +0000 (17:17 +0000)]
This file was schizophrenic when it came to representing sizes.  In some
cases it represented them as 'unsigned's, which are not enough for 64-bit
hosts.  In other cases, it represented them as uint64_t's, which are
inefficient for 32-bit hosts.

This patch unifies all of the sizes to use size_t instead.

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

19 years agoThere is no reason to include ostream here, include iosfwd instead.
Chris Lattner [Sat, 29 Jan 2005 17:16:07 +0000 (17:16 +0000)]
There is no reason to include ostream here, include iosfwd instead.

This file was schizophrenic when it came to representing sizes.  In some
cases it represented them as 'unsigneds', which are not enough for 64-bit
hosts.  In other cases, it represented them as uint64_t's, which are
inefficient for 32-bit hosts.

This patch unifies all of the sizes to use size_t instead.

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

19 years agoAfter reading in a bc file, trim the resultant buffer down to what we
Chris Lattner [Sat, 29 Jan 2005 17:05:56 +0000 (17:05 +0000)]
After reading in a bc file, trim the resultant buffer down to what we
really need.  This reduces 4M of memory consumption reading 176.gcc.

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

19 years agoFinegrainify namespacification
Chris Lattner [Sat, 29 Jan 2005 16:53:02 +0000 (16:53 +0000)]
Finegrainify namespacification

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

19 years agofirst step towards a correct and complete stack. also add some forms for things...
Andrew Lenharth [Sat, 29 Jan 2005 15:42:07 +0000 (15:42 +0000)]
first step towards a correct and complete stack.  also add some forms for things that were getting stuck in the nightly tester.

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