oota-llvm.git
17 years agoAdd a show-footprint target to run du a few times to show how much disk
Reid Spencer [Mon, 5 Feb 2007 23:18:58 +0000 (23:18 +0000)]
Add a show-footprint target to run du a few times to show how much disk
space a build tree's objects are consuming.

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

17 years agoConst method must use const_iterator.
Chris Lattner [Mon, 5 Feb 2007 23:18:32 +0000 (23:18 +0000)]
Const method must use const_iterator.

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

17 years agoSwitch InsertedPHINodes back to SmallPtrSet now that the SmallPtrSet::erase
Chris Lattner [Mon, 5 Feb 2007 23:11:37 +0000 (23:11 +0000)]
Switch InsertedPHINodes back to SmallPtrSet now that the SmallPtrSet::erase
bug is fixed.

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

17 years agoFix a bug in smallptrset::erase: in the small case, return true if the
Chris Lattner [Mon, 5 Feb 2007 23:10:31 +0000 (23:10 +0000)]
Fix a bug in smallptrset::erase: in the small case, return true if the
element was in the set.

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

17 years agoswitch a SmallPtrSet back to an std::set for now, this caused problems.
Chris Lattner [Mon, 5 Feb 2007 22:28:52 +0000 (22:28 +0000)]
switch a SmallPtrSet back to an std::set for now, this caused problems.

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

17 years agoswitch an std::set over to a SmallPtrSet, speeding up mem2reg 6% on 176.gcc.
Chris Lattner [Mon, 5 Feb 2007 22:15:21 +0000 (22:15 +0000)]
switch an std::set over to a SmallPtrSet, speeding up mem2reg 6% on 176.gcc.

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

17 years agoswitch an std::set over to SmallPtrSet, speeding up mem2reg 3.4% on 176.gcc.
Chris Lattner [Mon, 5 Feb 2007 22:13:11 +0000 (22:13 +0000)]
switch an std::set over to SmallPtrSet, speeding up mem2reg 3.4% on 176.gcc.

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

17 years agoeliminate some malloc traffic, this speeds up mem2reg by 3.4%.
Chris Lattner [Mon, 5 Feb 2007 21:58:48 +0000 (21:58 +0000)]
eliminate some malloc traffic, this speeds up mem2reg by 3.4%.

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

17 years agoAdd missing and needed #include.
Reid Spencer [Mon, 5 Feb 2007 21:47:39 +0000 (21:47 +0000)]
Add missing and needed #include.

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

17 years agoMake the class VISIBILITY_HIDDEN.
Reid Spencer [Mon, 5 Feb 2007 21:45:12 +0000 (21:45 +0000)]
Make the class VISIBILITY_HIDDEN.
Reduce lexical size of the anonymous namespace.

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

17 years agoFix PR1178
Chris Lattner [Mon, 5 Feb 2007 21:23:52 +0000 (21:23 +0000)]
Fix PR1178

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

17 years agoFor PR411:
Reid Spencer [Mon, 5 Feb 2007 21:19:13 +0000 (21:19 +0000)]
For PR411:
Adjust to changes in Module interface:
getMainFunction() -> getFunction("main")
getNamedFunction(X) -> getFunction(X)

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

17 years agoFor PR411:
Reid Spencer [Mon, 5 Feb 2007 21:17:53 +0000 (21:17 +0000)]
For PR411:
Change getNamedFunction -> getFunction
Make llvm-extract run the StripDeadPrototypes pass.

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

17 years agoFor PR411:
Reid Spencer [Mon, 5 Feb 2007 21:17:06 +0000 (21:17 +0000)]
For PR411:
Clean up the Module::getFunction interface. getMainFunction and
getNamedFunction are now gone. Just use getFunction instead.

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

17 years agoFor PR411:
Reid Spencer [Mon, 5 Feb 2007 20:59:45 +0000 (20:59 +0000)]
For PR411:
This test is not particularly useful without type planes.

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

