Chris Lattner [Tue, 15 Mar 2005 23:03:34 +0000 (23:03 +0000)]
fix some 80 column violations
Add support for programs that define main in a .a file, such as f2c'd programs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20631
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 22:55:17 +0000 (22:55 +0000)]
consolidate LinkFiles into LinkItems, use lib_* iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20630
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 22:51:40 +0000 (22:51 +0000)]
consolidate LinkLibraries into LinkItems
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20629
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 22:47:18 +0000 (22:47 +0000)]
make sure to mark nodes in the globals graph incomplete after computing it
so that external globals (and whatever they point to) are marked incomplete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20628
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 22:10:04 +0000 (22:10 +0000)]
fix crashes when we only have a prototype for main.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20627
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 21:36:50 +0000 (21:36 +0000)]
Fix a crash that happens when mapping something like this:
{ short, short }
to
short
where the second short maps onto the second field of the first struct. In
this case, the struct index is not aligned, so we should avoid calling
getLink(2), which asserts out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20626
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Tue, 15 Mar 2005 19:51:19 +0000 (19:51 +0000)]
sure, I can set a flag, but if I never check it, why bother setting it? Should fix 20 programs :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20623
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 17:52:18 +0000 (17:52 +0000)]
Make computeGGToGMapping compute an invnodemap
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20622
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 17:52:07 +0000 (17:52 +0000)]
remove warning, make computeGGToGMapping return an invnodemap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20621
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 17:51:51 +0000 (17:51 +0000)]
add support for hashing nodehandles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20620
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 17:14:09 +0000 (17:14 +0000)]
Finally fix (the right way) the problem where functions like this:
void foo() {
G = 1;
}
would have an empty DSGraph even though G (a global) is directly used
in the function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20619
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 16:55:04 +0000 (16:55 +0000)]
Start using retnodes_* for iteration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20618
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 16:46:11 +0000 (16:46 +0000)]
add iterators for return nodes list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20617
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 15:48:22 +0000 (15:48 +0000)]
method renamed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20616
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 15:48:06 +0000 (15:48 +0000)]
Replace more a*'s with arg_*'s, thanks to Gabor Greif!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20615
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 15:46:23 +0000 (15:46 +0000)]
add missing copyright header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20614
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Tue, 15 Mar 2005 07:20:55 +0000 (07:20 +0000)]
Stop using abegin and aend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20610
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Tue, 15 Mar 2005 07:12:30 +0000 (07:12 +0000)]
Stop using abegin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20609
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Tue, 15 Mar 2005 07:02:26 +0000 (07:02 +0000)]
Use arg_iterator and arg_begin and arg_end functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20608
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 15 Mar 2005 06:31:46 +0000 (06:31 +0000)]
Add EquivClassGraphs.cpp to VC++ project.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20607
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 06:29:12 +0000 (06:29 +0000)]
avoid varialbe name collisions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20606
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 15 Mar 2005 06:21:40 +0000 (06:21 +0000)]
Do it right...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20605
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 15 Mar 2005 06:15:08 +0000 (06:15 +0000)]
Fix VC++ breakage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20604
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 05:19:49 +0000 (05:19 +0000)]
stop using method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20603
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 05:19:20 +0000 (05:19 +0000)]
methods removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20602
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 05:17:48 +0000 (05:17 +0000)]
remove reverse BB iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20601
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 05:13:47 +0000 (05:13 +0000)]
remove a whole bunch of dead methods. Noone should use reverse iterators anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20600
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 05:03:36 +0000 (05:03 +0000)]
stop using arg_front
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20599
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 04:59:17 +0000 (04:59 +0000)]
stop using arg_back
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20598
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 04:54:21 +0000 (04:54 +0000)]
This mega patch converts us from using Function::a{iterator|begin|end} to
using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*.
This patch is contributed by Gabor Greif, thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20597
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 04:48:32 +0000 (04:48 +0000)]
switch from a* to arg_* and g* to global_* for argument/global var iterators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20596
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 04:40:24 +0000 (04:40 +0000)]
Don't crash if computing a mapping to a node with zero size
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20595
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 00:58:16 +0000 (00:58 +0000)]
rename method, add counterpart
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20593
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 15 Mar 2005 00:58:09 +0000 (00:58 +0000)]
Rename method, add counterpart.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20592
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Mar 2005 23:49:40 +0000 (23:49 +0000)]
Remove the reverse iterators for arguments and global vars.
Rename argument iterators arg_* instead of a*
Remove global variable iterators global_* instead of g*.
Keep the old names for temporary compatibility.
Patch contributed by Gabor Greif!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20591
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 14 Mar 2005 19:23:45 +0000 (19:23 +0000)]
FP 0.0 setcc optimization, and generate short branch sequence for setcc(FP) rather than stack usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20589
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Mar 2005 19:22:47 +0000 (19:22 +0000)]
add a method to compute a commonly used mapping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20588
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Mar 2005 19:22:33 +0000 (19:22 +0000)]
Add a useful method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20587
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 20:36:01 +0000 (20:36 +0000)]
regardless of whether or not the client things we should mark globals incomplete,
ALWAYS mark them incomplete if they are external!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20586
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 20:32:26 +0000 (20:32 +0000)]
Make sure to remove incomplete markers before we add to them! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20585
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 20:22:10 +0000 (20:22 +0000)]
The incoming arguments to main (the argv list) are not complete!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20584
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 20:15:06 +0000 (20:15 +0000)]
After finishing BU analysis, move all global variables from the globals
graph into main and mark them complete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20583
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 19:51:24 +0000 (19:51 +0000)]
ADd support for printing eqgraphs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20582
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 19:50:40 +0000 (19:50 +0000)]
Add support for printing EQ graphs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20581
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 19:05:05 +0000 (19:05 +0000)]
Replace linear search with logrithmic one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20580
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 19:04:41 +0000 (19:04 +0000)]
add a StructLayout::getElementContainingOffset method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20579
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Mar 2005 19:04:04 +0000 (19:04 +0000)]
add a helper method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20578
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Sun, 13 Mar 2005 00:43:20 +0000 (00:43 +0000)]
Should fix mesa
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20577
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Mar 2005 14:58:28 +0000 (14:58 +0000)]
make sure to mark nodes returned from functions as incomplete
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20576
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Mar 2005 12:08:52 +0000 (12:08 +0000)]
remove this from the PA namespace, leaving it in the llvm ns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20574
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Mar 2005 11:51:30 +0000 (11:51 +0000)]
Move this from the pool allocator project to here, where it logically belongs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20570
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Mar 2005 03:43:38 +0000 (03:43 +0000)]
this doesn't fail on the suns either!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20567
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 11 Mar 2005 21:18:18 +0000 (21:18 +0000)]
Move link to GCC prefetch info here, since it's gone from Open Projects page
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20566
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Mar 2005 21:18:00 +0000 (21:18 +0000)]
this passes on darwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20565
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Mar 2005 20:17:04 +0000 (20:17 +0000)]
Fix computation of compiled objects, contributed by Vladimir Merzliakov!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20564
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Fri, 11 Mar 2005 17:48:05 +0000 (17:48 +0000)]
remove a pseudo instruction and improve inline constant generation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20563
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Mar 2005 06:16:26 +0000 (06:16 +0000)]
prefetch is now supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20562
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Mar 2005 06:14:23 +0000 (06:14 +0000)]
new testcase for __builtin_prefetch support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20561
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 11 Mar 2005 04:15:18 +0000 (04:15 +0000)]
* Remove extraneous spaces
* Convert some tabs to spaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20560
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 11 Mar 2005 03:58:53 +0000 (03:58 +0000)]
Add SelectionDAG library to PPC JIT so that lli will link when
PPC32ISelPattern.cpp is present.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20559
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Mar 2005 00:00:56 +0000 (00:00 +0000)]
Fix some crashes noted by John Mellor-Crummey's group.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20558
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 11 Mar 2005 00:00:33 +0000 (00:00 +0000)]
Sprinkle code examples and command-line interaction examples with some style
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20557
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 10 Mar 2005 22:51:59 +0000 (22:51 +0000)]
* Add directions to send output of nightly test script to llvm-testresults@cs
* Use the doc_code class to nightly test script example
* Enclose file names in <tt> tags
* Achieve compliance with HTML-4.01 Strict
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20556
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Mar 2005 20:59:51 +0000 (20:59 +0000)]
I didn't mean to check this in. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20555
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Mar 2005 20:55:51 +0000 (20:55 +0000)]
Fix a bug where we would incorrectly do a sign ext instead of a zero ext
because we were checking the wrong thing. Thanks to andrew for pointing
this out!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20554
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Thu, 10 Mar 2005 20:15:09 +0000 (20:15 +0000)]
yay for camel_cvs diff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20552
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Thu, 10 Mar 2005 19:02:02 +0000 (19:02 +0000)]
some typoes and .bss isn't liked, at all
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20542
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Thu, 10 Mar 2005 16:32:33 +0000 (16:32 +0000)]
Replace tabs with spaces, separate function arguments with a space
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20538
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 10 Mar 2005 16:26:50 +0000 (16:26 +0000)]
Improve formatting of the sent mail for the dj test results.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20537
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 23:05:19 +0000 (23:05 +0000)]
Allow the live interval analysis pass to be a bit more aggressive about
numbering values in live ranges for physical registers.
The alpha backend currently generates code that looks like this:
vreg = preg
...
preg = vreg
use preg
...
preg = vreg
use preg
etc. Because vreg contains the value of preg coming in, each of the
copies back into preg contain that initial value as well.
In the case of the Alpha, this allows this testcase:
void "foo"(int %blah) {
store int 5, int *%MyVar
store int 12, int* %MyVar2
ret void
}
to compile to:
foo:
ldgp $29, 0($27)
ldiq $0,5
stl $0,MyVar
ldiq $0,12
stl $0,MyVar2
ret $31,($26),1
instead of:
foo:
ldgp $29, 0($27)
bis $29,$29,$0
ldiq $1,5
bis $0,$0,$29
stl $1,MyVar
ldiq $1,12
bis $0,$0,$29
stl $1,MyVar2
ret $31,($26),1
This does not seem to have any noticable effect on X86 code.
This fixes PR535.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20536
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Wed, 9 Mar 2005 20:48:23 +0000 (20:48 +0000)]
minor correction for Register that isn't used
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20535
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 18:37:12 +0000 (18:37 +0000)]
constant fold FP_ROUND_INREG, ZERO_EXTEND_INREG, and SIGN_EXTEND_INREG
This allows the alpha backend to compile:
bool %test(uint %P) {
%c = seteq uint %P, 0
ret bool %c
}
into:
test:
ldgp $29, 0($27)
ZAP $16,240,$0
CMPEQ $0,0,$0
AND $0,1,$0
ret $31,($26),1
instead of:
test:
ldgp $29, 0($27)
ZAP $16,240,$0
ldiq $1,0
ZAP $1,240,$1
CMPEQ $0,$1,$0
AND $0,1,$0
ret $31,($26),1
... and fixes PR534.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20534
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 17:34:27 +0000 (17:34 +0000)]
correct the computation of the isAbstract bit for types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20533
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 16:29:52 +0000 (16:29 +0000)]
Fix Regression/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll, a miscompilation
that Alkis found with Java, thanks Alkis!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20531
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 16:29:22 +0000 (16:29 +0000)]
new testcase for a -basicaa bug that Alkis found with Java.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20530
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 9 Mar 2005 15:19:41 +0000 (15:19 +0000)]
Fix a typo in an assertion comment.
Patch contributed by Vladimir Merzliakov.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20529
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 05:35:16 +0000 (05:35 +0000)]
Use static_cast and #include Instructions.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20528
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 05:34:41 +0000 (05:34 +0000)]
Export two methods for getting -X and A-B.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20527
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 05:34:23 +0000 (05:34 +0000)]
export two methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20526
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 9 Mar 2005 03:31:02 +0000 (03:31 +0000)]
get bugpoint working on ia64, by building .so's with -fpic. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20525
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Mar 2005 22:53:09 +0000 (22:53 +0000)]
Fix a crash handling 'undef bool', fixing an llc crash on 186.crafty
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20523
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 8 Mar 2005 17:02:05 +0000 (17:02 +0000)]
Patch to make assembly output compatible with mingw compilation (identical
to cygwin)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20520
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Mar 2005 16:19:59 +0000 (16:19 +0000)]
Make sure to remove all dead type names from the symbol table, not just
struct types. This fixes Regression/CodeGen/CBackend/2005-03-08-RecursiveTypeCrash.ll,
a crash on Java output that Alkis reported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20519
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 8 Mar 2005 16:19:02 +0000 (16:19 +0000)]
new testcase that crashes the CBE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20518
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Tue, 8 Mar 2005 03:56:50 +0000 (03:56 +0000)]
Clarify inability to generate assembly, and note that VC++ Express works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20516
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Tue, 8 Mar 2005 00:26:08 +0000 (00:26 +0000)]
Single characters should be printed out as chars, not strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20515
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Mar 2005 22:13:59 +0000 (22:13 +0000)]
Various cleanups and clarifications, thanks to Gabor Greif for contributing this patch!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20514
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Mar 2005 20:35:45 +0000 (20:35 +0000)]
Fix problems compiling with G++ 4.x.x with -pedantic. Thanks to
Vladimir Merzliakov for the patch!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20513
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Mar 2005 20:31:38 +0000 (20:31 +0000)]
fix another typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20512
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Mar 2005 20:30:51 +0000 (20:30 +0000)]
fix typeo that Gabor Greif noticed!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20511
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Mar 2005 03:19:50 +0000 (03:19 +0000)]
move the reassociation pass after the LICM pass. This speeds up mgrid
from 10.27s to 9.57s with the CBE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20508
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 7 Mar 2005 02:59:36 +0000 (02:59 +0000)]
Fix an apparent ambiguity compiling on PPC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20507
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Mar 2005 22:52:29 +0000 (22:52 +0000)]
fix a bug where we thought arguments were constants :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20506
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Mar 2005 22:36:12 +0000 (22:36 +0000)]
Fix Regression/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll,
hopefully not breaking too many other things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20505
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Mar 2005 22:24:45 +0000 (22:24 +0000)]
cleanup the test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20504
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Mar 2005 22:23:31 +0000 (22:23 +0000)]
check that we only insert one phi node per loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20503
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Mar 2005 22:15:24 +0000 (22:15 +0000)]
Add testcase for this:
(3) Do not reduce element sizes of small power of two:
char s[10];
for (i)
...s[i] ...
when the indvar is not eliminable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20502
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Mar 2005 22:06:22 +0000 (22:06 +0000)]
implement Transforms/LoopStrengthReduce/invariant_value_first_arg.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20501
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Mar 2005 22:06:09 +0000 (22:06 +0000)]
testcase for A[invariant][indvar] where invariant is an instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20500
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 6 Mar 2005 22:04:27 +0000 (22:04 +0000)]
add test for this:
(1) Allow loop invariant expressions to come before the induction variable (instead of just
constants):
int x;
for (i)
...a[x][i]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20499
91177308-0d34-0410-b5e6-
96231b3b80d8