oota-llvm.git
17 years agoAdd ABI information to ARM subtarget.
Lauro Ramos Venancio [Tue, 13 Feb 2007 19:52:28 +0000 (19:52 +0000)]
Add ABI information to ARM subtarget.

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

17 years agoAdd a space between // and the comment.
Lauro Ramos Venancio [Tue, 13 Feb 2007 18:10:13 +0000 (18:10 +0000)]
Add a space between // and the comment.

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

17 years agoAdd comment about original function argument alignment.
Lauro Ramos Venancio [Tue, 13 Feb 2007 17:57:38 +0000 (17:57 +0000)]
Add comment about original function argument alignment.

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

17 years agoFix tow grammaros that Bill Wendling noticed.
Reid Spencer [Tue, 13 Feb 2007 17:04:09 +0000 (17:04 +0000)]
Fix tow grammaros that Bill Wendling noticed.

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

17 years agoAccording to ARM EABI, 8-bytes function arguments must be 8-bytes aligned.
Lauro Ramos Venancio [Tue, 13 Feb 2007 14:07:13 +0000 (14:07 +0000)]
According to ARM EABI, 8-bytes function arguments must be 8-bytes aligned.

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

17 years agoAdd "original alignment" to function arguments flags.
Lauro Ramos Venancio [Tue, 13 Feb 2007 13:50:08 +0000 (13:50 +0000)]
Add "original alignment" to function arguments flags.

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

17 years agoFix a compilation error that caused the nightly test to fail.
Reid Spencer [Tue, 13 Feb 2007 09:26:04 +0000 (09:26 +0000)]
Fix a compilation error that caused the nightly test to fail.

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

17 years agoClean up spelling mistakes.
Reid Spencer [Tue, 13 Feb 2007 09:20:14 +0000 (09:20 +0000)]
Clean up spelling mistakes.

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

17 years agoFix an HTML validation error.
Reid Spencer [Tue, 13 Feb 2007 09:11:33 +0000 (09:11 +0000)]
Fix an HTML validation error.

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

17 years agoMake the draft notice more prominent.
Reid Spencer [Tue, 13 Feb 2007 09:09:20 +0000 (09:09 +0000)]
Make the draft notice more prominent.

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

17 years agoAdd DeveloperPolicy.html
Reid Spencer [Tue, 13 Feb 2007 09:08:27 +0000 (09:08 +0000)]
Add DeveloperPolicy.html

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

17 years agoFirst draft of the LLVM Developer Policy. This document is a "first cut"
Reid Spencer [Tue, 13 Feb 2007 09:06:01 +0000 (09:06 +0000)]
First draft of the LLVM Developer Policy. This document is a "first cut"
at stating in clear terms the LLVM project's policies with respect to
developers and their contributions. Feedback on this is welcome while it
is in draft stage.

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

17 years agoSwitch UnaryOperators to default to passing names up by const char* when possible.
Chris Lattner [Tue, 13 Feb 2007 07:54:42 +0000 (07:54 +0000)]
Switch UnaryOperators to default to passing names up by const char* when possible.
This speeds up bcreading by 1.5%.

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

17 years agoadd a setName variant that takes a null-terminated string. This can be
Chris Lattner [Tue, 13 Feb 2007 07:53:34 +0000 (07:53 +0000)]
add a setName variant that takes a null-terminated string.  This can be
used to avoid std::string allocations in common cases.

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

17 years agoUse a SmallVector to reduce heap traffic. This speeds up bcreader 10%
Chris Lattner [Tue, 13 Feb 2007 07:28:20 +0000 (07:28 +0000)]
Use a SmallVector to reduce heap traffic.  This speeds up bcreader 10%

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

17 years agofix a critical bug in smallvector, where it would destroy elements that are
Chris Lattner [Tue, 13 Feb 2007 07:25:36 +0000 (07:25 +0000)]
fix a critical bug in smallvector, where it would destroy elements that are
not in its range (!).

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