17 years agoFor PR411:
Reid Spencer [Mon, 5 Feb 2007 20:47:22 +0000 (20:47 +0000)]
For PR411:
This patch replaces the SymbolTable class with ValueSymbolTable which does
not support types planes. This means that all symbol names in LLVM must now
be unique. The patch addresses the necessary changes to deal with this and
removes code no longer needed as a result. This completes the bulk of the
changes for this PR. Some cleanup patches will follow.

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

17 years agoFor PR411:
Reid Spencer [Mon, 5 Feb 2007 20:41:05 +0000 (20:41 +0000)]
For PR411:
This pass is no longer needed.

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

17 years agoCreate a pass to strip dead function declarations (prototypes). This is
Reid Spencer [Mon, 5 Feb 2007 20:24:25 +0000 (20:24 +0000)]
Create a pass to strip dead function declarations (prototypes). This is
for use by llvm-extract and bugpoint.

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

17 years agoFix PR1158
Devang Patel [Mon, 5 Feb 2007 19:34:17 +0000 (19:34 +0000)]
Fix PR1158

Do not insert Analysis pass, if it is already available.

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

17 years agoTest case for PR1158
Devang Patel [Mon, 5 Feb 2007 19:33:20 +0000 (19:33 +0000)]
Test case for PR1158

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

17 years agoAdd a class APInt to represent arbitrary precision constant integral values.
Zhou Sheng [Mon, 5 Feb 2007 17:29:16 +0000 (17:29 +0000)]
Add a class APInt to represent arbitrary precision constant integral values.
It is a functional replacement for common case integer type like "unsigned",
"uint64_t", but also allows non-byte-width integer type and large integer
value types such as 3-bits, 15-bits, or more than 64-bits of precision. For
more details, see pr1043.

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

17 years agoRegenerate.
Reid Spencer [Mon, 5 Feb 2007 17:04:00 +0000 (17:04 +0000)]
Regenerate.

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

17 years ago! removal was a little over zealous. Put the ! back in asserts.
Reid Spencer [Mon, 5 Feb 2007 17:01:20 +0000 (17:01 +0000)]
! removal was a little over zealous. Put the ! back in asserts.

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

17 years agoFix unord test.
Lauro Ramos Venancio [Mon, 5 Feb 2007 16:33:56 +0000 (16:33 +0000)]
Fix unord test.

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

17 years agoRegenerate.
Reid Spencer [Mon, 5 Feb 2007 10:18:06 +0000 (10:18 +0000)]
Regenerate.

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

17 years agoAssembler no longer prints ! at the end of its error messages.
Reid Spencer [Mon, 5 Feb 2007 10:17:51 +0000 (10:17 +0000)]
Assembler no longer prints ! at the end of its error messages.

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

17 years agoThere is nothing exclamatory about an error message. No other compiler
Reid Spencer [Mon, 5 Feb 2007 10:16:10 +0000 (10:16 +0000)]
There is nothing exclamatory about an error message. No other compiler
or assembler uses ! at the end of every message. We shouldn't either.

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

17 years agoMake the RUN: line readable.
Reid Spencer [Mon, 5 Feb 2007 10:09:41 +0000 (10:09 +0000)]
Make the RUN: line readable.

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

17 years agoDon't prevent install target from descending into the utils directory.
Reid Spencer [Mon, 5 Feb 2007 09:43:17 +0000 (09:43 +0000)]
Don't prevent install target from descending into the utils directory.
It prevents "make install" on a clean directory from working.

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

17 years agoadd a note
Chris Lattner [Mon, 5 Feb 2007 06:30:51 +0000 (06:30 +0000)]
add a note

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

17 years agoUse opt to generate the list of passes to run.
Reid Spencer [Mon, 5 Feb 2007 06:10:19 +0000 (06:10 +0000)]
Use opt to generate the list of passes to run.

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

17 years agoFix miscompilations of consumer-typeset, telecomm-gsm, and 176.gcc.
Chris Lattner [Mon, 5 Feb 2007 05:57:49 +0000 (05:57 +0000)]
Fix miscompilations of consumer-typeset, telecomm-gsm, and 176.gcc.

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

17 years agoFor PR1177:
Reid Spencer [Mon, 5 Feb 2007 05:23:32 +0000 (05:23 +0000)]
For PR1177:
Revert last patch which caused iteration invalidation.

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

