oota-llvm.git
17 years agoCompletely purge DomSet from LoopSimplify. This is part of the
Owen Anderson [Sat, 7 Apr 2007 06:56:47 +0000 (06:56 +0000)]
Completely purge DomSet from LoopSimplify.  This is part of the
continuing work on PR1171.

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

17 years agoBreakCriticalEdges does still preserve DominatorTree.
Owen Anderson [Sat, 7 Apr 2007 05:57:09 +0000 (05:57 +0000)]
BreakCriticalEdges does still preserve DominatorTree.

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

17 years agoExpunge DomSet from BreakCriticalEdges. This is part of the continuing
Owen Anderson [Sat, 7 Apr 2007 05:49:29 +0000 (05:49 +0000)]
Expunge DomSet from BreakCriticalEdges.  This is part of the continuing
work for PR 1171.

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

17 years agoFix a bug in my earlier commit which exposed positional options backwards.
Chris Lattner [Sat, 7 Apr 2007 05:38:53 +0000 (05:38 +0000)]
Fix a bug in my earlier commit which exposed positional options backwards.
This fixes llvm-ar.

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

17 years agoExpunge DomSet from CodeExtractor. This is part of the continuing work
Owen Anderson [Sat, 7 Apr 2007 05:31:27 +0000 (05:31 +0000)]
Expunge DomSet from CodeExtractor.  This is part of the continuing work
on PR1171.

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

17 years agoTerminate some lines that need to be.
Reid Spencer [Sat, 7 Apr 2007 05:20:07 +0000 (05:20 +0000)]
Terminate some lines that need to be.

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

17 years agoSupport NE inequality in ValueRanges.
Nick Lewycky [Sat, 7 Apr 2007 04:49:12 +0000 (04:49 +0000)]
Support NE inequality in ValueRanges.

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

17 years agoExpunge DomSet from LoadValueNumbering. This is part of the continuing
Owen Anderson [Sat, 7 Apr 2007 04:43:07 +0000 (04:43 +0000)]
Expunge DomSet from LoadValueNumbering.  This is part of the continuing
work on PR1171.

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

17 years agoadd loop rot
Chris Lattner [Sat, 7 Apr 2007 04:43:02 +0000 (04:43 +0000)]
add loop rot

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

17 years agoReinstate the SVN capability without requiring Date::Parse. As before the
Reid Spencer [Sat, 7 Apr 2007 04:41:16 +0000 (04:41 +0000)]
Reinstate the SVN capability without requiring Date::Parse. As before the
SVN Repository is only used if requested with -usesvn option otherwise it
uses CVS.

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

17 years agoExpunge a bunch of uses of DomSet from LoopSimplify. Many more remain.
Owen Anderson [Sat, 7 Apr 2007 04:37:14 +0000 (04:37 +0000)]
Expunge a bunch of uses of DomSet from LoopSimplify.  Many more remain.

This is the beginning of work for PR1171.

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

17 years agoCleanup. Refactor out the applying of value ranges to its own method.
Nick Lewycky [Sat, 7 Apr 2007 03:36:51 +0000 (03:36 +0000)]
Cleanup. Refactor out the applying of value ranges to its own method.

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

17 years agoUse TargetData to find the size of a type.
Nick Lewycky [Sat, 7 Apr 2007 03:16:12 +0000 (03:16 +0000)]
Use TargetData to find the size of a type.

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

17 years agoStrengthen icmp snuggling by doing 'compare-or-equal-to' to 'compare'
Nick Lewycky [Sat, 7 Apr 2007 02:30:14 +0000 (02:30 +0000)]
Strengthen icmp snuggling by doing 'compare-or-equal-to' to 'compare'
first and then range testing second.

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

17 years agoAdd loop rotation pass.
Devang Patel [Sat, 7 Apr 2007 01:25:15 +0000 (01:25 +0000)]
Add loop rotation pass.

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

17 years agofix a miscompilation in printf optimizer.
Chris Lattner [Sat, 7 Apr 2007 01:18:36 +0000 (01:18 +0000)]
fix a miscompilation in printf optimizer.

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

17 years agotrunc to bool no longer compares against zero
Chris Lattner [Sat, 7 Apr 2007 01:03:46 +0000 (01:03 +0000)]
trunc to bool no longer compares against zero

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

17 years agocleanups for strlen optimizer
Chris Lattner [Sat, 7 Apr 2007 01:02:00 +0000 (01:02 +0000)]
cleanups for strlen optimizer

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

