oota-llvm.git
16 years agoedits.
Chris Lattner [Wed, 7 Nov 2007 05:07:10 +0000 (05:07 +0000)]
edits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43804 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded special version of ReadPtr() that returns a deserialized pointer
Ted Kremenek [Wed, 7 Nov 2007 00:47:33 +0000 (00:47 +0000)]
Added special version of ReadPtr() that returns a deserialized pointer
by value.  This version prohibits backpatching of pointers, so it
useful when a pointee is always known to be deserialized beforehand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43799 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFixed default ctor for APInt to properly initialize BitWidth to a
Ted Kremenek [Wed, 7 Nov 2007 00:27:59 +0000 (00:27 +0000)]
Fixed default ctor for APInt to properly initialize BitWidth to a
non-random value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43795 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoInterchange Dwarf numbers of ESP and EBP on x86 Darwin.
Dale Johannesen [Wed, 7 Nov 2007 00:25:05 +0000 (00:25 +0000)]
Interchange Dwarf numbers of ESP and EBP on x86 Darwin.
Much improvement in exception handling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43794 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoImplement the XTARGET feature for PR1778
Tanya Lattner [Tue, 6 Nov 2007 22:32:17 +0000 (22:32 +0000)]
Implement the XTARGET feature for PR1778
This will mark a test as PASS for all targets specified. It will override whatever is in XFAIL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43788 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoSerializer no longer automatically emits a root-level block in the bitstream.
Ted Kremenek [Tue, 6 Nov 2007 22:22:25 +0000 (22:22 +0000)]
Serializer no longer automatically emits a root-level block in the bitstream.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43784 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAugmented ReadPtr and ReadOwnedPtr to control whether or not a pointer is allowed...
Ted Kremenek [Tue, 6 Nov 2007 22:21:14 +0000 (22:21 +0000)]
Augmented ReadPtr and ReadOwnedPtr to control whether or not a pointer is allowed to be backpatched
or can be registered with the deserializer to backpatch other pointers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43783 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomake smallptrset more const and type correct, which caught a few
Chris Lattner [Tue, 6 Nov 2007 22:12:43 +0000 (22:12 +0000)]
make smallptrset more const and type correct, which caught a few
minor bugs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43782 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemainder operations must be either integer or floating-point.
Dan Gohman [Tue, 6 Nov 2007 22:11:54 +0000 (22:11 +0000)]
Remainder operations must be either integer or floating-point.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43781 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix const correctness, BB is const, so its predecessors are too
Chris Lattner [Tue, 6 Nov 2007 22:07:40 +0000 (22:07 +0000)]
fix const correctness, BB is const, so its predecessors are too

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43780 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agodon't put erase or query for non-allocainst pointers in an set of allocainsts*'s
Chris Lattner [Tue, 6 Nov 2007 22:07:22 +0000 (22:07 +0000)]
don't put erase or query for non-allocainst pointers in an set of allocainsts*'s

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43779 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoImplement PR1777 by detecting dependent phis that
Chris Lattner [Tue, 6 Nov 2007 21:52:06 +0000 (21:52 +0000)]
Implement PR1777 by detecting dependent phis that
all compute the same value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43777 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoWhen the allocator rewrite a spill register with new virtual register, it replaces...
Evan Cheng [Tue, 6 Nov 2007 21:12:10 +0000 (21:12 +0000)]
When the allocator rewrite a spill register with new virtual register, it replaces other operands of the same register. Watch out for situations where
only some of the operands are sub-register uses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43776 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAt the point of calculating the shift amount, the
Duncan Sands [Tue, 6 Nov 2007 20:39:11 +0000 (20:39 +0000)]
At the point of calculating the shift amount, the
type of SV has changed from what it originally was.
However we need the store width of the original.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43775 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRenamed "Flush()" to "FlushRecord()".
Ted Kremenek [Tue, 6 Nov 2007 19:49:50 +0000 (19:49 +0000)]
Renamed "Flush()" to "FlushRecord()".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43772 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded support for processing abbreviations in the Deserializer.
Ted Kremenek [Tue, 6 Nov 2007 19:49:16 +0000 (19:49 +0000)]
Added support for processing abbreviations in the Deserializer.
Added some #ifdef-controlled messages for debugging backpatching.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43771 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofixes from Kelly Wilson.
Chris Lattner [Tue, 6 Nov 2007 18:13:32 +0000 (18:13 +0000)]
fixes from Kelly Wilson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43767 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoClarify some of the iostreams stuff.
Bill Wendling [Tue, 6 Nov 2007 09:36:34 +0000 (09:36 +0000)]
Clarify some of the iostreams stuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43766 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFirst step towards moving the coalescer to priority_queue based machinery.
Evan Cheng [Tue, 6 Nov 2007 08:52:21 +0000 (08:52 +0000)]
First step towards moving the coalescer to priority_queue based machinery.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43764 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a bug where a def use operand isn't being detected as a sub-register use.
Evan Cheng [Tue, 6 Nov 2007 08:50:44 +0000 (08:50 +0000)]
Fix a bug where a def use operand isn't being detected as a sub-register use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43763 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd pseudo dependency to force two-address instruction to be scheduled after
Evan Cheng [Tue, 6 Nov 2007 08:44:59 +0000 (08:44 +0000)]
Add pseudo dependency to force two-address instruction to be scheduled after
other uses. There was a overly restricted check that prevented some obvious
cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43762 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoedits for chapter 3
Chris Lattner [Tue, 6 Nov 2007 07:26:32 +0000 (07:26 +0000)]
edits for chapter 3

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43761 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agochapter 2 edits
Chris Lattner [Tue, 6 Nov 2007 07:16:22 +0000 (07:16 +0000)]
chapter 2 edits

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43760 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoedits
Chris Lattner [Tue, 6 Nov 2007 06:32:18 +0000 (06:32 +0000)]
edits

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43758 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix PR1774 and BasicAA/2007-11-05-SizeCrash.ll
Chris Lattner [Tue, 6 Nov 2007 05:58:42 +0000 (05:58 +0000)]
Fix PR1774 and BasicAA/2007-11-05-SizeCrash.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43756 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a few comments.
Owen Anderson [Tue, 6 Nov 2007 05:26:02 +0000 (05:26 +0000)]
Add a few comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43755 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDomForest is a forest of registers, not instructions.
Owen Anderson [Tue, 6 Nov 2007 05:22:43 +0000 (05:22 +0000)]
DomForest is a forest of registers, not instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43754 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoclarify what proto is.
Chris Lattner [Tue, 6 Nov 2007 05:07:30 +0000 (05:07 +0000)]
clarify what proto is.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43753 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a real intro to the series.
Chris Lattner [Tue, 6 Nov 2007 05:02:48 +0000 (05:02 +0000)]
Add a real intro to the series.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43752 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoStrongPHIElimination requires LiveVariables.
Owen Anderson [Tue, 6 Nov 2007 04:49:43 +0000 (04:49 +0000)]
StrongPHIElimination requires LiveVariables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43751 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoBetter processor definition
Bruno Cardoso Lopes [Tue, 6 Nov 2007 03:15:20 +0000 (03:15 +0000)]
Better processor definition

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43749 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agotypo from Ryan Brown.
Chris Lattner [Tue, 6 Nov 2007 01:40:41 +0000 (01:40 +0000)]
typo from Ryan Brown.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43748 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofixes from Ryan Brown.
Chris Lattner [Tue, 6 Nov 2007 01:39:12 +0000 (01:39 +0000)]
fixes from Ryan Brown.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43747 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a missing #include.
Owen Anderson [Tue, 6 Nov 2007 01:26:56 +0000 (01:26 +0000)]
Add a missing #include.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43746 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agowrap long lines
Chris Lattner [Tue, 6 Nov 2007 01:15:27 +0000 (01:15 +0000)]
wrap long lines

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43745 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd support for vector remainder operations.
Dan Gohman [Mon, 5 Nov 2007 23:35:22 +0000 (23:35 +0000)]
Add support for vector remainder operations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43744 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix an abort in instcombine when folding creates a vector rem instruction.
Dan Gohman [Mon, 5 Nov 2007 23:16:33 +0000 (23:16 +0000)]
Fix an abort in instcombine when folding creates a vector rem instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43743 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMove the LowerMEMCPY and LowerMEMCPYCall to a common place.
Rafael Espindola [Mon, 5 Nov 2007 23:12:20 +0000 (23:12 +0000)]
Move the LowerMEMCPY and LowerMEMCPYCall to a common place.

