Chris Lattner [Mon, 15 Dec 2003 00:03:53 +0000 (00:03 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10468
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 23:57:39 +0000 (23:57 +0000)]
Refactor code just a little bit, allowing us to implement TailCallElim/return_constant.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10467
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 23:39:34 +0000 (23:39 +0000)]
new test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10466
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 23:25:48 +0000 (23:25 +0000)]
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10465
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 21:35:53 +0000 (21:35 +0000)]
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10464
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 21:27:33 +0000 (21:27 +0000)]
Finegrainify namespacification
Make the Timer code give correct user/system/user+system times when -track-memory is enabled
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10463
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 14 Dec 2003 13:30:19 +0000 (13:30 +0000)]
I wonder how this didn't cause any tests to fail...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10462
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 14 Dec 2003 13:24:17 +0000 (13:24 +0000)]
Change interface of MachineOperand as follows:
a) remove opIsUse(), opIsDefOnly(), opIsDefAndUse()
b) add isUse(), isDef()
c) rename opHiBits32() to isHiBits32(),
opLoBits32() to isLoBits32(),
opHiBits64() to isHiBits64(),
opLoBits64() to isLoBits64().
This results to much more readable code, for example compare
"op.opIsDef() || op.opIsDefAndUse()" to "op.isDef()" a pattern used
very often in the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10461
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sun, 14 Dec 2003 10:14:23 +0000 (10:14 +0000)]
Change preserve all claim to just preserve live variables and phielimination.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10460
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 05:03:43 +0000 (05:03 +0000)]
Rev the release notes to 1.2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10459
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 04:52:31 +0000 (04:52 +0000)]
Do not promote volatile alias sets into registers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10458
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 04:52:11 +0000 (04:52 +0000)]
Finegrainify namespacification
Add capability to represent volatile AliasSet's
Propagate this information from loads&stores into the aliassets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10457
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 04:51:34 +0000 (04:51 +0000)]
Add capability to represent volatile AliasSet's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10456
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Dec 2003 04:46:07 +0000 (04:46 +0000)]
Testcase for PR179
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10455
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sat, 13 Dec 2003 11:58:10 +0000 (11:58 +0000)]
When reserving a preallocated register spill the aliases of this
register too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10450
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sat, 13 Dec 2003 11:11:02 +0000 (11:11 +0000)]
Ignore non-allocatable physical registers in live interval analysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10449
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sat, 13 Dec 2003 05:50:19 +0000 (05:50 +0000)]
Expire any active intervals left when register allocation is done.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10448
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sat, 13 Dec 2003 05:48:57 +0000 (05:48 +0000)]
Add instruction numbers to debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10447
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sat, 13 Dec 2003 05:36:22 +0000 (05:36 +0000)]
Add a floating point killer pass. This pass runs before register
allocaton on the X86 to add information to the machine code denoting
that our floating point stackifier cannot handle virtual point
register that are alive across basic blocks. This pass adds an
implicit def of all virtual floating point register at the end of each
basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10446
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sat, 13 Dec 2003 05:26:39 +0000 (05:26 +0000)]
Handle explicit physical register defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10445
91177308-0d34-0410-b5e6-
96231b3b80d8
Alkis Evlogimenos [Sat, 13 Dec 2003 01:20:58 +0000 (01:20 +0000)]
Remove unecessary if statements when looping on ImplicitDefs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10444
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 21:33:08 +0000 (21:33 +0000)]
Try rewording stuff talking about unwinding. Hopefully it will make llvm sound less bad, and still make John happy. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10439
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 21:22:16 +0000 (21:22 +0000)]
Link to lists, incorporate feedback from Tanya
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10438
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 12 Dec 2003 20:15:23 +0000 (20:15 +0000)]
Updated configure script so that it does not configure llvm/project
directories that do not contain a configure script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10437
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 12 Dec 2003 20:09:33 +0000 (20:09 +0000)]
Don't configure directories that don't have a configure script (i.e Stacker).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10436
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 12 Dec 2003 19:57:48 +0000 (19:57 +0000)]
Modified cast so that it converts the int to a long before casting to
a pointer. This evades a warning emitted by GCC when we cast from
unsigned int (32 bit) to void * (64 bit) on SparcV9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10435
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Fri, 12 Dec 2003 19:54:20 +0000 (19:54 +0000)]
Fixed some minor typos.
Moved the new gccld feature to be in the list of enhancements.
Re-worded information on SPEC 2000 and Sparc support to try to make them
more accurate and precise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10434
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 12 Dec 2003 15:38:06 +0000 (15:38 +0000)]
Dynamically get the right-sized member of a GenericValue to hold a size_t, and
use it to return the result of strlen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10433
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 07:26:25 +0000 (07:26 +0000)]
PR177 is no longer among the open
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10432
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 07:12:02 +0000 (07:12 +0000)]
Implement the ExecutionEngine::getPointerToFunctionOrStub by forwarding the
request on to the TargetMachine if it supports the getJITStubForFunction method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10431
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 07:11:18 +0000 (07:11 +0000)]
Implement the TargetMachine::getJITStubForFunction method for X86, finegrainify
namespacification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10430
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 07:10:32 +0000 (07:10 +0000)]
Add new getJITStubForFunction method, which may optionally be implemented by
targets for better performance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10429
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 06:31:42 +0000 (06:31 +0000)]
Doxygenify comments, remove extraneous #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10428
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 05:52:39 +0000 (05:52 +0000)]
Note about bytecode format
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10427
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 12 Dec 2003 05:13:05 +0000 (05:13 +0000)]
Since we are using a gep_type_iterator, we apparently must get the type
index by using I.getOperand() here. This was failing an assertion on
basically every struct access.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10426
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 12 Dec 2003 05:06:09 +0000 (05:06 +0000)]
Use uintptr_t for pointer values in the ExecutionEngine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10425
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 12 Dec 2003 04:58:13 +0000 (04:58 +0000)]
Fix typo in comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10424
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 04:56:02 +0000 (04:56 +0000)]
These aren't bugs, don't phrase them like they are.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10423
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 04:51:00 +0000 (04:51 +0000)]
I'm a spaz
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10422
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 04:45:09 +0000 (04:45 +0000)]
Add note about Stacker, duh!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10421
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 12 Dec 2003 04:37:31 +0000 (04:37 +0000)]
Break lines and add space after ':' to be consistent in layout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10420
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 12 Dec 2003 04:25:33 +0000 (04:25 +0000)]
More updates for the release
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10419
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 12 Dec 2003 00:47:44 +0000 (00:47 +0000)]
Throw better error messages, by calling strerror(errno) when we
get an error inside the bytecode reader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10415
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 12 Dec 2003 00:47:19 +0000 (00:47 +0000)]
Add an assertion to make sure we are at least getting argv[0] right.
Use a clearer error message when we fail to load a program.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10414
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 23:31:21 +0000 (23:31 +0000)]
Update release notes for PR86 and C++ support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10413
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 23:20:16 +0000 (23:20 +0000)]
Factor out some duplicated code, implement the rest of the cases in
BasicAA/2003-12-11-ConstExprGEP.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10412
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 22:49:32 +0000 (22:49 +0000)]
Rename variable to avoid confusing it with the global G
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10411
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 22:44:13 +0000 (22:44 +0000)]
Fix PR86. This makes basicaa _SIGNIFICANLY_ more aggressive with getelementptr's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10410
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 22:23:32 +0000 (22:23 +0000)]
Fix LICM/2003-12-11-SinkingToPHI.ll, and quite possibly all of the other known problems in the universe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10409
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 22:15:11 +0000 (22:15 +0000)]
New testcase that LICM is breaking crafty on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10408
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 21:48:18 +0000 (21:48 +0000)]
Finegrainify namespacification
Add new -print-cfg-only pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10407
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 21:47:37 +0000 (21:47 +0000)]
verifyFunction depends on dominator info, which levelraise does not declare
that it needs. This is pretty scary code! This fixes
Regression.Transforms.LevelRaise.2002-07-16-SourceAndDestCrash
Regression.Transforms.LevelRaise.2002-07-31-AssertionFailure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10406
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 21:06:43 +0000 (21:06 +0000)]
Fix test that was failing because we were optimizing the program better than expected :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10404
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 19:16:30 +0000 (19:16 +0000)]
New testcase for PR86
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10403
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 17:50:32 +0000 (17:50 +0000)]
Run tailcall elimination in a more logical place
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10402
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 06:06:28 +0000 (06:06 +0000)]
Fix a glaring bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10400
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 06:02:00 +0000 (06:02 +0000)]
Realize the gep P, <zeros> must aliases P.
This is a partial fix for PR 86
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10399
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 05:44:59 +0000 (05:44 +0000)]
With Brian's change to AA.h we can now clean out this uglyness
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10398
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 11 Dec 2003 05:05:56 +0000 (05:05 +0000)]
IncludeFile hack to pull in BasicValueNumbering whenever ValueNumbering.h
is included.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10397
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 11 Dec 2003 05:05:02 +0000 (05:05 +0000)]
IncludeFile hack to pull in BasicAliasAnalysis whenever AliasAnalysis.h
is included.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10396
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 11 Dec 2003 04:48:38 +0000 (04:48 +0000)]
Separate out target for cleaning up qmtest garbage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10395
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 11 Dec 2003 04:40:58 +0000 (04:40 +0000)]
Add more fixed bugs. Keep llvm core section sorted by pr#. (Is that ok?)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10394
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 11 Dec 2003 00:58:34 +0000 (00:58 +0000)]
Stop laughing Misha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10393
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 11 Dec 2003 00:38:04 +0000 (00:38 +0000)]
In getObjectType(), doxygenify comment, and take a pointer to the
beginning of the archive member data as an argument.
Get rid of ParseLongFilenameSection(), which is dead.
In ReadArchiveBuffer(), implement support for 4.4BSD/MacOSX long filenames.
This is kind of invasive, because they prepend the long filename to the archive
member data, and then lie about the size. So we have to keep track of the real
size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10392
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 11 Dec 2003 00:24:36 +0000 (00:24 +0000)]
Turn off "attribute weak" to pacify Mac OS X's system compiler, which prints a
warning whenever it sees it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10391
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 11 Dec 2003 00:23:28 +0000 (00:23 +0000)]
Fix typo in comment. Add prototype for getConstantExprValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10390
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 11 Dec 2003 00:22:59 +0000 (00:22 +0000)]
Add support for --debug-only=interpreter, to print out instrs before
interpreting them.
Move support for getting the value of a ConstantExpr into
getConstantExprValue(), and add support for the rest of the different
kinds of ConstantExprs. (I don't think I like ConstantExprs!)
This requires separate procedures executeShlInst() and executeShrInst().
Reduce the number of references to TheEE.
Get rid of an old comment mentioning annotations.
Fix exitCalled(), which was crashing the Interpreter. This was a
leftover from the return-value code refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10389
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Wed, 10 Dec 2003 22:51:41 +0000 (22:51 +0000)]
This appears to fix Bug 172 and does not break any other feature tests or
regression tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10388
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 22:35:56 +0000 (22:35 +0000)]
Fix bug: LICM/sink_multiple_exits.ll
Thanks for pointing this out John :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10387
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 20:43:29 +0000 (20:43 +0000)]
Don't allow dead instructions to stop sinking early.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10386
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 20:43:04 +0000 (20:43 +0000)]
Fix bug: IndVarsSimplify/2003-12-10-RemoveInstrCrash.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10385
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 20:39:53 +0000 (20:39 +0000)]
A new testcase, reduced by bugpoint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10384
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 20:22:42 +0000 (20:22 +0000)]
Finegrainify namespacification
Fix bug: LowerInvoke/2003-12-10-Crash.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10382
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 20:18:09 +0000 (20:18 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10381
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Wed, 10 Dec 2003 20:04:13 +0000 (20:04 +0000)]
Fixed a comma error.
Added the --disable-threads option to GCC configure (to avoid pthread errors
when building code with LLVM).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10380
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 10 Dec 2003 18:41:20 +0000 (18:41 +0000)]
Support 'make install' for LLVM include files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10378
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Wed, 10 Dec 2003 18:17:57 +0000 (18:17 +0000)]
Upon Chris's suggestion, moved the #ifdef's to the generated C code.
This makes LLVM and the generated C code more portable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10377
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 18:06:47 +0000 (18:06 +0000)]
Finegrainify namespacification
Reorder #includes
Implement: IndVarsSimplify/2003-12-10-IndVarDeadCode.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10376
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Wed, 10 Dec 2003 18:06:34 +0000 (18:06 +0000)]
Fixed the CBE on Solaris/Sparc. We need to define the return value of
the write() system call because it returns 64 bits on Solaris 64 bit,
and an implicit return value of int says it returns 32 bits.
Admittedly, this is a bit of a hack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10375
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 17:57:38 +0000 (17:57 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10374
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 17:20:35 +0000 (17:20 +0000)]
Finegrainify namespacification
Fix bug: LoopSimplify/2003-12-10-ExitBlocksProblem.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10373
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 17:09:35 +0000 (17:09 +0000)]
New testcase which caused a bunch of tests to break last night with more
aggressive LICM
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10372
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 16:58:24 +0000 (16:58 +0000)]
Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10371
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 16:57:24 +0000 (16:57 +0000)]
Avoid performing two identical lookups when one will suffice
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10370
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 15:56:24 +0000 (15:56 +0000)]
Make LICM itself a bit more efficient, and make the generated code more efficient too: don't insert a store in every exit block, because a particular block may be exited to more than once by a loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10369
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Wed, 10 Dec 2003 15:43:07 +0000 (15:43 +0000)]
Removed the pthread_once() function because it doesn't actually do
what it's supposed to do.
Just leave this library as a dummy library for now until we have time to
port a real pthread library (or get glibc working).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10368
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 15:34:03 +0000 (15:34 +0000)]
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10367
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 15:33:59 +0000 (15:33 +0000)]
Finegrainify namespacification
Provide a context module to WriteAsOperand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10366
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Wed, 10 Dec 2003 15:27:29 +0000 (15:27 +0000)]
Added the --host= option to the Sparc configuration directions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10364
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Wed, 10 Dec 2003 14:46:36 +0000 (14:46 +0000)]
Dummy implementation of the pthread library.
This is needed since libstdc++ uses pthread_once().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10360
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 14:41:33 +0000 (14:41 +0000)]
Make 'opt -o -' work correctly instead of creating a file named './-'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10359
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 06:41:05 +0000 (06:41 +0000)]
Implement instruction sinking out of loops. This still can do a little bit
better job, but this is the majority of the work. This implements
LICM/sink*.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10358
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 10 Dec 2003 05:42:23 +0000 (05:42 +0000)]
new testcase, checking to ensure we handle yet-another spiffy case correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10357
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 10 Dec 2003 05:06:38 +0000 (05:06 +0000)]
Don't assume that system headers define 'uint' or 'ulong' as types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10356
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 10 Dec 2003 04:33:07 +0000 (04:33 +0000)]
Fix apparent copy-and-paste-o.
Get rid of %debug - Mac OS X bison doesn't have it. sigh.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10352
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 10 Dec 2003 00:26:28 +0000 (00:26 +0000)]
Add support for installing tool executables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10351
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 10 Dec 2003 00:25:32 +0000 (00:25 +0000)]
Add installation directories and commands, standardly provided by configure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10350
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2003 23:29:25 +0000 (23:29 +0000)]
Yet another hard testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10349
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Dec 2003 23:12:55 +0000 (23:12 +0000)]
Do not insert one entry PHI nodes in split exit blocks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10348
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Tue, 9 Dec 2003 22:23:24 +0000 (22:23 +0000)]
Check in the llvm-native-gcc script, which I use in the process of
debugging front-end miscompilations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10347
91177308-0d34-0410-b5e6-
96231b3b80d8