17 years agofix a miscompilation of 176.gcc
Chris Lattner [Mon, 5 Feb 2007 04:09:35 +0000 (04:09 +0000)]
fix a miscompilation of 176.gcc

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

17 years agoFor PR411:
Reid Spencer [Mon, 5 Feb 2007 04:00:04 +0000 (04:00 +0000)]
For PR411:
Don't re-use var names.

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

17 years agonew testcase for 1174, currently xfailed
Chris Lattner [Mon, 5 Feb 2007 03:56:59 +0000 (03:56 +0000)]
new testcase for 1174, currently xfailed

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

17 years agoUse DenseMap for pointer->pointer maps.
Owen Anderson [Mon, 5 Feb 2007 02:39:47 +0000 (02:39 +0000)]
Use DenseMap for pointer->pointer maps.

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

17 years agoUse unsigned char& instead of std::vector<>::reference.
Bill Wendling [Mon, 5 Feb 2007 02:37:07 +0000 (02:37 +0000)]
Use unsigned char& instead of std::vector<>::reference.

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

17 years agoTest for PR1173
Anton Korobeynikov [Mon, 5 Feb 2007 02:28:56 +0000 (02:28 +0000)]
Test for PR1173

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

17 years agofix bug number
Chris Lattner [Mon, 5 Feb 2007 02:26:07 +0000 (02:26 +0000)]
fix bug number

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

17 years agotest for pr1173
Chris Lattner [Mon, 5 Feb 2007 02:19:09 +0000 (02:19 +0000)]
test for pr1173

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

17 years agorewrite shift/shift folding, now that types are not signed.
Chris Lattner [Mon, 5 Feb 2007 00:57:54 +0000 (00:57 +0000)]
rewrite shift/shift folding, now that types are not signed.

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

17 years agotestcase for PR1175
Chris Lattner [Sun, 4 Feb 2007 23:55:04 +0000 (23:55 +0000)]
testcase for PR1175

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

17 years agoFix indenting, remove tabs.
Nick Lewycky [Sun, 4 Feb 2007 23:43:05 +0000 (23:43 +0000)]
Fix indenting, remove tabs.

Learn from sext and zext. The destination value falls within the range of the
source type.

Generalize properties regarding constant ints.

Get smarter about marking blocks as unreachable. If 1 >= 2 in order for this
block to execute, then it isn't reachable.

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

17 years agoFixing silly "not-implemented" bug in AsmPrinter. This fixes PR1169.
Anton Korobeynikov [Sun, 4 Feb 2007 23:27:42 +0000 (23:27 +0000)]
Fixing silly "not-implemented" bug in AsmPrinter. This fixes PR1169.

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

17 years agoWhen using LINK_COMPONENTS, append the components to the end of the
Reid Spencer [Sun, 4 Feb 2007 22:12:25 +0000 (22:12 +0000)]
When using LINK_COMPONENTS, append the components to the end of the
libraries linked with. This permits a project to still use USEDLIBS to
specify its own libraries in conjunction with LINK_COMPONENTS. llvm-stacker
needs this after libLLVMTransforms.a went away.

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

17 years agoFix grammaro in output message.
Reid Spencer [Sun, 4 Feb 2007 22:08:16 +0000 (22:08 +0000)]
Fix grammaro in output message.

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

17 years agoFix a miscompilation in the addr mode code trying to implement X | C and
Chris Lattner [Sun, 4 Feb 2007 20:18:17 +0000 (20:18 +0000)]
Fix a miscompilation in the addr mode code trying to implement X | C and
X + C to promote LEA formation.  We would incorrectly apply it in some cases
(test) and miss it in others.

This fixes CodeGen/X86/2007-02-04-OrAddrMode.ll

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

17 years agonew testcase for x86 backend miscompilation
Chris Lattner [Sun, 4 Feb 2007 20:15:15 +0000 (20:15 +0000)]
new testcase for x86 backend miscompilation

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

17 years agoswitch the VRBaseMap in the scheduler from an std::map to a DenseMap. This
Chris Lattner [Sun, 4 Feb 2007 08:47:20 +0000 (08:47 +0000)]
switch the VRBaseMap in the scheduler from an std::map to a DenseMap.  This
speeds up the isel pass from 2.5570s to 2.4722s on kc++ (3.4%).

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