Thanks for the suggestions Bill :-)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43742 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded support in serializer and deserializer to create arbitrary blocks.
Ted Kremenek [Mon, 5 Nov 2007 21:36:35 +0000 (21:36 +0000)]
Added support in serializer and deserializer to create arbitrary blocks.
Added detection of end-of-stream in deserializer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43736 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMake labels work in asm blocks; allow labels as
Dale Johannesen [Mon, 5 Nov 2007 21:20:28 +0000 (21:20 +0000)]
Make labels work in asm blocks; allow labels as
parameters.  Rename ValueRefList to ParamList
in AsmParser, since its only use is for parameters.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43734 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded default creation of root-level block by bitstream serializer.
Ted Kremenek [Mon, 5 Nov 2007 20:47:27 +0000 (20:47 +0000)]
Added default creation of root-level block by bitstream serializer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43732 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomerge in various fixes from Kelly Wilson.
Chris Lattner [Mon, 5 Nov 2007 20:13:56 +0000 (20:13 +0000)]
merge in various fixes from Kelly Wilson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43731 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd some links to the tutorial index and between chapters.
Chris Lattner [Mon, 5 Nov 2007 20:04:56 +0000 (20:04 +0000)]
add some links to the tutorial index and between chapters.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43730 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agogrammaro
Chris Lattner [Mon, 5 Nov 2007 19:33:52 +0000 (19:33 +0000)]
grammaro

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43729 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoIf a value is incoming from outside the loop then the value does not need remapping...
Devang Patel [Mon, 5 Nov 2007 19:32:30 +0000 (19:32 +0000)]
If a value is incoming from outside the loop then the value does not need remapping and the value is never tracked through  LastValueMap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43728 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agorecursive types are our friend.
Chris Lattner [Mon, 5 Nov 2007 19:28:07 +0000 (19:28 +0000)]
recursive types are our friend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43727 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomention possibility of using a visitor
Chris Lattner [Mon, 5 Nov 2007 19:25:14 +0000 (19:25 +0000)]
mention possibility of using a visitor

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43726 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoclarify why prototype::codegen returns a function.
Chris Lattner [Mon, 5 Nov 2007 19:22:50 +0000 (19:22 +0000)]
clarify why prototype::codegen returns a function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43725 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoTOC for chapter 8
Chris Lattner [Mon, 5 Nov 2007 19:10:15 +0000 (19:10 +0000)]
TOC for chapter 8

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43724 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd table of contents to each chapter.
Chris Lattner [Mon, 5 Nov 2007 19:06:59 +0000 (19:06 +0000)]
add table of contents to each chapter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43723 91177308-0d34-0410-b5e6-96231b3b80d8

