Vikram S. Adve
5ce2683cd2
(1) Major bug fix: DecomposeArrayRef() replaces its argument instr. and
...
deletes it, but we were merrily trying to fix the operands of that
instruction anyway! Instead, fix the replacement instruction.
(2) An Improvement: Check for and extract global values in all operands,
not just in known pointer operands. For example, they can occur in
call arguments, and probably other unforeseeable places as well.
This also eliminates the special-case handling of Load and Store.
llvm-svn: 7053
2003-07-02 01:23:15 +00:00
Vikram S. Adve
daa346c89a
A def. operand of a machine instruction may be an ordinary Value*,
...
not just an Instruction*, at least in one unfortunate case:
the first operand to the va_arg instruction.
Modify ValueToDefVecMap to map from Value*, not Instruction*.
llvm-svn: 7052
2003-07-02 01:16:01 +00:00
Vikram S. Adve
42e2aac9ed
Bug/case fixes:
...
(1) select: Ok to convert a pointer to a float or double.
(2) regalloc: Some MachineInstr* for caller-saving code before a call
were being inserted before and after the call!
(3) Don't insert the caller-saving instructions in the
MachineCodeForInstruction for the Call instruction.
*All* instructions generated by register allocation need to be
recorded in those maps, but it needs to be done uniformly.
llvm-svn: 7051
2003-07-02 01:13:57 +00:00
John Criswell
8a5fe65c81
Added the ARCH variable so that some of the Makefiles can perform actions based
...
upon the target hardware architecture (as opposed to always checking the OS).
llvm-svn: 7050
2003-07-01 22:07:39 +00:00
John Criswell
ac664f649e
Fixed a broken hyperlink.
...
Moved commas outside of hyperlinks in the contributors list.
llvm-svn: 7049
2003-07-01 21:55:57 +00:00
Chris Lattner
a80bdacdce
TD pass keeps track of which functions have complete arguments
...
llvm-svn: 7048
2003-07-01 21:12:10 +00:00
Chris Lattner
215aabe53f
Add new operator= impl
...
llvm-svn: 7047
2003-07-01 21:11:59 +00:00
Chris Lattner
f3cfe71797
Fix bug: Regression/Other/2002-03-11-ExprAssertion.ll
...
llvm-svn: 7046
2003-07-01 21:08:52 +00:00
Chris Lattner
c7465646a6
Fix testcase failing because of change of output
...
llvm-svn: 7045
2003-07-01 21:03:30 +00:00
John Criswell
218a238a37
Updated the name of the LLVM disassembler so that the test does not fail.
...
llvm-svn: 7044
2003-07-01 20:31:45 +00:00
Chris Lattner
3242ae8792
new testcase
...
llvm-svn: 7043
2003-07-01 18:52:01 +00:00
Chris Lattner
6fa0bd2ce5
Move to test/programs/LLvmsource
...
llvm-svn: 7037
2003-07-01 17:50:11 +00:00
Chris Lattner
c5f892c867
Ok, I'm a moron. Fixed now
...
llvm-svn: 7035
2003-07-01 17:15:11 +00:00
Chris Lattner
c09d40c234
Fix major problem that was causing all kinds of nasty foldings
...
llvm-svn: 7034
2003-07-01 17:10:50 +00:00
Chris Lattner
cf911757c2
Make testcase a bit more interesting
...
llvm-svn: 7033
2003-07-01 16:28:32 +00:00
Chris Lattner
c4e2a6568d
New testcase
...
llvm-svn: 7032
2003-07-01 16:28:20 +00:00
Chris Lattner
5ddec0f02d
Rework TD pass to work with the precise call graph constructed by the BU phase
...
llvm-svn: 7031
2003-07-01 16:28:11 +00:00
Chris Lattner
3536455262
Do not treat global variables as functions! (and assert failing)
...
llvm-svn: 7030
2003-07-01 16:27:53 +00:00
Chris Lattner
7ab30a179b
Dont' print scalar nodes for ConstantPointerRefs
...
llvm-svn: 7029
2003-07-01 16:27:32 +00:00
Chris Lattner
e0dbd43e2f
Add new methods to BUDS for keeping track of a precise call graph
...
llvm-svn: 7028
2003-07-01 16:27:15 +00:00
Chris Lattner
599287e3c3
Minor cleanups
...
llvm-svn: 7027
2003-07-01 16:04:18 +00:00
Chris Lattner
d38a125402
Update to configure the tree before building it.
...
llvm-svn: 7026
2003-07-01 16:02:00 +00:00
John Criswell
8a5db79559
The Makefile now adds autoconf information to the compiler and linker flag
...
variables instead of overwriting those variables. This makes it more flexible
and keeps some of the test Makefiles from breaking.
llvm-svn: 7025
2003-07-01 15:02:59 +00:00
John Criswell
53ded3e020
Renamed all of the LObj* variables (which represent libtool objects) to Obj*.
...
One of the test Makefiles uses the same variable names for something else,
and this was probably interfering with it.
llvm-svn: 7024
2003-07-01 14:52:28 +00:00
Chris Lattner
3f8f0ce2a2
Fix verbose support bug
...
llvm-svn: 7023
2003-06-30 22:41:22 +00:00
John Criswell
7ae6f454e1
Removed the LIBS environment variable as it interferes with the tests and
...
is currently unused.
llvm-svn: 7022
2003-06-30 22:33:53 +00:00
John Criswell
f0fdaa27c9
Added John Criswell to the contributors list.
...
llvm-svn: 7021
2003-06-30 22:20:46 +00:00
John Criswell
1399140e8f
Removed the --enable-profiling and --enable-verbose options.
...
llvm-svn: 7020
2003-06-30 22:17:28 +00:00
John Criswell
827a2dff2b
Removed the --enable-verbose option.
...
llvm-svn: 7019
2003-06-30 22:16:39 +00:00
John Criswell
3b7ab965aa
Adding in sample project tree.
...
llvm-svn: 7018
2003-06-30 22:13:48 +00:00
John Criswell
3c64417545
Adding in projects subtree.
...
llvm-svn: 7017
2003-06-30 22:12:19 +00:00
Chris Lattner
eecabc05a0
This causes an assert in the assembler. :(
...
llvm-svn: 7016
2003-06-30 22:03:21 +00:00
John Criswell
aeb6b286d9
Removed these files as they are replaced by autoconf.
...
llvm-svn: 7015
2003-06-30 22:01:54 +00:00
John Criswell
258dfc0319
Merged in autoconf branch. This provides configuration via the autoconf
...
system.
llvm-svn: 7014
2003-06-30 21:59:07 +00:00
Chris Lattner
d212141d9e
Setjmp should always return zero if we don't implement longjmp. This avoids
...
leaving trash in the register, fixing anagram
llvm-svn: 7013
2003-06-30 19:35:54 +00:00
Brian Gaeke
a00e8c6732
Get rid of the duplicate '0x' in debug mode.
...
llvm-svn: 7012
2003-06-30 18:06:20 +00:00
Misha Brukman
3e70f63a54
Spell apparently' with an
e'.
...
llvm-svn: 7011
2003-06-30 15:33:47 +00:00
Chris Lattner
b5f7eadd16
New testcase
...
llvm-svn: 7010
2003-06-30 15:17:39 +00:00
Chris Lattner
b7d298c91d
Add dependency on analyze
...
llvm-svn: 7009
2003-06-30 15:17:36 +00:00
Chris Lattner
33fce4d868
Use the getFunctionNames method
...
llvm-svn: 7008
2003-06-30 05:57:39 +00:00
Chris Lattner
cb32be085b
Add new method
...
llvm-svn: 7007
2003-06-30 05:57:30 +00:00
Chris Lattner
851b6382b6
Split CallSiteIterator out into DSCallSiteIterator.h, and generalize it a bit
...
llvm-svn: 7006
2003-06-30 05:27:53 +00:00
Chris Lattner
e40d871120
Be more const-correct
...
llvm-svn: 7005
2003-06-30 05:27:18 +00:00
Chris Lattner
6de58997b5
Be more const correct
...
llvm-svn: 7004
2003-06-30 05:27:05 +00:00
Chris Lattner
fb9f50ee23
Fix bug in last checkin
...
llvm-svn: 7003
2003-06-30 05:18:26 +00:00
Chris Lattner
8ef5ebb1d7
Constness changes
...
llvm-svn: 7002
2003-06-30 05:10:09 +00:00
Chris Lattner
9954cfc9bf
Reimplement the BU closure to collapse all SCC graphs into a single graph.
...
Look at all of the code that gets deleted!
llvm-svn: 7001
2003-06-30 05:09:58 +00:00
Chris Lattner
60b2516889
Handle the case where OldNodeMap == &ScalarMap correctly
...
llvm-svn: 7000
2003-06-30 05:09:29 +00:00
Chris Lattner
20d3019fa6
Remove dead method
...
llvm-svn: 6999
2003-06-30 04:53:39 +00:00
Chris Lattner
37d7a580b2
Do not delete the same graph multiple times when freeing memory if graphs are sharing
...
llvm-svn: 6998
2003-06-30 04:53:27 +00:00