oota-llvm.git
18 years agoTemporarily xfail this test, evan will look at it in a week or so.
Chris Lattner [Fri, 18 Aug 2006 00:18:38 +0000 (00:18 +0000)]
Temporarily xfail this test, evan will look at it in a week or so.

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

18 years agoChanging the format dejagnu tests are submitted. We used to only submit multisource...
Patrick Jenkins [Thu, 17 Aug 2006 22:11:03 +0000 (22:11 +0000)]
Changing the format dejagnu tests are submitted. We used to only submit multisource information for pass fail. Now we submit all pass/fail test information. This should fix the issue where some results were not being reported.

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

18 years agoConstify some methods. Patch provided by Anton Vayvod, thanks!
Chris Lattner [Thu, 17 Aug 2006 22:00:08 +0000 (22:00 +0000)]
Constify some methods.  Patch provided by Anton Vayvod, thanks!

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

18 years agofit in 80 cols
Chris Lattner [Thu, 17 Aug 2006 18:51:28 +0000 (18:51 +0000)]
fit in 80 cols

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

18 years agominor cleanups
Chris Lattner [Thu, 17 Aug 2006 18:49:52 +0000 (18:49 +0000)]
minor cleanups

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

18 years agoRevert this patch, the front-end has been fixed to make it unneccesary.
Chris Lattner [Thu, 17 Aug 2006 18:43:24 +0000 (18:43 +0000)]
Revert this patch, the front-end has been fixed to make it unneccesary.

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

18 years ago'g' is handled by the front-end.
Chris Lattner [Thu, 17 Aug 2006 18:12:28 +0000 (18:12 +0000)]
'g' is handled by the front-end.

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

18 years agoFix handling of 'g'. Closes 883
Andrew Lenharth [Thu, 17 Aug 2006 17:50:12 +0000 (17:50 +0000)]
Fix handling of 'g'.  Closes 883

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

18 years agoadd a "load effective address"
Rafael Espindola [Thu, 17 Aug 2006 17:09:40 +0000 (17:09 +0000)]
add a "load effective address"

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

18 years agoAdd the 'c' constraint as needed by the linux kernel
Andrew Lenharth [Thu, 17 Aug 2006 16:07:50 +0000 (16:07 +0000)]
Add the 'c' constraint as needed by the linux kernel

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

18 years agoAdd support for S and D constraints, as needed to compile the linux kernel.
Andrew Lenharth [Thu, 17 Aug 2006 15:35:43 +0000 (15:35 +0000)]
Add support for S and D constraints, as needed to compile the linux kernel.

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

18 years agoFix validation problem
Chris Lattner [Thu, 17 Aug 2006 03:26:50 +0000 (03:26 +0000)]
Fix validation problem

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

18 years agoremove IRC transcript. Anything still misunderstood after the faq is read
Chris Lattner [Thu, 17 Aug 2006 03:25:07 +0000 (03:25 +0000)]
remove IRC transcript.  Anything still misunderstood after the faq is read
can be added to the faq.

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

18 years agoswitch the SUnit pred/succ sets from being std::sets to being smallvectors.
Chris Lattner [Thu, 17 Aug 2006 00:09:56 +0000 (00:09 +0000)]
switch the SUnit pred/succ sets from being std::sets to being smallvectors.
This reduces selectiondag time on kc++ from 5.43s to 4.98s (9%).  More
significantly, this speeds up the default ppc scheduler from ~1571ms to 1063ms,
a 33% speedup.

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

18 years agoAnother cyclic dag test case.
Evan Cheng [Thu, 17 Aug 2006 00:00:46 +0000 (00:00 +0000)]
Another cyclic dag test case.

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

18 years agoDoh. Incorrectly inverted condition. Also add a isOnlyUse check to match tablegen.
Evan Cheng [Wed, 16 Aug 2006 23:59:00 +0000 (23:59 +0000)]
Doh. Incorrectly inverted condition. Also add a isOnlyUse check to match tablegen.

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

18 years agominor changes.
Chris Lattner [Wed, 16 Aug 2006 22:57:46 +0000 (22:57 +0000)]
minor changes.

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

18 years agoadd an accessor
Chris Lattner [Wed, 16 Aug 2006 22:57:08 +0000 (22:57 +0000)]
add an accessor

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