16 years ago[ARM] Fix code generation for:
Lauro Ramos Venancio [Mon, 5 Nov 2007 18:33:37 +0000 (18:33 +0000)]
[ARM] Fix code generation for:

static __thread struct {
    int a;
    int b;
} teste = {0, 0};

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43722 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFixed bug where tombstone key and empty key for DenseMap used for
Ted Kremenek [Mon, 5 Nov 2007 18:13:03 +0000 (18:13 +0000)]
Fixed bug where tombstone key and empty key for DenseMap used for
pointer backpatching in deserializer were improperly created and
resulted in an assertion failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43721 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDon't output ABI size padding twice. By using the store
Duncan Sands [Mon, 5 Nov 2007 18:03:02 +0000 (18:03 +0000)]
Don't output ABI size padding twice.  By using the store
size for the field we get ABI padding automatically, so
no need to put it in again when we emit the field.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43720 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd link to llvmbuilder doxygen docs
Chris Lattner [Mon, 5 Nov 2007 18:02:15 +0000 (18:02 +0000)]
add link to llvmbuilder doxygen docs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43719 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agospell identifier correctly.
Chris Lattner [Mon, 5 Nov 2007 17:54:34 +0000 (17:54 +0000)]
spell identifier correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43718 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix typo
Chris Lattner [Mon, 5 Nov 2007 17:52:04 +0000 (17:52 +0000)]
fix typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43717 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDan points out that mem2reg also promotes vectors: be more precise.
Chris Lattner [Mon, 5 Nov 2007 17:45:54 +0000 (17:45 +0000)]
Dan points out that mem2reg also promotes vectors: be more precise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43715 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMove SimpleRegisterCoalescing.h to lib/CodeGen since there is now a common
Evan Cheng [Mon, 5 Nov 2007 17:41:38 +0000 (17:41 +0000)]
Move SimpleRegisterCoalescing.h to lib/CodeGen since there is now a common
register coalescer interface: RegisterCoalescing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43714 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoclarify
Chris Lattner [Mon, 5 Nov 2007 17:39:26 +0000 (17:39 +0000)]
clarify

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43712 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix typo
Chris Lattner [Mon, 5 Nov 2007 17:38:34 +0000 (17:38 +0000)]
fix typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43711 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix some typos.
Duncan Sands [Mon, 5 Nov 2007 16:04:58 +0000 (16:04 +0000)]
Fix some typos.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43709 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoTrivial fixes.
Duncan Sands [Mon, 5 Nov 2007 15:15:50 +0000 (15:15 +0000)]
Trivial fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43707 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse movups to spill / restore SSE registers on targets where stacks alignment is
Evan Cheng [Mon, 5 Nov 2007 07:30:01 +0000 (07:30 +0000)]
Use movups to spill / restore SSE registers on targets where stacks alignment is
less than 16. This is a temporary solution until dynamic stack alignment is
implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43703 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd a link.
Chris Lattner [Mon, 5 Nov 2007 07:02:49 +0000 (07:02 +0000)]
add a link.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43702 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofinish the tutorial, yaay.
Chris Lattner [Mon, 5 Nov 2007 07:00:54 +0000 (07:00 +0000)]
finish the tutorial, yaay.