17 years agonow that we can pass ranges into CallInst ctors, eliminate vector heap traffic
Chris Lattner [Tue, 13 Feb 2007 06:30:42 +0000 (06:30 +0000)]
now that we can pass ranges into CallInst ctors, eliminate vector heap traffic

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

17 years agoeliminate instruction ctors that take vectors.
Chris Lattner [Tue, 13 Feb 2007 06:22:32 +0000 (06:22 +0000)]
eliminate instruction ctors that take vectors.

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

17 years agoeliminate vector-related ctors
Chris Lattner [Tue, 13 Feb 2007 06:06:26 +0000 (06:06 +0000)]
eliminate vector-related ctors

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

17 years agoeliminate use of vector-related ctors
Chris Lattner [Tue, 13 Feb 2007 06:05:43 +0000 (06:05 +0000)]
eliminate use of vector-related ctors

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

17 years agoregenerate
Chris Lattner [Tue, 13 Feb 2007 06:04:17 +0000 (06:04 +0000)]
regenerate

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

17 years agoremove use of vector-related ctors
Chris Lattner [Tue, 13 Feb 2007 06:03:48 +0000 (06:03 +0000)]
remove use of vector-related ctors

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

17 years agoeliminate vector-related allocations
Chris Lattner [Tue, 13 Feb 2007 06:01:22 +0000 (06:01 +0000)]
eliminate vector-related allocations

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

17 years agoeliminate a bunch of vector-related heap traffic
Chris Lattner [Tue, 13 Feb 2007 05:58:53 +0000 (05:58 +0000)]
eliminate a bunch of vector-related heap traffic

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

17 years agoeliminate use of vector ctors
Chris Lattner [Tue, 13 Feb 2007 05:53:56 +0000 (05:53 +0000)]
eliminate use of vector ctors

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

17 years agoEliminate use of ctors that take vectors.
Chris Lattner [Tue, 13 Feb 2007 02:10:56 +0000 (02:10 +0000)]
Eliminate use of ctors that take vectors.

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

17 years agostop passing vector into ctors
Chris Lattner [Tue, 13 Feb 2007 01:53:54 +0000 (01:53 +0000)]
stop passing vector into ctors

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

17 years agoAllow any MachineBasicBlock (not just the entry block) to have live-in physical
Evan Cheng [Tue, 13 Feb 2007 01:30:55 +0000 (01:30 +0000)]
Allow any MachineBasicBlock (not just the entry block) to have live-in physical
registers. Make sure liveinterval analysis is correctly creating live ranges
for them.

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

17 years agoFix switch lowering to order cases in zext order, which is how we emit the
Chris Lattner [Tue, 13 Feb 2007 01:05:56 +0000 (01:05 +0000)]
Fix switch lowering to order cases in zext order, which is how we emit the
comparisons.  This fixes an infinite loop on CodeGen/Generic/switch-lower.ll
and PR1197

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

17 years agonew testcase for PR1197
Chris Lattner [Tue, 13 Feb 2007 01:05:10 +0000 (01:05 +0000)]
new testcase for PR1197

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

17 years agoAdd invokeinst and callinst ctors that don't take vectors.
Chris Lattner [Tue, 13 Feb 2007 01:04:01 +0000 (01:04 +0000)]
Add invokeinst and callinst ctors that don't take vectors.

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

17 years agoremove some dead methods.
Chris Lattner [Tue, 13 Feb 2007 00:58:44 +0000 (00:58 +0000)]
remove some dead methods.

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

17 years agoregenerate
Chris Lattner [Tue, 13 Feb 2007 00:58:01 +0000 (00:58 +0000)]
regenerate

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

17 years agoeliminate use of methods that take vectors as args
Chris Lattner [Tue, 13 Feb 2007 00:57:40 +0000 (00:57 +0000)]
eliminate use of methods that take vectors as args

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

17 years agoI love non-deturminism. Returning objects with references to stack objects is a...
Andrew Lenharth [Tue, 13 Feb 2007 00:37:50 +0000 (00:37 +0000)]
I love non-deturminism.  Returning objects with references to stack objects is a bad idea (TM).

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