18 years agoMy last commit added some experimental features I have been working on. This commit...
Patrick Jenkins [Wed, 16 Aug 2006 22:32:20 +0000 (22:32 +0000)]
My last commit added some experimental features I have been working on. This commit rolls those back.

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

18 years agoChanged the call to countloc.sh so that the correct topdirectory of the llvm build...
Patrick Jenkins [Wed, 16 Aug 2006 22:18:41 +0000 (22:18 +0000)]
Changed the call to countloc.sh so that the correct topdirectory of the llvm build is set.

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

18 years agoConvert vector to smallvector: 4% speedup.
Chris Lattner [Wed, 16 Aug 2006 22:12:48 +0000 (22:12 +0000)]
Convert vector to smallvector: 4% speedup.

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

18 years agosilence a warning.
Chris Lattner [Wed, 16 Aug 2006 22:09:24 +0000 (22:09 +0000)]
silence a warning.

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

18 years agoAdded my home web page.
Bill Wendling [Wed, 16 Aug 2006 21:18:56 +0000 (21:18 +0000)]
Added my home web page.

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

18 years agoChange the use_list to be a smallvector instead of a vector. This reduces
Chris Lattner [Wed, 16 Aug 2006 21:01:10 +0000 (21:01 +0000)]
Change the use_list to be a smallvector instead of a vector.  This reduces
isel time from 6.79s to 5.53s (22%) on kc++ with a release build on ppc.
Go smallvector! :)

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

18 years agoUse the appropriate typedef
Chris Lattner [Wed, 16 Aug 2006 20:59:32 +0000 (20:59 +0000)]
Use the appropriate typedef

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

18 years agoPatches to correct several bugs in llvmc.
Reid Spencer [Wed, 16 Aug 2006 20:31:44 +0000 (20:31 +0000)]
Patches to correct several bugs in llvmc.
Patches contributed by Bram Adams. Thanks Bram.

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

18 years agoDeclare the callee saved regs
Rafael Espindola [Wed, 16 Aug 2006 14:43:33 +0000 (14:43 +0000)]
Declare the callee saved regs
Remove the hard coded store and load of the link register
Implement ARMFrameInfo

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

18 years agoSelectNodeTo() may return a SDOperand that is different from the input.
Evan Cheng [Wed, 16 Aug 2006 07:30:09 +0000 (07:30 +0000)]
SelectNodeTo() may return a SDOperand that is different from the input.

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

18 years agoRET_FLAG has an optional input flag, but it does not produce a flag result.
Evan Cheng [Wed, 16 Aug 2006 07:28:58 +0000 (07:28 +0000)]
RET_FLAG has an optional input flag, but it does not produce a flag result.

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

18 years agoFix a thinko noticed by Chandler Carruth.
Reid Spencer [Wed, 16 Aug 2006 05:53:32 +0000 (05:53 +0000)]
Fix a thinko noticed by Chandler Carruth.

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

18 years agoadd a way to have multiple modules in a JIT :)
Chris Lattner [Wed, 16 Aug 2006 02:53:27 +0000 (02:53 +0000)]
add a way to have multiple modules in a JIT :)

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

18 years agoadd a note
Chris Lattner [Wed, 16 Aug 2006 02:47:44 +0000 (02:47 +0000)]
add a note

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

18 years agoinitial changes to support JIT'ing from multiple module providers, implicitly
Chris Lattner [Wed, 16 Aug 2006 01:24:12 +0000 (01:24 +0000)]
initial changes to support JIT'ing from multiple module providers, implicitly
linking the program on the fly.

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

18 years agoBugfixes for smallvector when the element size is small and N is small.
Chris Lattner [Wed, 16 Aug 2006 01:23:31 +0000 (01:23 +0000)]
Bugfixes for smallvector when the element size is small and N is small.

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

18 years agoAdd a section on how to build an RPM package as an optional release
Reid Spencer [Wed, 16 Aug 2006 00:54:50 +0000 (00:54 +0000)]
Add a section on how to build an RPM package as an optional release
activity.

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