comments and feedback welcome.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43701 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoSkip over deleted val#'s.
Evan Cheng [Mon, 5 Nov 2007 06:46:45 +0000 (06:46 +0000)]
Skip over deleted val#'s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43700 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoHandle cases where a register and one of its super-register are both marked as
Evan Cheng [Mon, 5 Nov 2007 03:11:55 +0000 (03:11 +0000)]
Handle cases where a register and one of its super-register are both marked as
defined on the same instruction. This fixes PR1767.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43699 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix test case. Chris didn't do make check. :-)
Evan Cheng [Mon, 5 Nov 2007 03:04:26 +0000 (03:04 +0000)]
Fix test case. Chris didn't do make check. :-)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43698 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded support for PIC code with "explicit relocations" *only*.
Bruno Cardoso Lopes [Mon, 5 Nov 2007 03:02:32 +0000 (03:02 +0000)]
Added support for PIC code with "explicit relocations" *only*.
Removed all macro code for PIC (goodbye "la").
Support tested with shootout bench.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43697 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoBringing Passes.html up-to-date with the deletion of the
Gordon Henriksen [Mon, 5 Nov 2007 02:05:35 +0000 (02:05 +0000)]
Bringing Passes.html up-to-date with the deletion of the
-emitbitcode option and the addition of -preverify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43696 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd the first section of chapter 8.
Chris Lattner [Mon, 5 Nov 2007 01:58:13 +0000 (01:58 +0000)]
Add the first section of chapter 8.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43695 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDeleting redundant copy of block extractor pass. See also PR1775.
Gordon Henriksen [Mon, 5 Nov 2007 01:54:05 +0000 (01:54 +0000)]
Deleting redundant copy of block extractor pass. See also PR1775.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43694 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDoh. PR1187 -> PR1766.
Evan Cheng [Mon, 5 Nov 2007 01:00:44 +0000 (01:00 +0000)]
Doh. PR1187 -> PR1766.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43693 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix PR1187.
Evan Cheng [Mon, 5 Nov 2007 00:59:10 +0000 (00:59 +0000)]
Fix PR1187.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43692 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoIf a long double is in a packed struct, it may be
Duncan Sands [Mon, 5 Nov 2007 00:35:07 +0000 (00:35 +0000)]
If a long double is in a packed struct, it may be
that there is no padding.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43691 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofinish the chapter.
Chris Lattner [Mon, 5 Nov 2007 00:23:57 +0000 (00:23 +0000)]
finish the chapter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43689 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoEliminate the remaining uses of getTypeSize. This
Duncan Sands [Mon, 5 Nov 2007 00:04:43 +0000 (00:04 +0000)]
Eliminate the remaining uses of getTypeSize.  This
should only effect x86 when using long double.  Now
12/16 bytes are output for long double globals (the
exact amount depends on the alignment).  This brings
globals in line with the rest of LLVM: the space
reserved for an object is now always the ABI size.
One tricky point is that only 10 bytes should be
output for long double if it is a field in a packed
struct, which is the reason for the additional
argument to EmitGlobalConstant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43688 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAnother step of stronger PHI elimination down.
Owen Anderson [Sun, 4 Nov 2007 22:33:26 +0000 (22:33 +0000)]
Another step of stronger PHI elimination down.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43684 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDeleting -emitbitcode option which did nothing.
Gordon Henriksen [Sun, 4 Nov 2007 20:28:31 +0000 (20:28 +0000)]
Deleting -emitbitcode option which did nothing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43683 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix typos
Chris Lattner [Sun, 4 Nov 2007 19:42:13 +0000 (19:42 +0000)]
fix typos

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43682 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix PR1761 by not printing (rip) suffix when in -static mode.
Chris Lattner [Sun, 4 Nov 2007 19:23:28 +0000 (19:23 +0000)]
Fix PR1761 by not printing (rip) suffix when in -static mode.
Evan, please review this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43680 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoValidation fix.
Gordon Henriksen [Sun, 4 Nov 2007 18:17:58 +0000 (18:17 +0000)]
Validation fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43679 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoTypo fix.
Gordon Henriksen [Sun, 4 Nov 2007 18:14:08 +0000 (18:14 +0000)]
Typo fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43678 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCompleting Passes.html with the exception of -emitbitcode, which should be
Gordon Henriksen [Sun, 4 Nov 2007 18:10:18 +0000 (18:10 +0000)]
Completing Passes.html with the exception of -emitbitcode, which should be
removed. This document could still stand for significant improvement:

  * Editing the pass descriptions; most were lifted with minimal editing from
    comments. Although implementation details were elided, many of the were not
    written for the audience that would be interested in this document.
  * More "before and after" examples.
  * More implicit dependency details. (Perhaps listing transforms in
    -std-compile-opts order would help alleviate this.)
  * Adding documentation for how to invoke passes programmatically.
  * Rearranging the document into a more logical taxonomy. For instance, putting
    profiling passes together.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43677 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix crash before main on ppc/linux with static constructors. PR1771
