Chris Lattner
19b9e90f9c
Fix Transforms/GlobalOpt/2007-04-05-Crash.ll
...
llvm-svn: 35689
2007-04-05 21:09:42 +00:00
Chris Lattner
0cb31c668d
new testcase that crashes globalopt
...
llvm-svn: 35688
2007-04-05 21:09:29 +00:00
Dale Johannesen
1fcb4c2cfe
testcase for padding before zero-length fields.
...
llvm-svn: 35687
2007-04-05 19:05:43 +00:00
Devang Patel
fd1c6bb60f
New tests for Packed structs.
...
llvm-svn: 35686
2007-04-05 17:14:21 +00:00
Devang Patel
bc8a8a6327
New tests for Packed structs.
...
llvm-svn: 35685
2007-04-05 17:07:48 +00:00
Chris Lattner
17045ee2d5
run a late dce pass to clean up extra cruft.
...
llvm-svn: 35684
2007-04-05 16:50:20 +00:00
Anton Korobeynikov
ceb6667a6f
Fix test
...
llvm-svn: 35683
2007-04-05 16:43:09 +00:00
Chris Lattner
d39ae2fa6d
Add a helper class (APSInt) which can represent an APInt along with sign
...
information. This is useful when a value does have a sign associated with
it. This shouldn't be used generally in LLVM for mid-level optimizer stuff.
llvm-svn: 35681
2007-04-05 05:20:11 +00:00
Chris Lattner
997967979f
Use a worklist-driven algorithm instead of a recursive one.
...
llvm-svn: 35680
2007-04-05 01:27:02 +00:00
Reid Spencer
aad0b4536b
Change the bit_part_select (non)implementation from "return 0" to abort.
...
llvm-svn: 35679
2007-04-05 01:20:18 +00:00
Reid Spencer
6eb55df794
Implement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.
...
llvm-svn: 35678
2007-04-04 23:48:25 +00:00
Reid Spencer
73f3f886ff
Ignore some things generated by bugpoint.
...
llvm-svn: 35677
2007-04-04 22:47:38 +00:00
Lauro Ramos Venancio
2dfc0515a6
Fix release build.
...
llvm-svn: 35676
2007-04-04 22:13:39 +00:00
Jeff Cohen
6a9efef91d
Fix some FreeBSD/amd64 regressions.
...
llvm-svn: 35675
2007-04-04 22:07:44 +00:00
Reid Spencer
a72beea861
Squelch a warning about mismatch between sign of constant and sign of return
...
type.
llvm-svn: 35674
2007-04-04 22:07:24 +00:00
Anton Korobeynikov
018c52ef1b
Fix test
...
llvm-svn: 35673
2007-04-04 21:28:36 +00:00
Anton Korobeynikov
e16f421e0e
Properly emit range comparisons for switch cases, where neighbour cases
...
go to the same destination. Now we're producing really good code for
switch-lower-feature.ll testcase
llvm-svn: 35672
2007-04-04 21:14:49 +00:00
Jeff Cohen
a42a5cc03c
Any add is wrong, regardless of type.
...
llvm-svn: 35671
2007-04-04 20:40:44 +00:00
Jeff Cohen
20800076a6
Get it right...
...
llvm-svn: 35670
2007-04-04 20:35:31 +00:00
Dale Johannesen
66c0a2b9e6
Test for transformConstExprCastCall fix.
...
llvm-svn: 35669
2007-04-04 19:18:16 +00:00
Dale Johannesen
fb15913194
Prevent transformConstExprCastCall from generating conversions that assert
...
elsewhere.
llvm-svn: 35668
2007-04-04 19:16:42 +00:00
Reid Spencer
a4d5642bb8
Remove the part_set intrinsic. It won't get implemented as an intrinsic.
...
llvm-svn: 35667
2007-04-04 19:15:59 +00:00
Chris Lattner
ed593d6789
stringmap memory managed with malloc now
...
llvm-svn: 35666
2007-04-04 17:24:28 +00:00
Jeff Cohen
01d4afe6da
Fix 2007-04-04-BadFoldBitcastIntoMalloc.ll
...
llvm-svn: 35665
2007-04-04 16:58:57 +00:00
Jeff Cohen
bf47c569c7
Add new test.
...
llvm-svn: 35664
2007-04-04 16:11:23 +00:00
Evan Cheng
89768803e7
Better still.
...
llvm-svn: 35663
2007-04-04 08:49:40 +00:00
Evan Cheng
8cd7d8dc77
Fix test case.
...
llvm-svn: 35662
2007-04-04 07:41:33 +00:00
Evan Cheng
3af3f8e696
These got better.
...
llvm-svn: 35661
2007-04-04 07:41:15 +00:00
Evan Cheng
b7ec9433b3
Re-materialize all loads from fixed stack slots.
...
llvm-svn: 35660
2007-04-04 07:40:01 +00:00
Evan Cheng
a8c9533e3e
Add isFixedObjectIndex. It returns true if the stack slot index is for a fixed stack object.
...
llvm-svn: 35659
2007-04-04 07:38:25 +00:00
Evan Cheng
48b94106d6
Trivially re-materializable instructions have spill weights that are half of what it would be otherwise.
...
llvm-svn: 35658
2007-04-04 07:04:55 +00:00
Reid Spencer
22ecfc9cc9
Revert this until the Date::Parse module can be installed on the nightly
...
testers.
llvm-svn: 35657
2007-04-04 06:59:36 +00:00
Reid Spencer
d8c3813f51
For PR1302:
...
Use local variable names that match the function parameter name that it
is passed to so the code is more clear, to wit: is_bytecode -> is_native
llvm-svn: 35656
2007-04-04 06:44:18 +00:00
Duncan Sands
de998e6599
Fix comment.
...
llvm-svn: 35655
2007-04-04 06:42:45 +00:00
Reid Spencer
0d5c9466d3
For PR1302:
...
Rename LinkItems as NativeLinkItems since it is filled out by the Linker
library to contain only those items deemed to be native.
llvm-svn: 35654
2007-04-04 06:34:22 +00:00
Reid Spencer
87ede33a19
For PR1302:
...
Implement file tests for both LinkInLibrary and LinkInFile to determine if
the file is native. Don't generate warnings if the file is native.
llvm-svn: 35653
2007-04-04 06:33:17 +00:00
Reid Spencer
a54d904575
Make the LinkInFile and LinkInLibrary both return an indication of whether
...
the file was found to be a native library (and thus not linked by these
functions).
llvm-svn: 35652
2007-04-04 06:32:01 +00:00
Reid Spencer
6df393cf38
For PR1302:
...
Adjust useage of sys::Path::FileType for new enumerator names.
llvm-svn: 35651
2007-04-04 06:31:04 +00:00
Reid Spencer
e825ec8a72
For PR1302:
...
Implement recognition of COFF, ELF and Mach-O object/shared lib files.
llvm-svn: 35650
2007-04-04 06:30:26 +00:00
Reid Spencer
6dc38e6fbd
For PR1302:
...
Make the FileType enumerators more readable and add COFF, ELF and Mach-O.
llvm-svn: 35649
2007-04-04 06:29:49 +00:00
Chris Lattner
5d12d66728
trivial optimization
...
llvm-svn: 35648
2007-04-04 06:18:21 +00:00
Reid Spencer
cc3e39562f
Appease Chris' pedantic streak.
...
llvm-svn: 35647
2007-04-04 05:46:04 +00:00
Reid Spencer
ef9965e7cc
Fix links to intrinsic functions outside LangRef.html
...
llvm-svn: 35646
2007-04-04 04:14:31 +00:00
Reid Spencer
d187b99ad9
Remove intrinsics that we will not be implementing.
...
Fix the anchor names of intrinsics to all be int_ so as to distinguish
them from the i_ prefix reserved for instructions.
llvm-svn: 35645
2007-04-04 02:42:35 +00:00
Chris Lattner
8a4ca643dd
use calloc instead of new/memset, it is more efficient
...
llvm-svn: 35644
2007-04-04 00:44:31 +00:00
Chris Lattner
60c84ed4e9
Initialize the symbol table to zero explicitly. This ensures that the
...
symbol table does no allocations for prototypes or other lazily deserialized
functions, saving significant space and time.
llvm-svn: 35643
2007-04-04 00:30:49 +00:00
Chris Lattner
dbf6a79a71
Extend StringMap to support being initialized as completely empty. When
...
initialized this way, they do not do a malloc to allocate their buckets.
llvm-svn: 35642
2007-04-04 00:29:37 +00:00
Evan Cheng
5bd266a791
New asm test case.
...
llvm-svn: 35641
2007-04-04 00:15:17 +00:00
Evan Cheng
44488cb676
Implement inline asm modifier P.
...
llvm-svn: 35640
2007-04-04 00:13:29 +00:00
Evan Cheng
d5956e4409
Typo.
...
llvm-svn: 35639
2007-04-04 00:06:07 +00:00