18 years agoAdd llvm.spec to the list of files to be configured.
Reid Spencer [Wed, 16 Aug 2006 00:45:38 +0000 (00:45 +0000)]
Add llvm.spec to the list of files to be configured.
Remove the search for etags. Nothing in LLVM uses it any more.

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

18 years agoAdd .PHONY targets for building source and binary RPM packages. You can
Reid Spencer [Wed, 16 Aug 2006 00:43:50 +0000 (00:43 +0000)]
Add .PHONY targets for building source and binary RPM packages. You can
now just "make rpm" or "make srpm" and it will build them.

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

18 years agoTransform the LLVM RPM spec file to be a configured file. This allows us
Reid Spencer [Wed, 16 Aug 2006 00:42:52 +0000 (00:42 +0000)]
Transform the LLVM RPM spec file to be a configured file. This allows us
to automatically pick up the configured version number and other details.
Also, update the contents of this script to allow building both a source
and binary version of the RPM package.

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

18 years agoFix PowerPC/2006-08-15-SelectionCrash.ll and simplify selection code.
Chris Lattner [Tue, 15 Aug 2006 23:48:22 +0000 (23:48 +0000)]
Fix PowerPC/2006-08-15-SelectionCrash.ll and simplify selection code.

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

18 years agoNew testcase
Chris Lattner [Tue, 15 Aug 2006 23:45:28 +0000 (23:45 +0000)]
New testcase

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

18 years agoThe generated runloop shouldn't require Select to update 'Result'. In fact
Chris Lattner [Tue, 15 Aug 2006 23:42:26 +0000 (23:42 +0000)]
The generated runloop shouldn't require Select to update 'Result'.  In fact
we'd like to remove result entirely.

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

18 years agoallow Select to return the node being selected if RAU isn't needed.
Chris Lattner [Tue, 15 Aug 2006 23:27:50 +0000 (23:27 +0000)]
allow Select to return the node being selected if RAU isn't needed.

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

18 years agoStart using SDVTList more consistently
Chris Lattner [Tue, 15 Aug 2006 19:11:05 +0000 (19:11 +0000)]
Start using SDVTList more consistently

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

18 years agoadd a new SDVTList type and new SelectionDAG::getVTList methods to streamline
Chris Lattner [Tue, 15 Aug 2006 17:46:01 +0000 (17:46 +0000)]
add a new SDVTList type and new SelectionDAG::getVTList methods to streamline
the creation of canonical VTLists.

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

18 years agoFixed the awkward description of the -find-bugs option for bugpoint.
Patrick Jenkins [Tue, 15 Aug 2006 17:39:40 +0000 (17:39 +0000)]
Fixed the awkward description of the -find-bugs option for bugpoint.

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

18 years agoFixed the awkward description of -find-bugs in the "Advice for using bugpoint" section.
Patrick Jenkins [Tue, 15 Aug 2006 17:38:36 +0000 (17:38 +0000)]
Fixed the awkward description of -find-bugs in the "Advice for using bugpoint" section.

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

18 years agoAdded option description for -find-bugs.
Patrick Jenkins [Tue, 15 Aug 2006 17:31:58 +0000 (17:31 +0000)]
Added option description for -find-bugs.

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

18 years agoThis commit mentions -find-bugs under the advice for using bugpoints section of the...
Patrick Jenkins [Tue, 15 Aug 2006 17:03:17 +0000 (17:03 +0000)]
This commit mentions -find-bugs under the advice for using bugpoints section of the bugpoint design and usage document.

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

18 years agoAdding FindBugs.cpp so the -find-bugs option will work.
Patrick Jenkins [Tue, 15 Aug 2006 16:41:52 +0000 (16:41 +0000)]
Adding FindBugs.cpp so the -find-bugs option will work.

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

18 years agoThis commit adds a new feature called find-bugs. The find-bugs option can be invoked...
Patrick Jenkins [Tue, 15 Aug 2006 16:40:49 +0000 (16:40 +0000)]
This commit adds a new feature called find-bugs. The find-bugs option can be invoked on a .bc file from the command like with -find-bugs and a list of passes you wish to test. This procedure takes the set of optimization passes the user specifies, randomizes the passes, runs the passes on the specified .bc file, compiles the program, and finally runs the program checking its output vs the .bc file with no optimizations. This process repeats until either the user kills bugpoint or an error occurs in the optimizations, program complitation, or the running of the program. If an error occurs, bugpoint attempts to diagnose the error by eliminating passes that are not at fault and code that is not needed.

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