17 years agoIntroduce new UnarySDNode/BinarySDNode/TernarySDNode nodes, which coallocate
Chris Lattner [Sun, 4 Feb 2007 08:35:21 +0000 (08:35 +0000)]
Introduce new UnarySDNode/BinarySDNode/TernarySDNode nodes, which coallocate
their operands with the node itself.  This reduces malloc traffic for operand
lists.  This reduces isel time on kc++ from 2.6164 to 2.5570s, about 2.3%.

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

17 years agoAdd a new SDNode ctor and InitOperands method. This allows the operands for
Chris Lattner [Sun, 4 Feb 2007 08:13:53 +0000 (08:13 +0000)]
Add a new SDNode ctor and InitOperands method.  This allows the operands for
an SDNode to be allocated as part of the node itself, instead of being a
separate new[]'d object.  Switch HandleSDNode, LoadSDNode, and StoreSDNode
to use this mechanism.  This saves one heap allocation and free for each node
of this type that is allocated.  This reduces isel time from 2.7638 to 2.6164s
on kc++, which is a 5.6% speedup.

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

17 years agoeliminate the SDNode::setValueTypes method.
Chris Lattner [Sun, 4 Feb 2007 07:37:24 +0000 (07:37 +0000)]
eliminate the SDNode::setValueTypes method.

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

17 years agoeliminate a bunch of duplicate ctors and helper functions.
Chris Lattner [Sun, 4 Feb 2007 07:28:00 +0000 (07:28 +0000)]
eliminate a bunch of duplicate ctors and helper functions.

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

17 years agoFix some comments and other minor sundry things.
Reid Spencer [Sun, 4 Feb 2007 04:43:17 +0000 (04:43 +0000)]
Fix some comments and other minor sundry things.

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

17 years agoEnsure that visibility and section are properly propagated.
Reid Spencer [Sun, 4 Feb 2007 04:30:33 +0000 (04:30 +0000)]
Ensure that visibility and section are properly propagated.

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

17 years agoBack out last revision which was committed by accident.
Reid Spencer [Sun, 4 Feb 2007 04:29:21 +0000 (04:29 +0000)]
Back out last revision which was committed by accident.

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

17 years agoMake sure that section and visibility are properly propagated.
Reid Spencer [Sun, 4 Feb 2007 04:28:18 +0000 (04:28 +0000)]
Make sure that section and visibility are properly propagated.

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

17 years agomove MorphNode to out of line and merge setNodeOperands into it. There is
Chris Lattner [Sun, 4 Feb 2007 02:49:29 +0000 (02:49 +0000)]
move MorphNode to out of line and merge setNodeOperands into it.  There is
no behavior or performance change here.

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

17 years agosimplify MorphNodeTo to take a VTList operand.
Chris Lattner [Sun, 4 Feb 2007 02:41:42 +0000 (02:41 +0000)]
simplify MorphNodeTo to take a VTList operand.

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

17 years agoeliminate some extraneous methods in SDNode
Chris Lattner [Sun, 4 Feb 2007 02:32:44 +0000 (02:32 +0000)]
eliminate some extraneous methods in SDNode

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

17 years agoGive each selectiondag node class a home for it's vtable and rtti info
Chris Lattner [Sun, 4 Feb 2007 02:23:32 +0000 (02:23 +0000)]
Give each selectiondag node class a home for it's vtable and rtti info

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

17 years agoPrepare for PR411
Reid Spencer [Sun, 4 Feb 2007 02:11:13 +0000 (02:11 +0000)]
Prepare for PR411

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

17 years agoEncode small integers more densely in foldingset, avoiding overflowing the SmallVecto...
Chris Lattner [Sun, 4 Feb 2007 01:48:10 +0000 (01:48 +0000)]
Encode small integers more densely in foldingset, avoiding overflowing the SmallVector as often.

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

17 years agoSwitch VAlueMap from std::map to DenseMap.
Chris Lattner [Sun, 4 Feb 2007 01:35:11 +0000 (01:35 +0000)]
Switch VAlueMap from std::map to DenseMap.

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

