Chris Lattner
|
2f65e8798f
|
Add new SIGN_EXTEND_INREG, ZERO_EXTEND_INREG, and FP_ROUND_INREG operators.
llvm-svn: 19568
|
2005-01-15 06:17:04 +00:00 |
|
Chris Lattner
|
98611ce291
|
Add a new target-independent code generator flag.
llvm-svn: 19567
|
2005-01-15 06:00:32 +00:00 |
|
Chris Lattner
|
f3d950e816
|
Add support for truncstore and *extload.
llvm-svn: 19566
|
2005-01-15 05:22:24 +00:00 |
|
Chris Lattner
|
94b8a3e50c
|
Add intitial support for promoting some operators.
llvm-svn: 19565
|
2005-01-15 05:21:40 +00:00 |
|
Chris Lattner
|
fbef45a056
|
Improve output precision.
llvm-svn: 19564
|
2005-01-15 00:07:19 +00:00 |
|
Reid Spencer
|
ad96095c97
|
We don't distribute the operating system specific directories any more.
llvm-svn: 19563
|
2005-01-14 22:43:01 +00:00 |
|
Chris Lattner
|
2dfbc4fddd
|
Adjust to CopyFromReg changes, implement deletion of truncating/extending
stores/loads.
llvm-svn: 19562
|
2005-01-14 22:38:01 +00:00 |
|
Chris Lattner
|
27c91fac94
|
Adjust to CopyFromREg changes.
llvm-svn: 19561
|
2005-01-14 22:37:41 +00:00 |
|
Chris Lattner
|
3df2651c81
|
Change CopyFromReg to take and produce a chain node, allowing it to be used
with physregs that are not live across the entire block.
llvm-svn: 19560
|
2005-01-14 22:37:20 +00:00 |
|
Chris Lattner
|
0974002024
|
Start implementing truncating stores and extending loads.
llvm-svn: 19559
|
2005-01-14 22:08:15 +00:00 |
|
Chris Lattner
|
c73bf62770
|
Start adding some new operators, give IMPLICIT_DEF a chain operand.
llvm-svn: 19558
|
2005-01-14 22:07:46 +00:00 |
|
Chris Lattner
|
c032990335
|
Fix Regression/CodeGen/PowerPC/2005-01-14-UndefLong.ll
llvm-svn: 19557
|
2005-01-14 20:22:02 +00:00 |
|
Chris Lattner
|
4ee1d50b9c
|
New testcase, problem found by Rob.
llvm-svn: 19556
|
2005-01-14 20:21:51 +00:00 |
|
Chris Lattner
|
b0b49268c4
|
Fix: Regression/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
llvm-svn: 19555
|
2005-01-14 19:31:00 +00:00 |
|
Chris Lattner
|
e846b58c2a
|
Testcase that crashes the PPC backend. Thanks to Rob for finding this.
llvm-svn: 19554
|
2005-01-14 19:30:42 +00:00 |
|
Chris Lattner
|
708ff662ba
|
Fix some bugs in an xform added yesterday. This fixes Prolangs-C/allroots.
llvm-svn: 19553
|
2005-01-14 17:35:12 +00:00 |
|
Chris Lattner
|
13fd87be57
|
Fix a compile crash on spiff
llvm-svn: 19552
|
2005-01-14 17:17:59 +00:00 |
|
Reid Spencer
|
e400f3e8c7
|
Allow the Echo and EchoCmd variables to be overridden.
llvm-svn: 19551
|
2005-01-14 16:33:36 +00:00 |
|
Reid Spencer
|
daa2e6471e
|
Fix the path from ../lib/Debug to ../Debug/lib per changes to Makefiles.
llvm-svn: 19550
|
2005-01-14 16:32:39 +00:00 |
|
Chris Lattner
|
2087f3c8e9
|
Improve compatibility with acc
llvm-svn: 19549
|
2005-01-14 15:54:24 +00:00 |
|
Chris Lattner
|
1e5620dfe1
|
Make this compatible with the HP/intel compiler. Fix by Duraid, thanks!
llvm-svn: 19548
|
2005-01-14 15:53:26 +00:00 |
|
Alkis Evlogimenos
|
20daa541d7
|
Correctly update configure to configure the llvm-java project
llvm-svn: 19546
|
2005-01-14 07:52:28 +00:00 |
|
Jeff Cohen
|
7dfbb46f7f
|
Fix and improve win32 path validation.
llvm-svn: 19545
|
2005-01-14 04:09:39 +00:00 |
|
Reid Spencer
|
4e90250e81
|
Make asctime_r work for HP/UX.
llvm-svn: 19544
|
2005-01-14 00:50:50 +00:00 |
|
Chris Lattner
|
9add8dfd15
|
More testcases
llvm-svn: 19543
|
2005-01-14 00:26:25 +00:00 |
|
Chris Lattner
|
6b519e3314
|
if two gep comparisons only differ by one index, compare that index directly.
This allows us to better optimize begin() -> end() comparisons in common cases.
llvm-svn: 19542
|
2005-01-14 00:20:05 +00:00 |
|
Chris Lattner
|
283b7d9809
|
Do not overrun iterators. This fixes a 176.gcc crash
llvm-svn: 19541
|
2005-01-13 23:26:48 +00:00 |
|
Chris Lattner
|
eff86ebbc3
|
Add a method
llvm-svn: 19540
|
2005-01-13 23:26:28 +00:00 |
|
Chris Lattner
|
b3462cf8d5
|
new testcase
llvm-svn: 19539
|
2005-01-13 23:26:14 +00:00 |
|
Chris Lattner
|
c6f23adb2a
|
Add a method
llvm-svn: 19538
|
2005-01-13 22:58:50 +00:00 |
|
Chris Lattner
|
b3dfd0aecd
|
Turn select C, (X+Y), (X-Y) --> (X+(select C, Y, (-Y))). This occurs in
the 'sim' program and probably elsewhere. In sim, it comes up for cases
like this:
#define round(x) ((x)>0.0 ? (x)+0.5 : (x)-0.5)
double G;
void T(double X) { G = round(X); }
(it uses the round macro a lot). This changes the LLVM code from:
%tmp.1 = setgt double %X, 0.000000e+00 ; <bool> [#uses=1]
%tmp.4 = add double %X, 5.000000e-01 ; <double> [#uses=1]
%tmp.6 = sub double %X, 5.000000e-01 ; <double> [#uses=1]
%mem_tmp.0 = select bool %tmp.1, double %tmp.4, double %tmp.6
store double %mem_tmp.0, double* %G
to:
%tmp.1 = setgt double %X, 0.000000e+00 ; <bool> [#uses=1]
%mem_tmp.0.p = select bool %tmp.1, double 5.000000e-01, double -5.000000e-01
%mem_tmp.0 = add double %mem_tmp.0.p, %X
store double %mem_tmp.0, double* %G
ret void
llvm-svn: 19537
|
2005-01-13 22:52:24 +00:00 |
|
Chris Lattner
|
e59c6d1cbe
|
Implement an optimization for == and != comparisons like this:
_Bool test2(int X, int Y) {
return &arr[X][Y] == arr;
}
instead of generating this:
bool %test2(int %X, int %Y) {
%tmp.3.idx = mul int %X, 160 ; <int> [#uses=1]
%tmp.3.idx1 = shl int %Y, ubyte 2 ; <int> [#uses=1]
%tmp.3.offs2 = sub int 0, %tmp.3.idx ; <int> [#uses=1]
%tmp.7 = seteq int %tmp.3.idx1, %tmp.3.offs2 ; <bool> [#uses=1]
ret bool %tmp.7
}
generate this:
bool %test2(int %X, int %Y) {
seteq int %X, 0 ; <bool>:0 [#uses=1]
seteq int %Y, 0 ; <bool>:1 [#uses=1]
%tmp.7 = and bool %0, %1 ; <bool> [#uses=1]
ret bool %tmp.7
}
This idiom occurs in C++ programs when iterating from begin() to end(),
in a vector or array. For example, we now compile this:
void test(int X, int Y) {
for (int *i = arr; i != arr+100; ++i)
foo(*i);
}
to this:
no_exit: ; preds = %entry, %no_exit
...
%exitcond = seteq uint %indvar.next, 100 ; <bool> [#uses=1]
br bool %exitcond, label %return, label %no_exit
instead of this:
no_exit: ; preds = %entry, %no_exit
...
%inc5 = getelementptr [100 x [40 x int]]* %arr, int 0, int 0, int %inc.rec ; <int*> [#uses=1]
%tmp.8 = seteq int* %inc5, getelementptr ([100 x [40 x int]]* %arr, int 0, int 100, int 0) ; <bool> [#uses=1]
%indvar.next = add uint %indvar, 1 ; <uint> [#uses=1]
br bool %tmp.8, label %return, label %no_exit
llvm-svn: 19536
|
2005-01-13 22:25:21 +00:00 |
|
Chris Lattner
|
7a8788c9ac
|
Add new ImplicitDef node, rename CopyRegSDNode class to RegSDNode.
llvm-svn: 19535
|
2005-01-13 20:50:02 +00:00 |
|
Chris Lattner
|
ee469241c3
|
Fix some bugs in code I didn't mean to check in.
llvm-svn: 19534
|
2005-01-13 20:40:58 +00:00 |
|
Chris Lattner
|
aebad4db9a
|
Fix a crash compiling 129.compress
llvm-svn: 19533
|
2005-01-13 20:14:25 +00:00 |
|
Chris Lattner
|
fce6a5439d
|
Codegen factor nodes more intelligently according to perceived register pressure.
llvm-svn: 19532
|
2005-01-13 19:56:00 +00:00 |
|
Chris Lattner
|
9cc534f2dc
|
Don't forget the existing root.
llvm-svn: 19531
|
2005-01-13 19:53:14 +00:00 |
|
Reid Spencer
|
7be21b0d7d
|
Update the documentation about -enable-llcbeta vs. -enable-linscan
llvm-svn: 19530
|
2005-01-13 18:02:40 +00:00 |
|
Chris Lattner
|
cb4359465a
|
Initial trivial (but stupid) codegen for this node.
llvm-svn: 19529
|
2005-01-13 18:01:36 +00:00 |
|
Chris Lattner
|
160fdb384b
|
Codegen independent ops as being independent.
llvm-svn: 19528
|
2005-01-13 17:59:43 +00:00 |
|
Chris Lattner
|
37a5de6eb0
|
Legalize new node, add assertion.
llvm-svn: 19527
|
2005-01-13 17:59:25 +00:00 |
|
Chris Lattner
|
86b19c5605
|
Print new node.
llvm-svn: 19526
|
2005-01-13 17:59:10 +00:00 |
|
Chris Lattner
|
000509e7b0
|
Add a new node type, add comments.
llvm-svn: 19525
|
2005-01-13 17:58:35 +00:00 |
|
Reid Spencer
|
d5bf5709c4
|
Turn on LOADABLE_MODULE so that profile.so can be loaded dynamically by
the JIT.
llvm-svn: 19524
|
2005-01-13 16:53:05 +00:00 |
|
Reid Spencer
|
55e707feb0
|
Re-enable libprofile now that llvm-ar is working better.
llvm-svn: 19523
|
2005-01-13 16:51:19 +00:00 |
|
Chris Lattner
|
9a70166615
|
Add some really pedantic assertions to the load folding code. Fix a bunch
of cases where we accidentally emitted a load folded once and unfolded
elsewhere.
llvm-svn: 19522
|
2005-01-13 05:53:16 +00:00 |
|
Chris Lattner
|
93cb0148f8
|
Do not fold (zero_ext (sign_ext V)) -> (sign_ext V), they are not the same.
This fixes llvm-test/SingleSource/Regression/C/casts.c
llvm-svn: 19519
|
2005-01-12 18:51:15 +00:00 |
|
Chris Lattner
|
2ab70aafe0
|
We can only fold a load into an op if there is exactly one use of the value.
Checking to see if the load has two uses is not equivalent, as the chain
value may have zero uses.
llvm-svn: 19518
|
2005-01-12 18:38:26 +00:00 |
|
Chris Lattner
|
e97b0e1358
|
New method
llvm-svn: 19517
|
2005-01-12 18:37:47 +00:00 |
|
Chris Lattner
|
92c07c0dba
|
New method.
llvm-svn: 19516
|
2005-01-12 18:37:33 +00:00 |
|