Chris Lattner [Mon, 19 Jul 2004 05:15:10 +0000 (05:15 +0000)]
See comments. The live intervals were not coming out of the spiller in sorted
order, causing the inactive list in the linearscan list to get unsorted, which
basically fuxored everything up severely.
These seems to fix the joiner, so with more testing I will enable it by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14992
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 05:02:09 +0000 (05:02 +0000)]
Fix assertion to not dereference end!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14991
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 04:47:36 +0000 (04:47 +0000)]
Add some asserts that the list of intervals returned by addIntervalsForSpills
is sorted. This is not the case currently, which is causing no end of
problems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14990
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 02:15:56 +0000 (02:15 +0000)]
remove the mbbi2mbbMap_, which was just keeping track of mbb order anyway.
Heavily refactor handleVirtualRegisterDef, adding comments and making it more
efficient. It is also much easier to follow and convince ones self that it is
correct :)
Add -debug output to the joine, showing the result of joining the intervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14989
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 02:13:59 +0000 (02:13 +0000)]
fill comment to 80 cols
remove map that is not needed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14988
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 00:59:10 +0000 (00:59 +0000)]
classof implementations are now inlined
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14987
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 00:58:47 +0000 (00:58 +0000)]
inline classof implementations, eliminate use of virtual methods.
classof<ConstantXXX> is now MUCH faster than it used to be.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14986
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 00:58:02 +0000 (00:58 +0000)]
eliminate isConstantExpr, changes to isa<Constant> implementation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14985
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 00:57:40 +0000 (00:57 +0000)]
Add new enum entries for ConstantAggregateZeroVal/ConstantExprVal and
rename ConstantVal to SimpleConstantVal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14984
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 00:55:35 +0000 (00:55 +0000)]
Method now returns null, dtor is inlined
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14983
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 19 Jul 2004 00:55:19 +0000 (00:55 +0000)]
Change method to return void. Inline dtor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14982
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 23:44:15 +0000 (23:44 +0000)]
Remove dead file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14981
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 23:43:34 +0000 (23:43 +0000)]
Remove this printer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14980
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 22:33:08 +0000 (22:33 +0000)]
A description of what this library is about, reference to the documentation
and a list of don'ts for the library. All so future maintainers don't
break the important contract this library has with its user: LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14979
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 22:32:22 +0000 (22:32 +0000)]
Add note about GCC 3.3.2 being completely broken
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14978
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 22:31:28 +0000 (22:31 +0000)]
Initiali Makefile for this library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14977
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 21:56:20 +0000 (21:56 +0000)]
Add a workaround for a GCC 3.3.2 bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14976
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 21:44:13 +0000 (21:44 +0000)]
Doesn't exist
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14975
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 21:34:16 +0000 (21:34 +0000)]
Fix a performance regression from the CPR patch, simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14974
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 19:56:20 +0000 (19:56 +0000)]
Strip out and simplify some code. This also fixes the regression last
night compiling cfrac. It did not realize that code like this:
int G; int *H = &G;
takes the address of G.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14973
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 18:59:44 +0000 (18:59 +0000)]
Minor cleanup, no functionality change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14972
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 18:45:01 +0000 (18:45 +0000)]
Fix infinite loop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14971
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 13:10:31 +0000 (13:10 +0000)]
bug 122:
Updated to remove references to ConstantPointerRef and reflect the change
in the inheritance hierarchy: GlobalValue now derives from Constant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14969
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 08:41:47 +0000 (08:41 +0000)]
Remove an if statement that would never be reached.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14968
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 08:34:52 +0000 (08:34 +0000)]
Delete a redundant if branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14967
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 08:34:19 +0000 (08:34 +0000)]
Expand the coercion of constants to include the newly constant Globals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14966
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 08:32:43 +0000 (08:32 +0000)]
Delete a no-op loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14965
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 08:32:10 +0000 (08:32 +0000)]
Expand the scope to include global values because they are now constants
too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14964
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 08:31:18 +0000 (08:31 +0000)]
Avoid an unnecessary isa<Constant>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14963
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 08:12:57 +0000 (08:12 +0000)]
Fix infinite loop gccld'ing povray
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14962
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 07:29:35 +0000 (07:29 +0000)]
CPR Fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14961
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 07:26:17 +0000 (07:26 +0000)]
CPR fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14960
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 07:25:14 +0000 (07:25 +0000)]
Bug 122 fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14959
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 07:22:58 +0000 (07:22 +0000)]
Remove useless statistic, fix some slightly broken logic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14958
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 18 Jul 2004 06:56:58 +0000 (06:56 +0000)]
Fix a rather serious bug in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14957
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 01:04:19 +0000 (01:04 +0000)]
Shrink some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14956
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:56:58 +0000 (00:56 +0000)]
Add a missing space to align comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14955
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:55:49 +0000 (00:55 +0000)]
Fix typeos in comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14954
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:44:37 +0000 (00:44 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14953
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:44:14 +0000 (00:44 +0000)]
bug 122:
- Minimize redundant isa<GlobalValue> usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14952
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:41:27 +0000 (00:41 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14951
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:38:32 +0000 (00:38 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14950
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:37:35 +0000 (00:37 +0000)]
bug 122:
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14949
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:32:14 +0000 (00:32 +0000)]
bug 122:
- Minimize redundant isa<GlobalValue> usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14948
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:31:05 +0000 (00:31 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14947
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:29:57 +0000 (00:29 +0000)]
bug 122:
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14946
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:25:04 +0000 (00:25 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Rename methods to get ride of ConstantPointerRef usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14945
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:23:51 +0000 (00:23 +0000)]
bug 122:
- Excise dead CPR procesing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14944
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:19:45 +0000 (00:19 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct test ordering for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14943
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:18:30 +0000 (00:18 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14942
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:16:21 +0000 (00:16 +0000)]
bug 122:
- Correct ordering of tests because for GlobalValue isa Constant
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14941
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:13:12 +0000 (00:13 +0000)]
User ValueListTy as the type of the ValueList. This avoides the ValueList
from being treated like a Function which can cause the contents of the list
to be come invalidated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14940
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:12:03 +0000 (00:12 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14939
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:10:36 +0000 (00:10 +0000)]
bug 122:
- Update for BytecodeHandler interface change resuing from CPRs going away
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14938
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:08:11 +0000 (00:08 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
- Remove tabs
- Fix coments refering to ConstantPointerRef
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14937
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:06:26 +0000 (00:06 +0000)]
bug 122:
- Move these functions from other places
- Provide implementations of Constant class overrides in GlobalValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14936
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:03:48 +0000 (00:03 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Replace tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14935
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:02:41 +0000 (00:02 +0000)]
bug 122:
- Correct an assert to not have redundant isa<GlobalValue>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14934
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 18 Jul 2004 00:01:50 +0000 (00:01 +0000)]
bug 122:
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14933
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:57:36 +0000 (23:57 +0000)]
bug 122:
- Correct isa<Constant> for GlobalValue subclass
- Fix some tabs and indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14932
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:53:23 +0000 (23:53 +0000)]
bug 122:
- Module doesn't need to manage ConstantPointerRefs any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14931
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:50:57 +0000 (23:50 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14930
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:50:19 +0000 (23:50 +0000)]
bug 122:
- Move GlobalValue and GlobalVariable implementations to Globals.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14929
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:48:33 +0000 (23:48 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
- Delete ConstantPointerRef member function implementations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14928
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:47:01 +0000 (23:47 +0000)]
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14927
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:36:58 +0000 (23:36 +0000)]
bug 122:
remove redundant isa<GlobalValue>
ensure isa<GlobalValue> case is processed before is<Constant>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14926
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:34:47 +0000 (23:34 +0000)]
bug 122:
- Add ValueListTy to TypeTy so that the bcreader can have its own User
category that won't get factored into any optimizations or cleanup.
- Correct an isa_impl to correctly include GlobalValue now that it isa
Constant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14925
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:32:11 +0000 (23:32 +0000)]
bug 122:
Remove redundancy in User::classof(Value*); GlobalValue isa Constant now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14924
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:30:45 +0000 (23:30 +0000)]
Fix a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14923
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:30:11 +0000 (23:30 +0000)]
bug 122:
We don't need to keep track of CPRs any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14922
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:29:46 +0000 (23:29 +0000)]
bug 122:
Now that GlobalVariable is a constant (via derivation from GlobalValue),
override the replaceUsesOfWithOnConstant method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14921
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:28:28 +0000 (23:28 +0000)]
bug 122:
- derive from Constant
- declare needed overrides from Constant class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14920
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:26:57 +0000 (23:26 +0000)]
****** ABOLISH ConstantPointerRef *****
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14919
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:26:12 +0000 (23:26 +0000)]
Extend constructor so that it can support GlobalValue's (with names).
Make GlobalValue a "classof" Constant
Fix the classof(Value*) to include GlobalValue's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14918
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 23:23:30 +0000 (23:23 +0000)]
Constant value not needed after CPR's disappear.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14917
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 21:51:25 +0000 (21:51 +0000)]
It looks like physref->virtreg joining is working fine. Enable it by default
but make virtreg->virtreg joining stay off by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14916
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 20:26:14 +0000 (20:26 +0000)]
Make sure to emit the immediate byte for instructions like:
shrd [mem], reg, imm
This fixes the jit-ls failure on 186.crafty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14914
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 20:24:05 +0000 (20:24 +0000)]
Reserve the correct amt of space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14913
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 18:50:19 +0000 (18:50 +0000)]
Hrm, I think we need a "Reid is buggy" bug ;-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14912
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sat, 17 Jul 2004 18:37:46 +0000 (18:37 +0000)]
We don't really need to #include IPO.h into this file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14911
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 10:04:49 +0000 (10:04 +0000)]
Initial (outline only) draft of the System Library requirements, design
and details documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14910
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 17 Jul 2004 08:39:53 +0000 (08:39 +0000)]
Added a README to point users to the documentation on the design of this
library which is a prerequisite for maintaining the library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14909
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 07:40:34 +0000 (07:40 +0000)]
Fix incorrect computation of mod/ref sets. Do not ask for mod/ref information
for objects of size 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14908
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 06:43:20 +0000 (06:43 +0000)]
Print modref information in a useful way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14907
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 06:28:49 +0000 (06:28 +0000)]
Cleanups: fold two loops into one
New features: -print-all-alias-modref-info option, print more info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14906
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 03:09:12 +0000 (03:09 +0000)]
link.h causes problems on some platforms and is not needed on solaris, where
the comment came from.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14905
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 02:56:48 +0000 (02:56 +0000)]
Remove dead file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14904
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 17 Jul 2004 02:04:41 +0000 (02:04 +0000)]
Add note about IA64 C++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14903
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 16 Jul 2004 21:40:32 +0000 (21:40 +0000)]
Fix warning on 64-bit machines
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14902
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 21:06:24 +0000 (21:06 +0000)]
* Use LI(S) to copy constants into registers intead of ADDI(S) as the latter is
a funky way to "use" R0 for a 0-valued operand
* Add IMPLICIT_DEFs for incoming function arguments via registers to help the
register allocator not clobber those registers
* Implement comparisons with longs
* Teach emitSelectOperation() to fold the SetCC operation
Patch contributed by Nate Begeman
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14901
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 20:55:20 +0000 (20:55 +0000)]
* Store all non-volatile int registers R13-31 on the stack, restore on exit
* Fix comment formatting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14900
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 20:54:25 +0000 (20:54 +0000)]
Fix code formatting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14899
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 20:51:55 +0000 (20:51 +0000)]
Implement PowerPCInstrInfo::isMoveInstr(), patch by Nate Begeman
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14898
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 20:50:55 +0000 (20:50 +0000)]
Add prototype for TargetInstrInfo::isMoveInstr()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14897
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 20:35:20 +0000 (20:35 +0000)]
* Enable allocation of registers r2-r10
* Allocate registers 13-31 backwards (to be able to store them all at once)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14896
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 20:33:41 +0000 (20:33 +0000)]
Add IMPLICIT_DEFS pseudo-instruction; patch by: Nate Begeman
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14895
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 20:31:13 +0000 (20:31 +0000)]
The generated instruction selector isn't (yet) functional
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14894
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 20:29:04 +0000 (20:29 +0000)]
* Output non-lazy linking stubs for external global variables
* Get rid of dead and #if 0'd code
* Minor for loop speed-up: save end iterator instead of querying every time
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14893
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 19:45:45 +0000 (19:45 +0000)]
Correctly build shared objects on MacOS X for debugging code generators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14892
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 16 Jul 2004 19:32:12 +0000 (19:32 +0000)]
Define double alignment as 8 bytes now that assert(DoubleAlignment == PointerSize)
has been eliminated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14891
91177308-0d34-0410-b5e6-
96231b3b80d8