Andrew Lenharth [Sat, 12 Nov 2005 19:06:28 +0000 (19:06 +0000)]
fix more regressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24335
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Sat, 12 Nov 2005 19:04:09 +0000 (19:04 +0000)]
fix READCYCLECOUNTER
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24334
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 18:35:13 +0000 (18:35 +0000)]
this is no apparently passing on alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24331
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 18:34:09 +0000 (18:34 +0000)]
trivial cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24330
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 18:31:54 +0000 (18:31 +0000)]
Fix reading LLVM 1.3 bc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24329
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 18:22:38 +0000 (18:22 +0000)]
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24328
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 18:21:21 +0000 (18:21 +0000)]
refactor grammar to eliminate shift-reduce conflict. Move alignment checking
code out of all of the clients and into OptAlign/OptCAlign
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24327
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 10:07:47 +0000 (10:07 +0000)]
Shrink the Type class from 32 to 28 bytes on Darwin (which has silly 32-bit
bools).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24326
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 08:42:30 +0000 (08:42 +0000)]
remove a dead method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24325
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 08:39:48 +0000 (08:39 +0000)]
Unswitch a loop, add more assertions, eliminate use of removeUserFromConcrete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24324
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 08:22:41 +0000 (08:22 +0000)]
Tiny speedup, improve comments and code organization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24323
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 01:46:21 +0000 (01:46 +0000)]
Describe section name encoding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24322
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 01:33:40 +0000 (01:33 +0000)]
Read and write section info from/to .bc files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24321
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 12 Nov 2005 01:01:50 +0000 (01:01 +0000)]
Wrap long line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24320
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 12 Nov 2005 00:59:39 +0000 (00:59 +0000)]
Fix VC++ warning that bools cannot be ORed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24319
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 12 Nov 2005 00:59:01 +0000 (00:59 +0000)]
Fix operator precedence bug caught by VC++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24318
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 00:45:07 +0000 (00:45 +0000)]
document sections
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24317
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 00:11:49 +0000 (00:11 +0000)]
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24316
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 00:11:30 +0000 (00:11 +0000)]
add a token
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24315
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 00:11:10 +0000 (00:11 +0000)]
Parse section info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24314
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 00:10:19 +0000 (00:10 +0000)]
print section info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24313
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 00:10:02 +0000 (00:10 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24310
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Nov 2005 00:09:49 +0000 (00:09 +0000)]
Add support for putting globals in a particular section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24309
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 11 Nov 2005 23:08:46 +0000 (23:08 +0000)]
fix yet more regressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24308
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 11 Nov 2005 23:02:55 +0000 (23:02 +0000)]
generate chain result
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24307
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 11 Nov 2005 22:48:54 +0000 (22:48 +0000)]
added a chain output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24306
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 11 Nov 2005 19:52:25 +0000 (19:52 +0000)]
Fix a bunch more alpha regressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24304
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 11 Nov 2005 19:02:54 +0000 (19:02 +0000)]
prevent cse of readcyclecounter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24303
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 11 Nov 2005 16:47:30 +0000 (16:47 +0000)]
continued readcyclecounter support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24300
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 11 Nov 2005 16:45:18 +0000 (16:45 +0000)]
Add support for a cycle counter intrinsic. As basically all processors have
this and have it in about the same form, I think this makes sense.
on X86, you do a RDTSC (64bit result, from any ring since the P5MMX)
on Alpha, you do a RDCC
on PPC, there is a sequence which may or may not work depending on how things
are setup by the OS. Or something like that. Maybe someone who knows PPC
can add support. Something about the time base register.
on Sparc, you read %tick, which in some solaris versions (>=8) is readable by
userspace
on IA64 read ar.itc
So I think the ulong is justified since all of those are 64bit.
Support is slighly flaky on old chips (P5 and lower) and sometimes
depends on OS (PPC, Sparc). But for modern OS/Hardware (aka this decade),
we should be ok.
I am still not sure what to do about lowering. I can either see a lower to 0, to
gettimeofday (or the target os equivalent), or loudly complaining and refusing to
continue.
I am commiting an Alpha implementation. I will add the X86 implementation if I
have to (I have use of it in the near future), but if someone who knows that
backend (and the funky multi-register results) better wants to add it, it would
take them a lot less time ;)
TODO: better lowering and legalizing, and support more platforms
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24299
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Fri, 11 Nov 2005 02:15:27 +0000 (02:15 +0000)]
Fix some typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24298
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Fri, 11 Nov 2005 01:34:02 +0000 (01:34 +0000)]
Add new file to Visual Studio.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24297
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 23:24:26 +0000 (23:24 +0000)]
Fix the optimized code handling of user asm strings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24296
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 21:59:25 +0000 (21:59 +0000)]
Make BB and CPI labels use the function number, not the function name as a
uniquing id. This makes things happy when the function name is quoted,
preventing labels like LBB"foo"_2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24295
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 21:47:01 +0000 (21:47 +0000)]
speedup the common case where nothing needs to be quoted
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24294
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 21:40:01 +0000 (21:40 +0000)]
Allow per-character control over what target assemblers allow in symbol
names. This also changes the default to allow all of "$_." in addition
to letters and numbers as symbol names. If you don't want this, use
markCharUnacceptable to remove one of these or markCharAcceptable to add
to the set. This corresponds with what GAS accepts by default.
Also, this includes some minor speedups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24293
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 21:39:29 +0000 (21:39 +0000)]
do not allow '.' in symbol names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24292
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 21:39:12 +0000 (21:39 +0000)]
Allow per-character control over what target assemblers allow in symbol
names. This also changes the default to allow all of "$_." in addition
to letters and numbers as symbol names. If you don't want this, use
markCharUnacceptable to remove one of these or markCharAcceptable to add
to the set. This corresponds with what GAS accepts by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24291
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Thu, 10 Nov 2005 19:39:09 +0000 (19:39 +0000)]
the pain isn't gone unless the phinodes are spilled too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24288
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 19:33:43 +0000 (19:33 +0000)]
Darwin supports quoted labels. This implements:
test/Regression/CodeGen/PowerPC/darwin-labels.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24287
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 19:33:04 +0000 (19:33 +0000)]
Check that this compiles to a label with a space in it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24284
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 19:30:07 +0000 (19:30 +0000)]
Add a new option for targets that accept quoted labels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24283
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 19:02:52 +0000 (19:02 +0000)]
Remove M, which is dead. Eliminate a dead typedef. Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24282
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 19:02:18 +0000 (19:02 +0000)]
remove the M instance var
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24281
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:55:09 +0000 (18:55 +0000)]
This method is no longer static
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24280
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:53:25 +0000 (18:53 +0000)]
Call this method with the object we have
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24279
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:49:46 +0000 (18:49 +0000)]
nuke blank line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24278
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:48:58 +0000 (18:48 +0000)]
Make this more efficient of the common case where we are only mangling globals.
Do not mangle internal global names that do not collide with anything.
This gives us strings that now look like this:
__2E_str_1: ; '.str_1'
.asciz "foo"
instead of this:
l1__2E_str_1: ; '.str_1'
.asciz "foo"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24277
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:46:57 +0000 (18:46 +0000)]
minor interface changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24276
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:36:17 +0000 (18:36 +0000)]
Get rid of casts by #including the right header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24275
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:20:29 +0000 (18:20 +0000)]
Make the aix asm printer interface properly with the parent class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24274
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:09:27 +0000 (18:09 +0000)]
Compile C strings to:
l1__2E_str_1: ; '.str_1'
.asciz "foo"
not:
.align 0
l1__2E_str_1: ; '.str_1'
.asciz "foo"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24273
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:06:33 +0000 (18:06 +0000)]
add support for .asciz, and enable it by default. If your target assemblerdoesn't support .asciz, just set AscizDirective to null in your asmprinter.
This compiles C strings to:
l1__2E_str_1: ; '.str_1'
.asciz "foo"
instead of:
l1__2E_str_1: ; '.str_1'
.ascii "foo\000"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24272
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 18:05:57 +0000 (18:05 +0000)]
add support for .asciz, and enable it by default. If your target assembler
doesn't support .asciz, just set AscizDirective to null in your asmprinter.
This compiles C strings to:
l1__2E_str_1: ; '.str_1'
.asciz "foo"
instead of:
l1__2E_str_1: ; '.str_1'
.ascii "foo\000"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24271
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Thu, 10 Nov 2005 17:35:34 +0000 (17:35 +0000)]
this works with backedges to the existing entry block alot better
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24270
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Thu, 10 Nov 2005 16:59:55 +0000 (16:59 +0000)]
fix a bunch of regressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24269
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Thu, 10 Nov 2005 02:07:45 +0000 (02:07 +0000)]
needs to go here to apparently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24268
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Thu, 10 Nov 2005 01:58:38 +0000 (01:58 +0000)]
The pass everyone has been waiting for!
Reg2Mem
for fun you can opt -reg2mem -mem2reg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24267
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 01:44:22 +0000 (01:44 +0000)]
Packed elements must be a power of two in size
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24266
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 01:42:43 +0000 (01:42 +0000)]
Force vectors to be a power of two in size
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24265
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Nov 2005 01:40:59 +0000 (01:40 +0000)]
Force packed vectors to be a power of two in length.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24264
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 23:47:37 +0000 (23:47 +0000)]
Switch the allnodes list from a vector of pointers to an ilist of nodes.This eliminates the vector, allows constant time removal of a node froma graph, and makes iteration over the all nodes list stable when adding
nodes to the graph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24263
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 23:46:43 +0000 (23:46 +0000)]
Switch the allnodes list from a vector of pointers to an ilist of nodes.
This eliminates the vector, allows constant time removal of a node from
a graph, and makes iteration over the all nodes list stable when adding
nodes to the graph.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24262
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 19:44:01 +0000 (19:44 +0000)]
Refactor intrinsic lowering stuff out of visitCall
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24261
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Wed, 9 Nov 2005 19:17:08 +0000 (19:17 +0000)]
whatever. Intermediate patch to see what breaks. Seems ok.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24260
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 18:48:57 +0000 (18:48 +0000)]
Handle the trivial (but common) two-op case more efficiently
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24259
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 18:22:42 +0000 (18:22 +0000)]
Nuke noop copies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24258
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 16:50:40 +0000 (16:50 +0000)]
Fix CodeGen/X86/shift-folding.ll:test3 on X86
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24256
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 05:28:45 +0000 (05:28 +0000)]
Disable some overly-aggressive checking code. This speeds up the local
allocator from 23s to 11s on kc++ in debug mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24255
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 05:03:03 +0000 (05:03 +0000)]
Avoid creating a token factor node in trivially redundant cases. This
eliminates almost one node per block in common cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24254
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Nov 2005 04:45:33 +0000 (04:45 +0000)]
Handle GEP's a bit more intelligently. Fold constant indices early and
turn power-of-two multiplies into shifts early to improve compile time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24253
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 23:32:44 +0000 (23:32 +0000)]
Allocate the right amount of memory for this vector up front.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24252
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 23:30:28 +0000 (23:30 +0000)]
Change the ValueList array for each node to be shared instead of individuallyallocated. Further, in the common case where a node has a single value, justreference an element from a small array. This is a small compile-time win.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24251
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 23:30:11 +0000 (23:30 +0000)]
Change the ValueList array for each node to be shared instead of individually
allocated. Further, in the common case where a node has a single value, just
reference an element from a small array. This is a small compile-time wi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24250
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 22:07:03 +0000 (22:07 +0000)]
Switch the operandlist/valuelist from being vectors to being just an array.This saves 12 bytes from SDNode, but doesn't speed things up substantially
(our graphs apparently already fit within the cache on my g5). In any case
this reduces memory usage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24249
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 22:06:23 +0000 (22:06 +0000)]
Switch the operandlist/valuelist from being vectors to being just an array.
This saves 12 bytes from SDNode, but doesn't speed things up substantially
(our graphs apparently already fit within the cache on my g5). In any case
this reduces memory usage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24248
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 21:54:57 +0000 (21:54 +0000)]
Explicitly initialize some instance vars
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24247
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 21:29:17 +0000 (21:29 +0000)]
Rip out 1.6ness, bump version # to 1.7cvs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24246
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 8 Nov 2005 21:13:01 +0000 (21:13 +0000)]
Updated version to 1.7cvs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24244
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 8 Nov 2005 21:11:33 +0000 (21:11 +0000)]
Merged from RELEASE_16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24243
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 18:52:57 +0000 (18:52 +0000)]
adjust itf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24242
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 18:52:27 +0000 (18:52 +0000)]
Clean up RemoveDeadNodes significantly, by eliminating the need for a temporary
set and eliminating the need to iterate whenever something is removed (which
can be really slow in some cases). Thx to Jim for pointing out something silly
I was getting stuck on. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24241
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 02:12:47 +0000 (02:12 +0000)]
Add a new option to indicate we want the code generator to emit code quickly,
not spending tons of time microoptimizing it. This is useful for an -O0
style of build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24235
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 02:12:17 +0000 (02:12 +0000)]
Add a new -fast option, which generates code quickly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24234
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Nov 2005 02:11:51 +0000 (02:11 +0000)]
Add a new option to indicate we want the code generator to emit code quickly,not spending tons of time microoptimizing it. This is useful for an -O0style of build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24233
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Mon, 7 Nov 2005 19:08:53 +0000 (19:08 +0000)]
Let's try ignoring resource utilization on the backward pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24231
91177308-0d34-0410-b5e6-
96231b3b80d8
Duraid Madina [Mon, 7 Nov 2005 03:11:02 +0000 (03:11 +0000)]
add support for storing and returning bools
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24228
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 17:43:20 +0000 (17:43 +0000)]
Always compute max align.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24227
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 17:40:18 +0000 (17:40 +0000)]
Change a comment slightly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24226
91177308-0d34-0410-b5e6-
96231b3b80d8
Duraid Madina [Sun, 6 Nov 2005 13:43:30 +0000 (13:43 +0000)]
just some random hacking - calls (particularly indirect) need a lot of
love (especially with -sched=simple)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24225
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Sun, 6 Nov 2005 09:00:38 +0000 (09:00 +0000)]
Add the necessary support to the ISel to allow targets to codegen the new
alignment information appropriately. Includes code for PowerPC to support
fixed-size allocas with alignment larger than the stack. Support for
arbitrarily aligned dynamic allocas coming soon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24224
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 08:23:17 +0000 (08:23 +0000)]
minor clarity changes, no functionality difference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24223
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 08:22:18 +0000 (08:22 +0000)]
Make sure to initialize the alignment field
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24222
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 08:02:57 +0000 (08:02 +0000)]
document alignment on globals, functions, and allocation instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24221
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 07:48:11 +0000 (07:48 +0000)]
Minor correction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24220
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 07:46:13 +0000 (07:46 +0000)]
don't misencode CC#'s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24219
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 07:43:39 +0000 (07:43 +0000)]
encode/decode function alignment in bc files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24218
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 07:20:25 +0000 (07:20 +0000)]
describe extensions to the .bc format for function/global alignment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24217
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 07:11:04 +0000 (07:11 +0000)]
Read/write global variable alignments if present
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24216
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Nov 2005 06:52:11 +0000 (06:52 +0000)]
add alignment info for globals and functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24213
91177308-0d34-0410-b5e6-
96231b3b80d8