17 years agoIntroduce a new ReplaceCallWith method, which simplifies a lot of code.
Chris Lattner [Sat, 7 Apr 2007 00:42:32 +0000 (00:42 +0000)]
Introduce a new ReplaceCallWith method, which simplifies a lot of code.

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

17 years agofixes for strcpy optimizer
Chris Lattner [Sat, 7 Apr 2007 00:26:18 +0000 (00:26 +0000)]
fixes for strcpy optimizer

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

17 years agoFix bugs in strncmp.
Chris Lattner [Sat, 7 Apr 2007 00:06:57 +0000 (00:06 +0000)]
Fix bugs in strncmp.

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

17 years agofix 3 miscompilations and several compielr crashes in strcmp optimizer.
Chris Lattner [Sat, 7 Apr 2007 00:01:51 +0000 (00:01 +0000)]
fix 3 miscompilations and several compielr crashes in strcmp optimizer.

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

17 years agoFix several nasty bugs in the strchr optimizer, this fixes
Chris Lattner [Fri, 6 Apr 2007 23:38:55 +0000 (23:38 +0000)]
Fix several nasty bugs in the strchr optimizer, this fixes
SimplifyLibCalls/2007-04-06-strchr-miscompile.ll and PR1307

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

17 years agotestcase for PR1307
Chris Lattner [Fri, 6 Apr 2007 23:36:59 +0000 (23:36 +0000)]
testcase for PR1307

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

17 years agoclean up strcat optimizer, no functionality change.
Chris Lattner [Fri, 6 Apr 2007 22:59:33 +0000 (22:59 +0000)]
clean up strcat optimizer, no functionality change.

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

17 years agorename getConstantStringLength -> GetConstantStringInfo. Make it return
Chris Lattner [Fri, 6 Apr 2007 22:54:17 +0000 (22:54 +0000)]
rename getConstantStringLength -> GetConstantStringInfo.  Make it return
the start index of the array as well as the length.  No functionality change.

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

17 years agoTrack new header file.
Jeff Cohen [Fri, 6 Apr 2007 22:30:07 +0000 (22:30 +0000)]
Track new header file.

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

17 years agorearchitect the registration mechanism used by the command line option stuff.
Chris Lattner [Fri, 6 Apr 2007 21:06:55 +0000 (21:06 +0000)]
rearchitect the registration mechanism used by the command line option stuff.
This dramatically reduce the amount of memory allocated by the commandline stuff
at static init time, changing it to build local data structures when ParseCommandLineOptions
is called.  In a dummy empty program that links some llvm libraries, this reduces
the number of malloc'd bytes from 4864 to 3360 on entry to main.  Most of that
memory is now allocated by non-commandline related stuff.

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

17 years agoimplement Transforms/InstCombine/malloc2.ll and PR1313
Chris Lattner [Fri, 6 Apr 2007 18:57:34 +0000 (18:57 +0000)]
implement Transforms/InstCombine/malloc2.ll and PR1313

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

17 years agonew testcase, update old one.
Chris Lattner [Fri, 6 Apr 2007 18:56:54 +0000 (18:56 +0000)]
new testcase, update old one.

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

17 years agoSwitch some vectors to smallvectors. This reduces amount of malloc'd
Chris Lattner [Fri, 6 Apr 2007 18:36:18 +0000 (18:36 +0000)]
Switch some vectors to smallvectors.  This reduces amount of malloc'd
memory that occurs before main starts from 5104 to 4864 bytes with a dummy
example app.

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

17 years agoEliminate unneeded virtual methods
Chris Lattner [Fri, 6 Apr 2007 18:06:27 +0000 (18:06 +0000)]
Eliminate unneeded virtual methods

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

17 years agominor comment fix
Chris Lattner [Fri, 6 Apr 2007 17:47:14 +0000 (17:47 +0000)]
minor comment fix

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

17 years agoFor PR1209:
Reid Spencer [Fri, 6 Apr 2007 02:02:20 +0000 (02:02 +0000)]
For PR1209:
Implement Type class's ContainedTys without using a std::vector.

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

17 years agoXFAIL this test for now. It will be a while before I can implement this
Reid Spencer [Thu, 5 Apr 2007 22:57:45 +0000 (22:57 +0000)]
XFAIL this test for now. It will be a while before I can implement this
intrinsic properly in SDISel.

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