18 years agoHaste-o discovered after.
Jim Laskey [Tue, 15 Aug 2006 12:15:08 +0000 (12:15 +0000)]
Haste-o discovered after.

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

18 years agoHypos pointed out by Jakob Praher.
Jim Laskey [Tue, 15 Aug 2006 12:11:42 +0000 (12:11 +0000)]
Hypos pointed out by Jakob Praher.

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

18 years agoTypo.
Jim Laskey [Tue, 15 Aug 2006 08:14:19 +0000 (08:14 +0000)]
Typo.

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

18 years agoOkay, make the prose match the example too.
Reid Spencer [Tue, 15 Aug 2006 04:00:29 +0000 (04:00 +0000)]
Okay, make the prose match the example too.

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

18 years agoSome more correction to the examples, thanks to Chris Lattner.
Reid Spencer [Tue, 15 Aug 2006 03:57:05 +0000 (03:57 +0000)]
Some more correction to the examples, thanks to Chris Lattner.

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

18 years agoSimplify this a little bit.
Reid Spencer [Tue, 15 Aug 2006 03:50:10 +0000 (03:50 +0000)]
Simplify this a little bit.

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

18 years agoThis script takes arguments so remove the check for number of arguments,
Reid Spencer [Tue, 15 Aug 2006 03:48:22 +0000 (03:48 +0000)]
This script takes arguments so remove the check for number of arguments,
just check the first arg to see if its -topdir.

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

18 years agoFix an example.
Reid Spencer [Tue, 15 Aug 2006 03:46:38 +0000 (03:46 +0000)]
Fix an example.

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

18 years agoClarify the first question.
Reid Spencer [Tue, 15 Aug 2006 03:43:31 +0000 (03:43 +0000)]
Clarify the first question.

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

18 years agoRearrange things for clarity, don't talk about "dereferencing" when we
Reid Spencer [Tue, 15 Aug 2006 03:32:10 +0000 (03:32 +0000)]
Rearrange things for clarity, don't talk about "dereferencing" when we
shouldn't, and add a better example for one of the questions. Thanks to
Chris Lattner for these suggestions.

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

18 years agoAdd a link to the GEP faq.
Chris Lattner [Tue, 15 Aug 2006 00:45:58 +0000 (00:45 +0000)]
Add a link to the GEP faq.

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

18 years agoAdd a link in a prominant location.
Chris Lattner [Tue, 15 Aug 2006 00:43:35 +0000 (00:43 +0000)]
Add a link in a prominant location.

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

18 years agoMake getNodeValueTypes methods public.
Chris Lattner [Mon, 14 Aug 2006 23:54:24 +0000 (23:54 +0000)]
Make getNodeValueTypes methods public.

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

18 years agoeliminate use of getNode that takes vector of valuetypes.
Chris Lattner [Mon, 14 Aug 2006 23:53:35 +0000 (23:53 +0000)]
eliminate use of getNode that takes vector of valuetypes.

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

18 years agountabify
Devang Patel [Mon, 14 Aug 2006 23:37:18 +0000 (23:37 +0000)]
untabify

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

18 years agoAdd a new getNode() method that takes a pointer to an already-intern'd list
Chris Lattner [Mon, 14 Aug 2006 23:31:51 +0000 (23:31 +0000)]
Add a new getNode() method that takes a pointer to an already-intern'd list
of value-type nodes.  This avoids having to do mallocs for std::vectors of
valuetypes when a node returns more than one type.

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

18 years agoAvoid extra string copy.
Devang Patel [Mon, 14 Aug 2006 23:27:36 +0000 (23:27 +0000)]
Avoid extra string copy.

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

18 years agoFor PR876:
Reid Spencer [Mon, 14 Aug 2006 23:19:57 +0000 (23:19 +0000)]
For PR876:
Fix problem setting the USE_{program} variable. It should be set to a
Makefile variable definition line, not just "1". Problem noted by
Kenneth Hoste.

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

18 years agoFor PR876:
Reid Spencer [Mon, 14 Aug 2006 23:15:03 +0000 (23:15 +0000)]
For PR876:
Fix problem noticed by Kenneth Hoste. The wrong name for a variable was
being set and subsequently uses of the correct name were empty.

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

