Chris Lattner
cd247490cd
Add new BreakCriticalEdges pass
...
llvm-svn: 3902
2002-09-24 00:08:37 +00:00
Chris Lattner
c424fd7af2
There are no implicit gep forms of load and store anymore
...
llvm-svn: 3901
2002-09-24 00:08:01 +00:00
Chris Lattner
34d9c4ec10
Make users of FindUsedTypes not have problems with linkage. This fixes
...
Cwriter.
llvm-svn: 3900
2002-09-24 00:07:21 +00:00
Chris Lattner
fba5394cf3
Make users of FindUsedTypes not have problems with linkage. This fixes
...
cwriter.
llvm-svn: 3899
2002-09-24 00:07:17 +00:00
Chris Lattner
cb44e9f152
Convert to using long indexes instead of uint
...
llvm-svn: 3898
2002-09-23 23:41:53 +00:00
Chris Lattner
b6c408778a
Optimize away cases like:
...
%cast109 = cast uint %cast212 to short ; <short> [#uses=1]
%cast214 = cast short %cast109 to uint ; <uint> [#uses=1]
%cast215 = cast uint %cast214 to short ; <short> [#uses=1]
llvm-svn: 3897
2002-09-23 23:39:43 +00:00
Chris Lattner
bacc51a4e3
Add some more testcases for things to get optimized away
...
llvm-svn: 3896
2002-09-23 23:39:17 +00:00
Chris Lattner
a4184f9ab6
Fix: ConstantMerge/2002-09-23-CPR-Update.ll
...
Basically, this bug boiled down to calling replaceUsesOfWith on a constant,
which changed it's shape in an illegal way. This pass now goes through all
of the trouble neccesary to do the replacement on constants.
llvm-svn: 3895
2002-09-23 23:00:46 +00:00
Chris Lattner
8a7da2fe0d
New testcase distilled from SPEC vortex benchmark
...
llvm-svn: 3894
2002-09-23 22:31:04 +00:00
Chris Lattner
4bf3ffe7f5
Run constantmerge tests too
...
llvm-svn: 3893
2002-09-23 22:26:23 +00:00
Nick Hildenbrandt
cb0b25c6c1
Parenthesis are now added to casts of type array.
...
llvm-svn: 3892
2002-09-23 21:02:50 +00:00
Chris Lattner
2a53929c5d
* Fix bug: CorrelatedExprs/2002-09-23-PHIUpdateBug.ll
...
* Make sure "Changed" is updated correctly
llvm-svn: 3891
2002-09-23 20:06:22 +00:00
Chris Lattner
26a4bbb2f6
Fix testcase to accurately expose bug
...
llvm-svn: 3890
2002-09-23 20:04:54 +00:00
Chris Lattner
dea32da482
New testcase distilled from SPEC MCF benchmark
...
llvm-svn: 3889
2002-09-23 19:54:06 +00:00
Chris Lattner
aecb825629
Insert resolved constants into the global map so they are reused correctly.
...
This bug was exposed linking the SPEC benchmark suite.
llvm-svn: 3888
2002-09-23 18:14:15 +00:00
Chris Lattner
8e66cea1a7
Group #includes better
...
llvm-svn: 3887
2002-09-23 17:45:52 +00:00
Vikram S. Adve
653ae66fc0
Allow LLC to be executed on Linux; only the LLC output should not be executed.
...
llvm-svn: 3886
2002-09-23 14:24:19 +00:00
Vikram S. Adve
2e14ffe3ec
C tests are run via Makefile.singlesrc so don't run them twice.
...
llvm-svn: 3885
2002-09-23 14:23:15 +00:00
Vikram S. Adve
a7e73bb0a0
Put intermediate source files in a subdirectory here instead of with
...
object files. Also,
llvm-svn: 3884
2002-09-23 13:12:28 +00:00
Vikram S. Adve
20fc3f0ffd
Disable reassociation pass in LLC until it is fixed.
...
llvm-svn: 3883
2002-09-23 12:55:50 +00:00
Chris Lattner
720bf9e23d
'whoami' doesn't exist on solaris
...
llvm-svn: 3882
2002-09-22 23:35:11 +00:00
Chris Lattner
5dafdf7d38
Update url
...
llvm-svn: 3881
2002-09-22 21:25:12 +00:00
Chris Lattner
e32f5e2722
Add information about the DEBUG() macro and the Statistic template
...
llvm-svn: 3880
2002-09-22 19:38:40 +00:00
Chris Lattner
d01dffe97f
* Remove the -stopraise option, which is no longer needed now that we have
...
the -debug-pass=Arguments option
* Run instcombining BEFORE mem2reg so that getelementptr X, long 0's are
cleaned up. This is also important because scalar replacement of aggr.
will want instcombine to run before it goes as well.
llvm-svn: 3879
2002-09-22 18:50:22 +00:00
Chris Lattner
5c6d487ee2
Don't insert a PHI node to merge "returns" from an inlined function if there
...
is only a single return from the function!
llvm-svn: 3878
2002-09-22 18:41:25 +00:00
Chris Lattner
6384a01dc2
* Minor fixes to support C files.
...
* Build burg as a utility now, change its location
* Clean up other rules
llvm-svn: 3876
2002-09-22 02:47:15 +00:00
Chris Lattner
eedc6cc9bd
Clean up dead rules
...
llvm-svn: 3875
2002-09-22 02:41:20 +00:00
Chris Lattner
48fc42ba79
Fix tons of warnings, convert burg to use Makefile.common system, rename
...
gram.y to gram.yc so that we don't try to turn it into a .cpp file.
llvm-svn: 3874
2002-09-22 02:40:40 +00:00
Anand Shukla
a34898d9ac
Changed codegen to add 2 empty slots at the top of stack using StackSlots pass
...
llvm-svn: 3873
2002-09-21 05:01:21 +00:00
Anand Shukla
508121e5d9
Initial version: it adds 2 empty slots at the top of stack
...
llvm-svn: 3872
2002-09-21 04:58:26 +00:00
Chris Lattner
b9379750d9
Fix cwriter to not output FP constants in ascii, output them in hex instead.
...
This fixes a number of FP precision problems, making the output of the
power benchmark closer to the right answer.
Unfortunately, this only addresses FP constants used directly in functions.
Constants referred to by global constants (such as an array of FP values)
aren't helped by this. Until this happens power won't work.
llvm-svn: 3871
2002-09-20 23:26:33 +00:00
Chris Lattner
6874ea0917
Fix bug: 2002-09-20-VarArgPrototypes.ll
...
llvm-svn: 3870
2002-09-20 22:32:30 +00:00
Chris Lattner
1d1e7559b2
Build with $(CC), not gcc explicitly
...
llvm-svn: 3869
2002-09-20 22:32:00 +00:00
Chris Lattner
61009abe92
New testcase for cbe
...
llvm-svn: 3868
2002-09-20 22:28:03 +00:00
Nick Hildenbrandt
cdbca9dde3
New testcase for broken type printing for the cwriter
...
llvm-svn: 3867
2002-09-20 21:44:32 +00:00
Anand Shukla
da24f223d3
Changed uchar to unsigned char in function ParseBytecodeBuffer, because seemingly it affects opt in uncertain ways :)
...
llvm-svn: 3866
2002-09-20 20:57:54 +00:00
Vikram S. Adve
3e6b284c46
Fix yet another profile linking issue.
...
llvm-svn: 3865
2002-09-20 18:16:20 +00:00
Anand Shukla
b959e8559e
Added checking threshold
...
llvm-svn: 3864
2002-09-20 16:44:35 +00:00
Vikram S. Adve
43881f46b0
Peephole optimization pass on final machine code.
...
llvm-svn: 3863
2002-09-20 16:33:03 +00:00
Vikram S. Adve
2b35b84a5d
Fix link error for profile version. Also, build Burg differently
...
for different architectures.
llvm-svn: 3862
2002-09-20 16:15:57 +00:00
Vikram S. Adve
be45b2caf9
Build burg separately for different architectures.
...
llvm-svn: 3861
2002-09-20 16:14:47 +00:00
Chris Lattner
0752044e03
Fix output of typedefs to avoid syntax errors.
...
* We now can correctly Cify the Olden-power benchmark
llvm-svn: 3860
2002-09-20 15:20:24 +00:00
Chris Lattner
1c1de51dfe
* Add a couple of comments to the output c code
...
* _FIX_ infinite recursion problem, due to typedefs of a structure being
printed before the structure.
llvm-svn: 3859
2002-09-20 15:18:30 +00:00
Chris Lattner
af6a9e8fc4
Another change that doesn't affect functionality. Since we are only looking
...
at types in the symbol table, only traverse the type plane, saving a loop nest.
llvm-svn: 3858
2002-09-20 15:12:13 +00:00
Chris Lattner
a66eef584f
Make the StructPrinted set only take memory when it's being used.
...
rename parseStruct to printContainedStructs
llvm-svn: 3857
2002-09-20 15:05:40 +00:00
Chris Lattner
4f385b19bb
No functionality changes, primarily just changing tab indentation to space
...
indentation
llvm-svn: 3856
2002-09-20 14:56:54 +00:00
Chris Lattner
26e44e3d21
Checkin old testcase
...
llvm-svn: 3855
2002-09-20 14:37:46 +00:00
Vikram S. Adve
39c311f716
The ENABLE_PROFILING flag now builds the profiled libraries and executables
...
into a Profile/ directory to keep them separate from the Debug/ and
Release/ versions. Also, it turns on ENABLE_OPTIMIZED automatically.
llvm-svn: 3854
2002-09-20 14:03:13 +00:00
Vikram S. Adve
81809d1dc0
Let CC invoke gcc and not cc. The latter doesn't work with either our
...
source or some of our tests.
llvm-svn: 3853
2002-09-20 14:01:14 +00:00
Vikram S. Adve
8feab97474
Include our config and system-specific Makefiles to get the
...
right compilers and paths.
llvm-svn: 3852
2002-09-20 13:56:32 +00:00