17 years agostop using me thods that take a vector
Chris Lattner [Mon, 12 Feb 2007 22:58:38 +0000 (22:58 +0000)]
stop using me thods that take a vector

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

17 years agostop using methods that take vectors.
Chris Lattner [Mon, 12 Feb 2007 22:56:41 +0000 (22:56 +0000)]
stop using methods that take vectors.

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

17 years agomore notes
Chris Lattner [Mon, 12 Feb 2007 21:20:26 +0000 (21:20 +0000)]
more notes

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

17 years agoadd a note
Chris Lattner [Mon, 12 Feb 2007 20:26:34 +0000 (20:26 +0000)]
add a note

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

17 years ago1. Make APInt::shl work correctly and more efficiently.
Zhou Sheng [Mon, 12 Feb 2007 20:02:55 +0000 (20:02 +0000)]
1. Make APInt::shl work correctly and more efficiently.
2. Add functions to support the numberical conversion between APInt and
   double/float.

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

17 years agoWrong value type.
Jim Laskey [Mon, 12 Feb 2007 19:05:51 +0000 (19:05 +0000)]
Wrong value type.

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

17 years agoavoid creating a temporary string when reading the symbol table for a
Chris Lattner [Mon, 12 Feb 2007 18:53:43 +0000 (18:53 +0000)]
avoid creating a temporary string when reading the symbol table for a
module.  This speeds up the bcreader 11%.

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

17 years agoAdd new setName accessor which doesn't require creating a string.
Chris Lattner [Mon, 12 Feb 2007 18:52:59 +0000 (18:52 +0000)]
Add new setName accessor which doesn't require creating a string.

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

17 years agoFix build error on ARM.
Lauro Ramos Venancio [Mon, 12 Feb 2007 18:31:46 +0000 (18:31 +0000)]
Fix build error on ARM.
Since CompilerDriver.cpp revision 1.44, llvmc must be linked against LLVMCore.a (llvm::Module::~Module) and LLVMBCReader.a
(llvm::getBytecodeModuleProvider).

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

17 years agoSwitch ValueSymbolTable to use StringMap<Value*> instead of std::map<std::string...
Chris Lattner [Mon, 12 Feb 2007 05:18:08 +0000 (05:18 +0000)]
Switch ValueSymbolTable to use StringMap<Value*> instead of std::map<std::string, Value*>
as its main datastructure.  There are many improvements yet to be made, but
this speeds up opt --std-compile-opts on 447.dealII by 7.3%.

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

17 years agoRemove references to the now deprecated gccas and gccld.
Reid Spencer [Mon, 12 Feb 2007 05:03:33 +0000 (05:03 +0000)]
Remove references to the now deprecated gccas and gccld.

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

17 years agoUpdate for llvm-gcc v4.0 usage.
Reid Spencer [Mon, 12 Feb 2007 05:02:56 +0000 (05:02 +0000)]
Update for llvm-gcc v4.0 usage.

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

17 years agoadd #include
Chris Lattner [Mon, 12 Feb 2007 05:00:35 +0000 (05:00 +0000)]
add #include

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

17 years agoadd new ShouldRehash method to factor out common code. Fix the dtor to not
Chris Lattner [Sun, 11 Feb 2007 21:46:36 +0000 (21:46 +0000)]
add new ShouldRehash method to factor out common code.  Fix the dtor to not
delete tombstones.

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

17 years agoregenerate
Chris Lattner [Sun, 11 Feb 2007 21:40:10 +0000 (21:40 +0000)]
regenerate

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

17 years agoadd #include
Chris Lattner [Sun, 11 Feb 2007 21:39:35 +0000 (21:39 +0000)]
add #include

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

17 years agodo not allow hash table to be filled with tombstones.
Chris Lattner [Sun, 11 Feb 2007 21:07:36 +0000 (21:07 +0000)]
do not allow hash table to be filled with tombstones.

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

17 years agoAdd support for removing elements out of StringMap.
Chris Lattner [Sun, 11 Feb 2007 20:58:00 +0000 (20:58 +0000)]
Add support for removing elements out of StringMap.

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