Nick Lewycky [Sun, 4 Nov 2007 17:32:10 +0000 (17:32 +0000)]
Fix crash before main on ppc/linux with static constructors. PR1771

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43676 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a validation error.
Gordon Henriksen [Sun, 4 Nov 2007 16:17:00 +0000 (16:17 +0000)]
Fix a validation error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43675 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFinishing initial docs for all transformations in Passes.html.
Gordon Henriksen [Sun, 4 Nov 2007 16:15:04 +0000 (16:15 +0000)]
Finishing initial docs for all transformations in Passes.html.

Also cleaned up some comments in source files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43674 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemoving a dead reference from LLVM.xcodeproj.
Gordon Henriksen [Sun, 4 Nov 2007 16:12:17 +0000 (16:12 +0000)]
Removing a dead reference from LLVM.xcodeproj.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43673 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoChange uses of getTypeSize to getABITypeSize, getTypeStoreSize
Duncan Sands [Sun, 4 Nov 2007 14:43:57 +0000 (14:43 +0000)]
Change uses of getTypeSize to getABITypeSize, getTypeStoreSize
or getTypeSizeInBits as appropriate in ScalarReplAggregates.
The right change to make was not always obvious, so it would
be good to have an sroa guru review this.  While there I noticed
some bugs, and fixed them: (1) arrays of x86 long double have
holes due to alignment padding, but this wasn't being spotted
by HasStructPadding (renamed to HasPadding).  The same goes
for arrays of oddly sized ints.  Vectors also suffer from this,
in fact the problem for vectors is much worse because basic
vector assumptions seem to be broken by vectors of type with
alignment padding.   I didn't try to fix any of these vector
problems.  (2) The code for extracting smaller integers from
larger ones (in the "int union" case) was wrong on big-endian
machines for integers with size not a multiple of 8, like i1.
Probably this is impossible to hit via llvm-gcc, but I fixed
it anyway while there and added a testcase.  I also got rid of
some trailing whitespace and changed a function name which
had an obvious typo in it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43672 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoIf an interval is being undone clear its preference as well since the source interval...
Evan Cheng [Sun, 4 Nov 2007 08:32:21 +0000 (08:32 +0000)]
If an interval is being undone clear its preference as well since the source interval may have been undone as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43670 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix PR1763 by allowing the 'q' constraint to work with 64-bit
Chris Lattner [Sun, 4 Nov 2007 06:51:12 +0000 (06:51 +0000)]
Fix PR1763 by allowing the 'q' constraint to work with 64-bit
regs on x86-64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43669 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDisable tail duplication of call instructions. The cost
Chris Lattner [Sun, 4 Nov 2007 06:37:55 +0000 (06:37 +0000)]
Disable tail duplication of call instructions.  The cost
metric is way off for these in general, and this works around
buggy code like that in PR1764.  we'll see if there is a big
performance impact of this.  If so, I'll revert it tomorrow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43668 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofinish the 'Memory in LLVM' section
Chris Lattner [Sat, 3 Nov 2007 22:22:30 +0000 (22:22 +0000)]
finish the 'Memory in LLVM' section

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43667 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agohack and slash the first 20% of chapter seven.
Chris Lattner [Sat, 3 Nov 2007 08:55:29 +0000 (08:55 +0000)]
hack and slash the first 20% of chapter seven.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43663 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoThere are times when the coalescer would not coalesce away a copy but the copy
Evan Cheng [Sat, 3 Nov 2007 07:20:12 +0000 (07:20 +0000)]
There are times when the coalescer would not coalesce away a copy but the copy
can be eliminated by the allocator is the destination and source targets the
same register. The most common case is when the source and destination registers
are in different class. For example, on x86 mov32to32_ targets GR32_ which
contains a subset of the registers in GR32.