17 years agoSwitch NodeMap from std::map to DenseMap, this speeds up isel by 2.3%
Chris Lattner [Sun, 4 Feb 2007 01:31:47 +0000 (01:31 +0000)]
Switch NodeMap from std::map to DenseMap, this speeds up isel by 2.3%

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

17 years agoswtich vector-> smallvector, speeding up selectiondag stuff 1%
Chris Lattner [Sun, 4 Feb 2007 01:20:02 +0000 (01:20 +0000)]
swtich vector-> smallvector, speeding up selectiondag stuff 1%

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

17 years agoSwitch promoted/expanded ops over to using a DenseMap. Vector related maps
Chris Lattner [Sun, 4 Feb 2007 01:17:38 +0000 (01:17 +0000)]
Switch promoted/expanded ops over to using a DenseMap.  Vector related maps
aren't worth it.

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

17 years agoRegenerate.
Reid Spencer [Sun, 4 Feb 2007 01:12:11 +0000 (01:12 +0000)]
Regenerate.

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

17 years agoFor PR1151:
Reid Spencer [Sun, 4 Feb 2007 01:05:23 +0000 (01:05 +0000)]
For PR1151:
Make llvm-upgrade valgrind clean. Deleting type instances is a really
nasty thing to do to LLVM. This was a hold-over from the re-write.
This fixes test/Assembler/2007-01-22-UpgradeTypeMapInvalidMemory.ll and
potentially many other bugs.

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

17 years agoswitch LegalizedNodes from std::map to a DenseMap. This speeds up isel
Chris Lattner [Sun, 4 Feb 2007 00:50:02 +0000 (00:50 +0000)]
switch LegalizedNodes from std::map to a DenseMap.  This speeds up isel
time as a whole on kc++ by 11%.

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

17 years agoadd a version of insert that takes the key and value.
Chris Lattner [Sun, 4 Feb 2007 00:42:41 +0000 (00:42 +0000)]
add a version of insert that takes the key and value.

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

17 years agoFor PR1163:
Reid Spencer [Sun, 4 Feb 2007 00:40:42 +0000 (00:40 +0000)]
For PR1163:
Make the Module's dependent library use a std::vector instead of SetVector
adjust #includes in .cpp files because SetVector.h is no longer included.

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

17 years agoMake SmallSetVector useful
Chris Lattner [Sun, 4 Feb 2007 00:30:40 +0000 (00:30 +0000)]
Make SmallSetVector useful

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

17 years agoEliminate some malloc traffic from LegalizeAllNodesNotLeadingTo, speeding
Chris Lattner [Sun, 4 Feb 2007 00:27:56 +0000 (00:27 +0000)]
Eliminate some malloc traffic from LegalizeAllNodesNotLeadingTo, speeding
up isel on kimwitu by 0.7%.

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

17 years agoEliminate some std::sets. This speeds up isel of kimwitu by about 0.9%
Chris Lattner [Sun, 4 Feb 2007 00:24:41 +0000 (00:24 +0000)]
Eliminate some std::sets.  This speeds up isel of kimwitu by about 0.9%

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

17 years agoMake sure the gccas script is executable.
Reid Spencer [Sun, 4 Feb 2007 00:23:51 +0000 (00:23 +0000)]
Make sure the gccas script is executable.

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

17 years agoFor PR1067:
Reid Spencer [Sun, 4 Feb 2007 00:17:35 +0000 (00:17 +0000)]
For PR1067:
Update library documentation after removal of libLLVMTransforms.a that
resulted from removal of the LevelRaise pass.

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

17 years agoSwitch SelectionDAG::ReplaceAllUsesOfValueWith to use a SmallSetVector for
Chris Lattner [Sun, 4 Feb 2007 00:14:31 +0000 (00:14 +0000)]
Switch SelectionDAG::ReplaceAllUsesOfValueWith to use a SmallSetVector for
the users set (most nodes have 1 or 2 users).  This speeds up the isel pass
3.2% on kimwitu.

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

17 years agoVarious bugfixes
Chris Lattner [Sun, 4 Feb 2007 00:12:12 +0000 (00:12 +0000)]
Various bugfixes

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

