Andrew Lenharth
c9b52f1f1b
fix externals
...
llvm-svn: 29409
2006-07-29 04:27:34 +00:00
Chris Lattner
557d3cacbe
Instead of blindly looking past constantexpr casts, actually constant
...
fold them. This correctly truncates constants that are too large for the
destination slot and makes the code easier to understand. This fixes PR853
and Regression/CodeGen/X86/2006-07-28-AsmPrint-Long-As-Pointer.ll
llvm-svn: 29408
2006-07-29 01:57:19 +00:00
Chris Lattner
a7ee908421
New testcase for PR853
...
llvm-svn: 29407
2006-07-29 01:50:53 +00:00
Chris Lattner
b0aae854ba
Remove a redundant syscall.
...
llvm-svn: 29405
2006-07-28 22:52:11 +00:00
Evan Cheng
09f9f995f5
Split each select function for a particular opcode into multiple ones. One
...
per possible ValueType of the node. e.g. Select_add is split into Select_add_i8,
Select_add_i16, etc.
For opcodes which do not produce a non-chain result, it is split on the
ValueType of its first non-chain operand. e.g. Select_store.
On X86 / Mac OS X, Select_store used to be the largest function. It had a stack
frame size of 8.5k. Now the largest one is Store_i32 with a frame size of 3.1k.
llvm-svn: 29404
2006-07-28 22:51:01 +00:00
Reid Spencer
43cbd39dd0
Fix the --with-extra-options to use the correct variable.
...
llvm-svn: 29403
2006-07-28 22:50:07 +00:00
Chris Lattner
504adc58b7
Modify setStatusInfoOnDisk to not throw an exception.
...
llvm-svn: 29402
2006-07-28 22:36:17 +00:00
Chris Lattner
e2c3df81b7
Update win32 for Path::getStatusInfo
...
llvm-svn: 29401
2006-07-28 22:32:09 +00:00
Chris Lattner
d7873a0757
Modify Path::eraseFromDisk to not throw an exception.
...
llvm-svn: 29400
2006-07-28 22:29:50 +00:00
Chris Lattner
5f46911e99
Finegrainify namespacification, minor cleanups
...
llvm-svn: 29399
2006-07-28 22:21:01 +00:00
Chris Lattner
4ff291d865
Update comments.
...
llvm-svn: 29398
2006-07-28 22:09:37 +00:00
Chris Lattner
d40991dcf5
WriteBytecodeToFile actually can't throw.
...
llvm-svn: 29397
2006-07-28 22:08:23 +00:00
Chris Lattner
93ab0e8787
formatting cleanups
...
llvm-svn: 29396
2006-07-28 22:07:54 +00:00
Chris Lattner
f4c7ceebaf
Change Path::getStatusInfo to return a boolean and error string on an error
...
instead of throwing an exception. This reduces the amount of code that is
exposed to exceptions (e.g. FileUtilities), though it is clearly only one step
along the way.
llvm-svn: 29395
2006-07-28 22:03:44 +00:00
Chris Lattner
75be2cb1a0
libsupport still throws.
...
llvm-svn: 29394
2006-07-28 22:01:01 +00:00
Chris Lattner
5f87e5d0cf
Exceptions are thrown by and through this library.
...
llvm-svn: 29393
2006-07-28 22:00:24 +00:00
Chris Lattner
7476f4f83d
WriteBytecodeToFile throws, so this needs EH info.
...
llvm-svn: 29392
2006-07-28 21:55:54 +00:00
Chris Lattner
4b861b07a7
Fix handling of asm specifiers for external globals. This unbreaks many programs
...
on leopard in the jit.
llvm-svn: 29391
2006-07-28 21:11:31 +00:00
Chris Lattner
8cb78a0d45
Make functions with an "asm" name propagate that asm name into the cbe.c file.
...
This fixes link errors on programs with these on targets with prefixes.
llvm-svn: 29390
2006-07-28 20:58:47 +00:00
John Criswell
67a99e866c
Reverted previous commit. Thanks, Chris.
...
llvm-svn: 29388
2006-07-28 18:30:52 +00:00
John Criswell
e42e6faf13
Added in the LGPL text and copyright information. This needs to be
...
included in the distribution.
Also added the glibc LICENSES file, which should be included as well.
llvm-svn: 29386
2006-07-28 18:16:00 +00:00
Patrick Jenkins
35ac912c22
Updating the comments above SplitFunctionsOutOfModule in ExtractFunction.cpp to reflect the changes made to that function. Specifically I am removing the FIXME comment because the issue has been addressed.
...
llvm-svn: 29385
2006-07-28 18:03:01 +00:00
Chris Lattner
51e1b75fba
Fix some ppc64 issues with vector code.
...
llvm-svn: 29384
2006-07-28 16:45:47 +00:00
Evan Cheng
e4c19806cd
Can't spell.
...
llvm-svn: 29383
2006-07-28 06:33:41 +00:00
Evan Cheng
8ea5ac0abd
Some clean up.
...
llvm-svn: 29382
2006-07-28 06:05:06 +00:00
Reid Spencer
050434f25b
For PR848:
...
1. Get the path to the pwd binary (/bin/pwd usually) from configure.
2. Use that path to run pwd in all path variables set in Makefile.config.in
The hope is that these changes will resolve symlinks to physical paths. This
should work on all platforms where the binary pwd defaults to printing
physical paths. The shell version of pwd generally doesn't (it will print
the symlink path).
llvm-svn: 29381
2006-07-28 05:05:00 +00:00
Chris Lattner
b0bf058d33
The smallvector dtor should destroy the elements.
...
Implement pop_back.
Chage some code to use 'iterator' instead of T*. This unbreaks operators=.
llvm-svn: 29380
2006-07-28 05:03:42 +00:00
Patrick Jenkins
81c69c3ddb
This commit improves bugpoints speed. On my G4 this changed caused kimwitu++ to run through bugpoint in 1091.15 seconds (user + system time). The time it took to run this on my G4 before I made these changes is 1420.82 seconds (user + system time). This is a speedup of about 5.5 minutes.
...
This is faster because SplitFunctionsOutOfModule no longer calls Clone Module and then removes the functions it doesnt want from the module returned. Instead it creates a module and copies over the specified functions, making changes to the new and old module where neccessary. This reduces the memory demand.
llvm-svn: 29379
2006-07-28 01:19:28 +00:00
Evan Cheng
1ffea6db32
Clean up.
...
llvm-svn: 29378
2006-07-28 01:19:22 +00:00
Patrick Jenkins
25437ea178
Removed some unneccesary printing from the nightly tester.
...
llvm-svn: 29377
2006-07-28 01:06:18 +00:00
Evan Cheng
5f0e94c299
Rename IsFoldableBy to CanBeFoldedleBy
...
llvm-svn: 29376
2006-07-28 01:03:48 +00:00
Evan Cheng
c43a75b7d4
Node selected into address mode cannot be folded.
...
llvm-svn: 29374
2006-07-28 00:49:31 +00:00
Evan Cheng
3b5f1c6248
Remove InFlightSet hack. No longer needed.
...
llvm-svn: 29373
2006-07-28 00:47:19 +00:00
Chris Lattner
1e3a35a824
Print empty inline asms as a blank line instead of:
...
# InlineAsm Start
# InlineAsm End
llvm-svn: 29372
2006-07-28 00:17:20 +00:00
Evan Cheng
8920047e85
Another duh. Determine topological order before any target node is added.
...
llvm-svn: 29371
2006-07-28 00:10:59 +00:00
Evan Cheng
9d43eb616a
Brain cramp..
...
llvm-svn: 29370
2006-07-27 23:35:40 +00:00
Reid Spencer
219ced1bdd
Undo last commit, which was committed accidentally.
...
llvm-svn: 29369
2006-07-27 23:19:00 +00:00
Reid Spencer
dc6201bb05
Changes to support cross-compiling LLVM. The GenLibDeps.pl script needs to
...
have a compile-host version of "nm", not build-host. In order to effect this
we must use autoconf to determine the correct "nm" to use and propagate that
through the makefiles, through llvm-config and finally to GenLibDeps.pl as
an optional argument.
Patch contributed by Anton Korobeynikov. Thanks!
llvm-svn: 29368
2006-07-27 23:00:30 +00:00
Evan Cheng
24b41a766b
Allocating too large an array for ReachibilityMatrix.
...
llvm-svn: 29367
2006-07-27 22:35:40 +00:00
Evan Cheng
17ccdcc415
Calculate the portion of reachbility matrix on demand.
...
llvm-svn: 29366
2006-07-27 22:10:00 +00:00
Evan Cheng
6a126e3adb
isNonImmUse is replaced by IsFoldableBy
...
llvm-svn: 29365
2006-07-27 21:19:10 +00:00
Patrick Jenkins
bee251acdd
Removed some unneccesary print statemnts
...
llvm-svn: 29362
2006-07-27 21:01:39 +00:00
Patrick Jenkins
bf01a5d7a7
ChangeDir now returns the correct value
...
llvm-svn: 29361
2006-07-27 20:21:26 +00:00
Jim Laskey
f77eeceeba
Working toward registration of register allocators.
...
llvm-svn: 29360
2006-07-27 20:05:00 +00:00
Evan Cheng
35cdbdb796
Remove dead code.
...
llvm-svn: 29359
2006-07-27 19:59:34 +00:00
Patrick Jenkins
32c79d77eb
Fixed a stupid error where changedir returned false upon success.
...
llvm-svn: 29357
2006-07-27 19:22:06 +00:00
Patrick Jenkins
9d77695860
Added more descriptive output to singlesource,multisource tests.
...
llvm-svn: 29353
2006-07-27 19:00:01 +00:00
Patrick Jenkins
83e48f5155
Removed some clutter that was left over from development.
...
Changed how changedir worked. Hopefully now when it fails it will tell us why.
llvm-svn: 29352
2006-07-27 18:28:50 +00:00
Evan Cheng
4ceeac4159
Resolve BB references with relocation.
...
llvm-svn: 29351
2006-07-27 18:21:10 +00:00
Chris Lattner
ca081a735e
Pass -fstrict-aliasing to the compiler when building a release build on darwin.
...
Darwin doesn't default to it being on.
llvm-svn: 29350
2006-07-27 18:19:51 +00:00