The allocator can do 2 things:
1. Set the preferred allocation for the destination of a copy to that of its source.
2. After allocation is done, change the allocation of a copy destination (if
   legal) so the copy can be eliminated.

This eliminates 443 extra moves from 403.gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43662 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd std:: to sort calls.
Dan Gohman [Fri, 2 Nov 2007 22:24:01 +0000 (22:24 +0000)]
Add std:: to sort calls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43652 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoChange illegal uses of ++ to uses of STLExtra.h's next function.
Dan Gohman [Fri, 2 Nov 2007 22:22:02 +0000 (22:22 +0000)]
Change illegal uses of ++ to uses of STLExtra.h's next function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43651 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded overloaded version of Deserializer::ReadOwnedPtr which allows
Ted Kremenek [Fri, 2 Nov 2007 18:04:20 +0000 (18:04 +0000)]
Added overloaded version of Deserializer::ReadOwnedPtr which allows
the target pointer to be passed by reference.  This can result in less
typing, as the object to be deserialized can be inferred from the
argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43647 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUnbreak tailcall opt.
Evan Cheng [Fri, 2 Nov 2007 17:45:40 +0000 (17:45 +0000)]
Unbreak tailcall opt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43646 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd run line.
Evan Cheng [Fri, 2 Nov 2007 17:36:58 +0000 (17:36 +0000)]
Add run line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43645 91177308-0d34-0410-b5e6-96231b3b80d8