17 years agoFor PR1196:
Reid Spencer [Sun, 11 Feb 2007 20:18:32 +0000 (20:18 +0000)]
For PR1196:
Prevent infinite loops and memory bombs by setting a ulimit on time and
space for running the dejagnu tests.

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

17 years agoReplace the ugly FindValue method with STL-like find methods.
Chris Lattner [Sun, 11 Feb 2007 19:49:41 +0000 (19:49 +0000)]
Replace the ugly FindValue method with STL-like find methods.

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

17 years agofix uninitialized variable
Chris Lattner [Sun, 11 Feb 2007 19:12:18 +0000 (19:12 +0000)]
fix uninitialized variable

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

17 years agoremove support for stringmap visitors now that iterators exist.
Chris Lattner [Sun, 11 Feb 2007 08:22:15 +0000 (08:22 +0000)]
remove support for stringmap visitors now that iterators exist.

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

17 years agoadd support for iterators.
Chris Lattner [Sun, 11 Feb 2007 08:20:35 +0000 (08:20 +0000)]
add support for iterators.

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

17 years agoadd iterator support, plus support for size() and empty().
Chris Lattner [Sun, 11 Feb 2007 08:12:13 +0000 (08:12 +0000)]
add iterator support, plus support for size() and empty().

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

17 years agosimplify code by using Value::takeName
Chris Lattner [Sun, 11 Feb 2007 01:37:51 +0000 (01:37 +0000)]
simplify code by using Value::takeName

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

17 years agoSimplify code by using value::takename
Chris Lattner [Sun, 11 Feb 2007 01:23:03 +0000 (01:23 +0000)]
Simplify code by using value::takename

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

17 years agosimplify name juggling through the use of Value::takeName.
Chris Lattner [Sun, 11 Feb 2007 01:08:35 +0000 (01:08 +0000)]
simplify name juggling through the use of Value::takeName.

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

17 years agoadd an optimization for the case where the src has no name
Chris Lattner [Sun, 11 Feb 2007 01:04:09 +0000 (01:04 +0000)]
add an optimization for the case where the src has no name

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

17 years agoFix comments to match names of functions.
Nick Lewycky [Sun, 11 Feb 2007 00:58:49 +0000 (00:58 +0000)]
Fix comments to match names of functions.

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

17 years agosimplify this code by using value::takename
Chris Lattner [Sun, 11 Feb 2007 00:39:38 +0000 (00:39 +0000)]
simplify this code by using value::takename

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

17 years agoadd a helper method: Value::takeName
Chris Lattner [Sun, 11 Feb 2007 00:37:27 +0000 (00:37 +0000)]
add a helper method: Value::takeName

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

17 years agoSplit StringMapEntry construction out of StringMap, into StringMapEntry.
Chris Lattner [Sun, 11 Feb 2007 00:10:26 +0000 (00:10 +0000)]
Split StringMapEntry construction out of StringMap, into StringMapEntry.

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

17 years agoUndo the last patch. It slowed down bcwriter by 1.8% but only sped up
Reid Spencer [Sun, 11 Feb 2007 00:03:39 +0000 (00:03 +0000)]
Undo the last patch. It slowed down bcwriter by 1.8% but only sped up
the bc reader by 0.8%. Deemed "not worth it"

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

17 years agoSwitch some std::vector's to SmallVectors. This speeds up -load-vn -gcse
Chris Lattner [Sat, 10 Feb 2007 22:15:31 +0000 (22:15 +0000)]
Switch some std::vector's to SmallVectors.  This speeds up -load-vn -gcse
by 6% on tramp3d.

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

17 years agomodify CheckGEPInstructions to take a pointer and size instead of a vector.
Chris Lattner [Sat, 10 Feb 2007 22:12:53 +0000 (22:12 +0000)]
modify CheckGEPInstructions to take a pointer and size instead of a vector.

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

