1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
Commit Graph

3716 Commits

Author SHA1 Message Date
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
Vikram S. Adve
6e77f5dc3f Fix data types header file and declarations to work on Linux.
llvm-svn: 3851
2002-09-20 01:05:16 +00:00
Vikram S. Adve
430772db49 Fix to avoid addition on pointers, which is no longer legal.
llvm-svn: 3850
2002-09-20 00:57:37 +00:00
Vikram S. Adve
248e623726 Add erase() method for a single element.
llvm-svn: 3849
2002-09-20 00:55:57 +00:00
Vikram S. Adve
07a33b5553 Add method IGNode::getCombinedDegree to count the sum of the degrees
of two nodes, excluding duplicates.

llvm-svn: 3848
2002-09-20 00:55:04 +00:00
Vikram S. Adve
1d139cf8de Add PostOpts/ and rename PreSelection/ to PreOpts/.
llvm-svn: 3847
2002-09-20 00:53:53 +00:00
Vikram S. Adve
bcab1ae6c9 Add peephole optimization pass at the end of code generation.
llvm-svn: 3846
2002-09-20 00:52:43 +00:00
Vikram S. Adve
ed466a713a Added class MachineOptInfo as interface to target-specific
routines supporting machine code optimization.
Also added method MachineInstrInfo::getNOPOpCode().

llvm-svn: 3845
2002-09-20 00:52:09 +00:00
Vikram S. Adve
8d0bcb9568 Interface to target-specific routines that support machine code optimization.
llvm-svn: 3844
2002-09-20 00:49:21 +00:00
Vikram S. Adve
47303cde2d Add method MachineInstr::replace to rewrite a machine instruction in place.
llvm-svn: 3843
2002-09-20 00:47:49 +00:00