17 years agoeliminate a virtual method
Chris Lattner [Thu, 5 Apr 2007 22:21:39 +0000 (22:21 +0000)]
eliminate a virtual method

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

17 years agoremove the dead removeArgument method, rename Options to OptionsMap.
Chris Lattner [Thu, 5 Apr 2007 21:58:17 +0000 (21:58 +0000)]
remove the dead removeArgument method, rename Options to OptionsMap.

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

17 years agoFix Transforms/GlobalOpt/2007-04-05-Crash.ll
Chris Lattner [Thu, 5 Apr 2007 21:09:42 +0000 (21:09 +0000)]
Fix Transforms/GlobalOpt/2007-04-05-Crash.ll

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

17 years agonew testcase that crashes globalopt
Chris Lattner [Thu, 5 Apr 2007 21:09:29 +0000 (21:09 +0000)]
new testcase that  crashes globalopt

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

17 years agotestcase for padding before zero-length fields.
Dale Johannesen [Thu, 5 Apr 2007 19:05:43 +0000 (19:05 +0000)]
testcase for padding before zero-length fields.

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

17 years agoNew tests for Packed structs.
Devang Patel [Thu, 5 Apr 2007 17:14:21 +0000 (17:14 +0000)]
New tests for Packed structs.

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

17 years agoNew tests for Packed structs.
Devang Patel [Thu, 5 Apr 2007 17:07:48 +0000 (17:07 +0000)]
New tests for Packed structs.

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

17 years agorun a late dce pass to clean up extra cruft.
Chris Lattner [Thu, 5 Apr 2007 16:50:20 +0000 (16:50 +0000)]
run a late dce pass to clean up extra cruft.

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

17 years agoFix test
Anton Korobeynikov [Thu, 5 Apr 2007 16:43:09 +0000 (16:43 +0000)]
Fix test

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

17 years agoAdd a helper class (APSInt) which can represent an APInt along with sign
Chris Lattner [Thu, 5 Apr 2007 05:20:11 +0000 (05:20 +0000)]
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.

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

17 years agoUse a worklist-driven algorithm instead of a recursive one.
Chris Lattner [Thu, 5 Apr 2007 01:27:02 +0000 (01:27 +0000)]
Use a worklist-driven algorithm instead of a recursive one.

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

17 years agoChange the bit_part_select (non)implementation from "return 0" to abort.
Reid Spencer [Thu, 5 Apr 2007 01:20:18 +0000 (01:20 +0000)]
Change the bit_part_select (non)implementation from "return 0" to abort.

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

17 years agoImplement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.
Reid Spencer [Wed, 4 Apr 2007 23:48:25 +0000 (23:48 +0000)]
Implement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.

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

17 years agoIgnore some things generated by bugpoint.
Reid Spencer [Wed, 4 Apr 2007 22:47:38 +0000 (22:47 +0000)]
Ignore some things generated by bugpoint.

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

17 years agoFix release build.
Lauro Ramos Venancio [Wed, 4 Apr 2007 22:13:39 +0000 (22:13 +0000)]
Fix release build.

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

17 years agoFix some FreeBSD/amd64 regressions.
Jeff Cohen [Wed, 4 Apr 2007 22:07:44 +0000 (22:07 +0000)]
Fix some FreeBSD/amd64 regressions.

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

17 years agoSquelch a warning about mismatch between sign of constant and sign of return
Reid Spencer [Wed, 4 Apr 2007 22:07:24 +0000 (22:07 +0000)]
Squelch a warning about mismatch between sign of constant and sign of return
type.

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

17 years agoFix test
Anton Korobeynikov [Wed, 4 Apr 2007 21:28:36 +0000 (21:28 +0000)]
Fix test

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

17 years agoProperly emit range comparisons for switch cases, where neighbour cases
Anton Korobeynikov [Wed, 4 Apr 2007 21:14:49 +0000 (21:14 +0000)]
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

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

17 years agoAny add is wrong, regardless of type.
Jeff Cohen [Wed, 4 Apr 2007 20:40:44 +0000 (20:40 +0000)]
Any add is wrong, regardless of type.

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

17 years agoGet it right...
Jeff Cohen [Wed, 4 Apr 2007 20:35:31 +0000 (20:35 +0000)]
Get it right...

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

17 years agoTest for transformConstExprCastCall fix.
Dale Johannesen [Wed, 4 Apr 2007 19:18:16 +0000 (19:18 +0000)]
Test for transformConstExprCastCall fix.

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