18 years agoUse mangler, instead of addUnderscore(), to get mangled name.
Devang Patel [Mon, 14 Aug 2006 22:36:16 +0000 (22:36 +0000)]
Use mangler, instead of addUnderscore(), to get mangled name.
Now, LLVMSymbol keeps symbol original name and mangled name.

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

18 years agoProvide indentation of the generated program.
Reid Spencer [Mon, 14 Aug 2006 22:35:15 +0000 (22:35 +0000)]
Provide indentation of the generated program.

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

18 years agoremove SelectionDAG::InsertISelMapEntry, it is dead
Chris Lattner [Mon, 14 Aug 2006 22:24:39 +0000 (22:24 +0000)]
remove SelectionDAG::InsertISelMapEntry, it is dead

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

18 years agoAdd code to resize the CSEMap hash table. This doesn't speedup codegen of
Chris Lattner [Mon, 14 Aug 2006 22:19:25 +0000 (22:19 +0000)]
Add code to resize the CSEMap hash table.  This doesn't speedup codegen of
kimwitu, but seems like a good idea from a "avoid performance cliffs" standpoint :)

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

18 years agoavoid a warning
Chris Lattner [Mon, 14 Aug 2006 21:47:50 +0000 (21:47 +0000)]
avoid a warning

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

18 years agoHandle single-entry PHI nodes correctly. This fixes PR877 and
Chris Lattner [Mon, 14 Aug 2006 21:38:05 +0000 (21:38 +0000)]
Handle single-entry PHI nodes correctly.  This fixes PR877 and
Transforms/CondProp/2006-08-14-SingleEntryPhiCrash.ll

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

18 years agonew testcase from PR877
Chris Lattner [Mon, 14 Aug 2006 21:37:32 +0000 (21:37 +0000)]
new testcase from PR877

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

18 years agoFix more validation issues
Chris Lattner [Mon, 14 Aug 2006 20:51:35 +0000 (20:51 +0000)]
Fix more validation issues

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

18 years agoUpdate the example to work with llvm-gcc4. Fix validation errors.
Chris Lattner [Mon, 14 Aug 2006 20:45:25 +0000 (20:45 +0000)]
Update the example to work with llvm-gcc4.  Fix validation errors.

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

18 years agoAdd the actual constant to the hash for ConstantPool nodes. Thanks to
Chris Lattner [Mon, 14 Aug 2006 20:12:44 +0000 (20:12 +0000)]
Add the actual constant to the hash for ConstantPool nodes.  Thanks to
Rafael Espindola for pointing this out.

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

18 years agotypo
Chris Lattner [Mon, 14 Aug 2006 20:07:50 +0000 (20:07 +0000)]
typo

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

18 years agoFix a typo.
Reid Spencer [Mon, 14 Aug 2006 19:51:02 +0000 (19:51 +0000)]
Fix a typo.

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

18 years agoFix several grammaros and a few HTML usage items.
Reid Spencer [Mon, 14 Aug 2006 19:19:55 +0000 (19:19 +0000)]
Fix several grammaros and a few HTML usage items.

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