17 years agoAssert that elements of packed are pointer/float/opaque.
Reid Spencer [Sat, 10 Feb 2007 22:02:45 +0000 (22:02 +0000)]
Assert that elements of packed are pointer/float/opaque.

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

17 years agoremove dead method.
Chris Lattner [Sat, 10 Feb 2007 20:37:40 +0000 (20:37 +0000)]
remove dead method.

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

17 years agoeliminate use of TargetData::getIndexedOffset that takes a vector
Chris Lattner [Sat, 10 Feb 2007 20:35:22 +0000 (20:35 +0000)]
eliminate use of TargetData::getIndexedOffset that takes a vector

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

17 years agocompletely eliminate a temporary vector
Chris Lattner [Sat, 10 Feb 2007 20:33:15 +0000 (20:33 +0000)]
completely eliminate a temporary vector

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

17 years agoeliminate temporary vectors.
Chris Lattner [Sat, 10 Feb 2007 20:31:59 +0000 (20:31 +0000)]
eliminate temporary vectors.

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

17 years agoSwitch LayoutInfo to be a DenseMap instead of an std::map. This speeds up
Chris Lattner [Sat, 10 Feb 2007 20:26:17 +0000 (20:26 +0000)]
Switch LayoutInfo to be a DenseMap instead of an std::map.  This speeds up
-load-vn -gcse by 2.3%.

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

17 years agoadd a typedef
Chris Lattner [Sat, 10 Feb 2007 20:18:06 +0000 (20:18 +0000)]
add a typedef

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

17 years agoeliminate the std::vector from StructLayout, allocating the elements immediately
Chris Lattner [Sat, 10 Feb 2007 20:15:41 +0000 (20:15 +0000)]
eliminate the std::vector from StructLayout, allocating the elements immediately
after the StructLayout object in memory.  This marginally improves locality,
speeding up -load-vn -gcse by ~0.8%.

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

17 years agoencapsulate the rest of the StructLayout members.
Chris Lattner [Sat, 10 Feb 2007 19:59:22 +0000 (19:59 +0000)]
encapsulate the rest of the StructLayout members.

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

17 years agoPrivatize StructLayout::MemberOffsets, adding an accessor
Chris Lattner [Sat, 10 Feb 2007 19:55:17 +0000 (19:55 +0000)]
Privatize StructLayout::MemberOffsets, adding an accessor

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

17 years agoadd helper method.
Chris Lattner [Sat, 10 Feb 2007 19:54:24 +0000 (19:54 +0000)]
add helper method.

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

17 years agoUse ManagedStatic to manage LayoutInfo, instead of rolling our own.
Chris Lattner [Sat, 10 Feb 2007 19:43:18 +0000 (19:43 +0000)]
Use ManagedStatic to manage LayoutInfo, instead of rolling our own.

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

17 years agoChange TargetData::getIndexedOffset interface to not require indices
Chris Lattner [Sat, 10 Feb 2007 19:33:15 +0000 (19:33 +0000)]
Change TargetData::getIndexedOffset interface to not require indices
in a vector.

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

17 years agoAllow PackedType to be constructed with an abstract type.
Reid Spencer [Sat, 10 Feb 2007 19:03:01 +0000 (19:03 +0000)]
Allow PackedType to be constructed with an abstract type.

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

17 years agofix a grammar ambiguity noticed by Duncan
Chris Lattner [Sat, 10 Feb 2007 18:35:31 +0000 (18:35 +0000)]
fix a grammar ambiguity noticed by Duncan

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

17 years agoAlign make log output with the rest of llvm.
Reid Spencer [Sat, 10 Feb 2007 15:14:00 +0000 (15:14 +0000)]
Align make log output with the rest of llvm.

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

17 years agoCompaction tables don't exist any more.
Reid Spencer [Sat, 10 Feb 2007 14:07:56 +0000 (14:07 +0000)]
Compaction tables don't exist any more.

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