17 years agoPrevent transformConstExprCastCall from generating conversions that assert
Dale Johannesen [Wed, 4 Apr 2007 19:16:42 +0000 (19:16 +0000)]
Prevent transformConstExprCastCall from generating conversions that assert
elsewhere.

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

17 years agoRemove the part_set intrinsic. It won't get implemented as an intrinsic.
Reid Spencer [Wed, 4 Apr 2007 19:15:59 +0000 (19:15 +0000)]
Remove the part_set intrinsic. It won't get implemented as an intrinsic.

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

17 years agostringmap memory managed with malloc now
Chris Lattner [Wed, 4 Apr 2007 17:24:28 +0000 (17:24 +0000)]
stringmap memory managed with malloc now

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

17 years agoFix 2007-04-04-BadFoldBitcastIntoMalloc.ll
Jeff Cohen [Wed, 4 Apr 2007 16:58:57 +0000 (16:58 +0000)]
Fix 2007-04-04-BadFoldBitcastIntoMalloc.ll

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

17 years agoAdd new test.
Jeff Cohen [Wed, 4 Apr 2007 16:11:23 +0000 (16:11 +0000)]
Add new test.

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

17 years agoBetter still.
Evan Cheng [Wed, 4 Apr 2007 08:49:40 +0000 (08:49 +0000)]
Better still.

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

17 years agoFix test case.
Evan Cheng [Wed, 4 Apr 2007 07:41:33 +0000 (07:41 +0000)]
Fix test case.

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

17 years agoThese got better.
Evan Cheng [Wed, 4 Apr 2007 07:41:15 +0000 (07:41 +0000)]
These got better.

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

17 years agoRe-materialize all loads from fixed stack slots.
Evan Cheng [Wed, 4 Apr 2007 07:40:01 +0000 (07:40 +0000)]
Re-materialize all loads from fixed stack slots.

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

17 years agoAdd isFixedObjectIndex. It returns true if the stack slot index is for a fixed stack...
Evan Cheng [Wed, 4 Apr 2007 07:38:25 +0000 (07:38 +0000)]
Add isFixedObjectIndex. It returns true if the stack slot index is for a fixed stack object.

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

17 years agoTrivially re-materializable instructions have spill weights that are half of what...
Evan Cheng [Wed, 4 Apr 2007 07:04:55 +0000 (07:04 +0000)]
Trivially re-materializable instructions have spill weights that are half of what it would be otherwise.

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

17 years agoRevert this until the Date::Parse module can be installed on the nightly
Reid Spencer [Wed, 4 Apr 2007 06:59:36 +0000 (06:59 +0000)]
Revert this until the Date::Parse module can be installed on the nightly
testers.

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

17 years agoFor PR1302:
Reid Spencer [Wed, 4 Apr 2007 06:44:18 +0000 (06:44 +0000)]
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

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

17 years agoFix comment.
Duncan Sands [Wed, 4 Apr 2007 06:42:45 +0000 (06:42 +0000)]
Fix comment.

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

17 years agoFor PR1302:
Reid Spencer [Wed, 4 Apr 2007 06:34:22 +0000 (06:34 +0000)]
For PR1302:
Rename LinkItems as NativeLinkItems since it is filled out by the Linker
library to contain only those items deemed to be native.

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

17 years agoFor PR1302:
Reid Spencer [Wed, 4 Apr 2007 06:33:17 +0000 (06:33 +0000)]
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.

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

17 years agoMake the LinkInFile and LinkInLibrary both return an indication of whether
Reid Spencer [Wed, 4 Apr 2007 06:32:01 +0000 (06:32 +0000)]
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).

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

17 years agoFor PR1302:
Reid Spencer [Wed, 4 Apr 2007 06:31:04 +0000 (06:31 +0000)]
For PR1302:
Adjust useage of sys::Path::FileType for new enumerator names.

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

17 years agoFor PR1302:
Reid Spencer [Wed, 4 Apr 2007 06:30:26 +0000 (06:30 +0000)]
For PR1302:
Implement recognition of COFF, ELF and Mach-O object/shared lib files.

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

17 years agoFor PR1302:
Reid Spencer [Wed, 4 Apr 2007 06:29:49 +0000 (06:29 +0000)]
For PR1302:
Make the FileType enumerators more readable and add COFF, ELF and Mach-O.

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

17 years agotrivial optimization
Chris Lattner [Wed, 4 Apr 2007 06:18:21 +0000 (06:18 +0000)]
trivial optimization

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