18 years agoselect code like
Rafael Espindola [Mon, 14 Aug 2006 19:01:24 +0000 (19:01 +0000)]
select code like
ldr rx, [ry, #offset]

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

18 years agoMake all tools that use llvmdo have a -topdir option that allows the top
Reid Spencer [Mon, 14 Aug 2006 18:49:05 +0000 (18:49 +0000)]
Make all tools that use llvmdo have a -topdir option that allows the top
source dir for LLVM to be specified explicitly. This removes the dependency
on the llvm-config script. If the option is not given, then the scripts use
llvm-config which should be both built and in the PATH. This arrangement
provides a useful default for most developers but also allows the nightly
tester to execute countloc.sh before llvm-config is built and without
altering the PATH.

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

18 years agoUse < and >
Devang Patel [Mon, 14 Aug 2006 18:49:03 +0000 (18:49 +0000)]
Use < and >

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

18 years agoFix verification failures.
Devang Patel [Mon, 14 Aug 2006 18:39:35 +0000 (18:39 +0000)]
Fix verification failures.

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

18 years agoAdd lto doc link.
Devang Patel [Mon, 14 Aug 2006 18:21:53 +0000 (18:21 +0000)]
Add lto doc link.

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

18 years agoAdd lto doc.
Devang Patel [Mon, 14 Aug 2006 18:03:40 +0000 (18:03 +0000)]
Add lto doc.

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

18 years agoAdded some comments to clarify code around sub TestDirectory
Patrick Jenkins [Mon, 14 Aug 2006 16:07:14 +0000 (16:07 +0000)]
Added some comments to clarify code around sub TestDirectory

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

18 years agoAdd llvm2cpp.
Reid Spencer [Sun, 13 Aug 2006 19:04:57 +0000 (19:04 +0000)]
Add llvm2cpp.

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

18 years ago1. fix bug by ensuring we start at the llvm source root.
Reid Spencer [Sun, 13 Aug 2006 19:03:06 +0000 (19:03 +0000)]
1. fix bug by ensuring we start at the llvm source root.
2. make use of the -code-only option on llvmdo
3. Add some debug print statements to find #1

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

18 years agoCount the documentation. Otherwise we take a 30,000 hit in the LOC on the
Reid Spencer [Sun, 13 Aug 2006 18:59:40 +0000 (18:59 +0000)]
Count the documentation. Otherwise we take a 30,000 hit in the LOC on the
nightly test graph. And, documentation is important.

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

18 years agoUse the new -code-only option to llvmdo so that we only count things that
Reid Spencer [Sun, 13 Aug 2006 18:29:21 +0000 (18:29 +0000)]
Use the new -code-only option to llvmdo so that we only count things that
are considered to be code. This will give a drop in the LOC count on the
nightly testers, but it is more accurate than previous estimates.

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

18 years agoAdd a -code-only option which restricts llvmdo to visiting just those
Reid Spencer [Sun, 13 Aug 2006 18:28:27 +0000 (18:28 +0000)]
Add a -code-only option which restricts llvmdo to visiting just those
files that are considered to be code. Documentation is excluded.

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

18 years agoChanges for LLVM coding standard compliance:
Reid Spencer [Sun, 13 Aug 2006 09:53:02 +0000 (09:53 +0000)]
Changes for LLVM coding standard compliance:
  1. Remove tabs
  2. Wrap to 80 columns
  3. Put spaces between "if" or "elsif" and expression
  4. Put { on same line as if statement.
  5. Make indentation be 2 spaces.
Functionality change:
  Run utils/countloc.sh after the build is done. This is necessary because
  that script now uses llvm-config to find the top src directory.

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

18 years agoEmit .set directives for jump table entries when possible, which reduces
Nate Begeman [Sat, 12 Aug 2006 21:29:52 +0000 (21:29 +0000)]
Emit .set directives for jump table entries when possible, which reduces
the number of relocations in object files, shrinkifying them.

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

18 years agoFix a bug in a recent refactoring that broke a bunch of stuff.
Chris Lattner [Sat, 12 Aug 2006 07:20:05 +0000 (07:20 +0000)]
Fix a bug in a recent refactoring that broke a bunch of stuff.

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

18 years agoFix an obvious bug, noticed by inspection. No current targets trigger this.
Chris Lattner [Sat, 12 Aug 2006 05:41:39 +0000 (05:41 +0000)]
Fix an obvious bug, noticed by inspection.  No current targets trigger this.

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

18 years agoDon't attempt to split subloops out of a loop with a huge number of backedges.
Chris Lattner [Sat, 12 Aug 2006 05:25:00 +0000 (05:25 +0000)]
Don't attempt to split subloops out of a loop with a huge number of backedges.
Not only will this take huge amounts of compile time, the resultant loop nests
won't be useful for optimization.  This reduces loopsimplify time on
Transforms/LoopSimplify/2006-08-11-LoopSimplifyLongTime.ll from ~32s to ~0.4s
with a debug build of llvm on a 2.7Ghz G5.

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

18 years agoNew testcase, this used to take hours to loopsimplify.
Chris Lattner [Sat, 12 Aug 2006 05:23:27 +0000 (05:23 +0000)]
New testcase, this used to take hours to loopsimplify.

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