17 years agoFor PR1194:
Reid Spencer [Sat, 10 Feb 2007 14:04:08 +0000 (14:04 +0000)]
For PR1194:
The bcreader counts on "primitive" types being inserted before they are
referenced in other types. With recent changes to the bcwriter, this fact
became exposed since IntegerType is no longer "primitive". We can no longer
count on all IntegerTypes being inserted early. This patch modifies
getOrCreateTypeSlot to insert any sub-type that can't possibly recurse
before we create the slot for the type. This has the benefit of reducing
the number of OpaqueType objects the reader needs to deal with.

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

17 years agoFix a comment.
Reid Spencer [Sat, 10 Feb 2007 11:59:10 +0000 (11:59 +0000)]
Fix a comment.

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

17 years agoconvert some vectors to smallvector.
Chris Lattner [Sat, 10 Feb 2007 08:33:11 +0000 (08:33 +0000)]
convert some vectors to smallvector.

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

17 years agospeed up the verifier 8.5% by using a smallvector instead of vector.
Chris Lattner [Sat, 10 Feb 2007 08:30:29 +0000 (08:30 +0000)]
speed up the verifier 8.5% by using a smallvector instead of vector.

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

17 years agoChange an std::set to a SmallPtrSet. This speeds up the verifier on
Chris Lattner [Sat, 10 Feb 2007 08:19:44 +0000 (08:19 +0000)]
Change an std::set to a SmallPtrSet.  This speeds up the verifier on
447.dealII from 1.27s to 0.86s.

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

17 years agoChange the table datastructure to be a vector<smallvector>, instead of
Chris Lattner [Sat, 10 Feb 2007 07:42:59 +0000 (07:42 +0000)]
Change the table datastructure to be a vector<smallvector>, instead of
vector<vector> to avoid allocations.  This speeds up bcwriting of 447.dealII
from 0.8276 to 0.7637s (8.4%).

This concludes this round of proding the bcwriter into submission.  Final
speedup from 24.4s to 0.7637s (32x).

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

17 years agoMake BytecodeWriter::outputValueSymbolTable *significantly* less abusive
Chris Lattner [Sat, 10 Feb 2007 07:31:44 +0000 (07:31 +0000)]
Make BytecodeWriter::outputValueSymbolTable *significantly* less abusive
of memory, through a combination of DenseMap and SmallVector.  This speeds
up bcwriter on 447.dealII from 1.31s to 0.82s (60% faster).

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

17 years agomake the datastructure used in BytecodeWriter::outputValueSymbolTable
Chris Lattner [Sat, 10 Feb 2007 07:11:51 +0000 (07:11 +0000)]
make the datastructure used in BytecodeWriter::outputValueSymbolTable
*slightly* less abusive of memory.  This speeds up the bcwriter from
1.83s to 1.32s (39% faster) on 447.dealII.

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

17 years agoSwitch typemap over to DenseMap. No significant speedup.
Chris Lattner [Sat, 10 Feb 2007 07:06:46 +0000 (07:06 +0000)]
Switch typemap over to DenseMap.  No significant speedup.

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

17 years agoSwitch NodeMap from an std::map to a DenseMap. This speeds up bcwriting
Chris Lattner [Sat, 10 Feb 2007 07:01:05 +0000 (07:01 +0000)]
Switch NodeMap from an std::map to a DenseMap.  This speeds up bcwriting
of 447.dealII from 3.3s to 1.8s (80% faster).

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

17 years agoMake find return the appropriate iterator/const_iterator
Chris Lattner [Sat, 10 Feb 2007 06:58:17 +0000 (06:58 +0000)]
Make find return the appropriate iterator/const_iterator

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

17 years agouse typedefs where appropriate
Chris Lattner [Sat, 10 Feb 2007 06:42:23 +0000 (06:42 +0000)]
use typedefs where appropriate

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

17 years agoThe ModuleLevel vector is often quite sparse. Switch it to a DenseMap. This
Chris Lattner [Sat, 10 Feb 2007 06:38:19 +0000 (06:38 +0000)]
The ModuleLevel vector is often quite sparse.  Switch it to a DenseMap.  This
speeds up bcwriting of 447.dealII by 40%, from 4.63s to 3.32s.

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