17 years agoAppease Chris' pedantic streak.
Reid Spencer [Wed, 4 Apr 2007 05:46:04 +0000 (05:46 +0000)]
Appease Chris' pedantic streak.

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

17 years agoFix links to intrinsic functions outside LangRef.html
Reid Spencer [Wed, 4 Apr 2007 04:14:31 +0000 (04:14 +0000)]
Fix links to intrinsic functions outside LangRef.html

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

17 years agoRemove intrinsics that we will not be implementing.
Reid Spencer [Wed, 4 Apr 2007 02:42:35 +0000 (02:42 +0000)]
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.

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

17 years agouse calloc instead of new/memset, it is more efficient
Chris Lattner [Wed, 4 Apr 2007 00:44:31 +0000 (00:44 +0000)]
use calloc instead of new/memset, it is more efficient

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

17 years agoInitialize the symbol table to zero explicitly. This ensures that the
Chris Lattner [Wed, 4 Apr 2007 00:30:49 +0000 (00:30 +0000)]
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.

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

17 years agoExtend StringMap to support being initialized as completely empty. When
Chris Lattner [Wed, 4 Apr 2007 00:29:37 +0000 (00:29 +0000)]
Extend StringMap to support being initialized as completely empty.  When
initialized this way, they do not do a malloc to allocate their buckets.

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

17 years agoNew asm test case.
Evan Cheng [Wed, 4 Apr 2007 00:15:17 +0000 (00:15 +0000)]
New asm test case.

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

17 years agoImplement inline asm modifier P.
Evan Cheng [Wed, 4 Apr 2007 00:13:29 +0000 (00:13 +0000)]
Implement inline asm modifier P.

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

17 years agoTypo.
Evan Cheng [Wed, 4 Apr 2007 00:06:07 +0000 (00:06 +0000)]
Typo.

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

17 years agoAdding more MMX instructions.
Bill Wendling [Tue, 3 Apr 2007 23:48:32 +0000 (23:48 +0000)]
Adding more MMX instructions.

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

17 years agomake a new missing features section
Chris Lattner [Tue, 3 Apr 2007 23:41:34 +0000 (23:41 +0000)]
make a new missing features section

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

17 years agoNew test case.
Evan Cheng [Tue, 3 Apr 2007 23:40:54 +0000 (23:40 +0000)]
New test case.

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

17 years agoRemove unused constant pool entries.
Evan Cheng [Tue, 3 Apr 2007 23:39:48 +0000 (23:39 +0000)]
Remove unused constant pool entries.

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

17 years agoUpdated
Bill Wendling [Tue, 3 Apr 2007 23:37:20 +0000 (23:37 +0000)]
Updated

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

17 years agoFix a bug I introduced with my patch yesterday which broke Qt (I converted
Chris Lattner [Tue, 3 Apr 2007 23:29:39 +0000 (23:29 +0000)]
Fix a bug I introduced with my patch yesterday which broke Qt (I converted
some constant exprs to apints).

Thanks to Anton for tracking down a small testcase that triggered this!

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

17 years agogreatly reduce hte default size of stringmap.
Chris Lattner [Tue, 3 Apr 2007 22:15:38 +0000 (22:15 +0000)]
greatly reduce hte default size of stringmap.

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

17 years agomove these to FrontendAda
Chris Lattner [Tue, 3 Apr 2007 21:48:02 +0000 (21:48 +0000)]
move these to FrontendAda

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

17 years agotestcase for recent bugfix
Chris Lattner [Tue, 3 Apr 2007 21:47:36 +0000 (21:47 +0000)]
testcase for recent bugfix

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

17 years agomove ada tests
Chris Lattner [Tue, 3 Apr 2007 21:46:22 +0000 (21:46 +0000)]
move ada tests

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

17 years agoNew test case.
Evan Cheng [Tue, 3 Apr 2007 21:38:03 +0000 (21:38 +0000)]
New test case.

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

17 years agoFixed a bug that causes codegen of noop like add r0, r0, #0.
Evan Cheng [Tue, 3 Apr 2007 21:31:21 +0000 (21:31 +0000)]
Fixed a bug that causes codegen of noop like add r0, r0, #0.

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

17 years agoreinstate the previous two patches, with a bugfix :)
Chris Lattner [Tue, 3 Apr 2007 17:43:25 +0000 (17:43 +0000)]
reinstate the previous two patches, with a bugfix :)

ldecod now passes.

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