17 years agodescribe SmallSetVector
Chris Lattner [Sun, 4 Feb 2007 00:00:26 +0000 (00:00 +0000)]
describe SmallSetVector

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

17 years agoConvert SetVector to be a true adapter class and add SmallSetVector.
Chris Lattner [Sat, 3 Feb 2007 23:56:03 +0000 (23:56 +0000)]
Convert SetVector to be a true adapter class and add SmallSetVector.

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

17 years agoremove some dead code
Chris Lattner [Sat, 3 Feb 2007 23:28:07 +0000 (23:28 +0000)]
remove some dead code

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

17 years agoFor PR1072:
Reid Spencer [Sat, 3 Feb 2007 23:15:56 +0000 (23:15 +0000)]
For PR1072:
Removing -raise has neglible positive or negative side effects so we are
opting to remove it. See the PR for comparison details.

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

17 years agoadd an instcombine pass to clean up after heavy-lifting IP passes
Chris Lattner [Sat, 3 Feb 2007 23:06:03 +0000 (23:06 +0000)]
add an instcombine pass to clean up after heavy-lifting IP passes

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

17 years agonull -> pointer, nul -> character :)
Chris Lattner [Sat, 3 Feb 2007 22:04:27 +0000 (22:04 +0000)]
null -> pointer, nul -> character :)

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

17 years agoFix some spellos.
Reid Spencer [Sat, 3 Feb 2007 21:06:43 +0000 (21:06 +0000)]
Fix some spellos.

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

17 years agofix grammar
Chris Lattner [Sat, 3 Feb 2007 20:17:53 +0000 (20:17 +0000)]
fix grammar

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

17 years agoSerious cleanups. Make the TOC match the text for the class hierarchy,
Chris Lattner [Sat, 3 Feb 2007 20:02:25 +0000 (20:02 +0000)]
Serious cleanups.  Make the TOC match the text for the class hierarchy,
move the sections of the class-h around in the right order, make it actually
reflect the classes in LLVM today.

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

17 years agoAdd TOC
Chris Lattner [Sat, 3 Feb 2007 19:51:56 +0000 (19:51 +0000)]
Add TOC

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

17 years agodescribe map-like containers
Chris Lattner [Sat, 3 Feb 2007 19:49:31 +0000 (19:49 +0000)]
describe map-like containers

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

17 years ago8 buckets is way too small to start out with. This was only for testing.
Chris Lattner [Sat, 3 Feb 2007 19:30:48 +0000 (19:30 +0000)]
8 buckets is way too small to start out with.  This was only for testing.

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

17 years agoClean this up a bit: hide command unless verbose output requested, echo
Reid Spencer [Sat, 3 Feb 2007 16:09:12 +0000 (16:09 +0000)]
Clean this up a bit: hide command unless verbose output requested, echo
a useful comment line, add a clean target.

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

17 years agoAdd a test case.
Evan Cheng [Sat, 3 Feb 2007 09:14:10 +0000 (09:14 +0000)]
Add a test case.

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

17 years agoARM callseq_end should have a input flag operand so it would be scheduled right after...
Evan Cheng [Sat, 3 Feb 2007 09:11:58 +0000 (09:11 +0000)]
ARM callseq_end should have a input flag operand so it would be scheduled right after the call.

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

17 years agoFix comments.
Evan Cheng [Sat, 3 Feb 2007 08:53:01 +0000 (08:53 +0000)]
Fix comments.

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

17 years agoimprove grammar
Chris Lattner [Sat, 3 Feb 2007 08:20:15 +0000 (08:20 +0000)]
improve grammar

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

17 years agoimprove grammar
Chris Lattner [Sat, 3 Feb 2007 08:10:45 +0000 (08:10 +0000)]
improve grammar

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

17 years agoclose run-away tag
Chris Lattner [Sat, 3 Feb 2007 07:59:51 +0000 (07:59 +0000)]
close run-away tag

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

17 years agofill in the section on Set-like containers.
Chris Lattner [Sat, 3 Feb 2007 07:59:07 +0000 (07:59 +0000)]
fill in the section on Set-like containers.

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