oota-llvm.git
17 years agoFor PR1067:
Reid Spencer [Sun, 4 Feb 2007 00:17:35 +0000 (00:17 +0000)]
For PR1067:
Update library documentation after removal of libLLVMTransforms.a that
resulted from removal of the LevelRaise pass.

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

17 years agoSwitch SelectionDAG::ReplaceAllUsesOfValueWith to use a SmallSetVector for
Chris Lattner [Sun, 4 Feb 2007 00:14:31 +0000 (00:14 +0000)]
Switch SelectionDAG::ReplaceAllUsesOfValueWith to use a SmallSetVector for
the users set (most nodes have 1 or 2 users).  This speeds up the isel pass
3.2% on kimwitu.

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

17 years agoVarious bugfixes
Chris Lattner [Sun, 4 Feb 2007 00:12:12 +0000 (00:12 +0000)]
Various bugfixes

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

17 years agodescribe SmallSetVector
Chris Lattner [Sun, 4 Feb 2007 00:00:26 +0000 (00:00 +0000)]
describe SmallSetVector

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

17 years agoConvert SetVector to be a true adapter class and add SmallSetVector.
Chris Lattner [Sat, 3 Feb 2007 23:56:03 +0000 (23:56 +0000)]
Convert SetVector to be a true adapter class and add SmallSetVector.

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

17 years agoremove some dead code
Chris Lattner [Sat, 3 Feb 2007 23:28:07 +0000 (23:28 +0000)]
remove some dead code

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

17 years agoFor PR1072:
Reid Spencer [Sat, 3 Feb 2007 23:15:56 +0000 (23:15 +0000)]
For PR1072:
Removing -raise has neglible positive or negative side effects so we are
opting to remove it. See the PR for comparison details.

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

17 years agoadd an instcombine pass to clean up after heavy-lifting IP passes
Chris Lattner [Sat, 3 Feb 2007 23:06:03 +0000 (23:06 +0000)]
add an instcombine pass to clean up after heavy-lifting IP passes

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

17 years agonull -> pointer, nul -> character :)
Chris Lattner [Sat, 3 Feb 2007 22:04:27 +0000 (22:04 +0000)]
null -> pointer, nul -> character :)

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

17 years agoFix some spellos.
Reid Spencer [Sat, 3 Feb 2007 21:06:43 +0000 (21:06 +0000)]
Fix some spellos.

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

17 years agofix grammar
Chris Lattner [Sat, 3 Feb 2007 20:17:53 +0000 (20:17 +0000)]
fix grammar

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

17 years agoSerious cleanups. Make the TOC match the text for the class hierarchy,
Chris Lattner [Sat, 3 Feb 2007 20:02:25 +0000 (20:02 +0000)]
Serious cleanups.  Make the TOC match the text for the class hierarchy,
move the sections of the class-h around in the right order, make it actually
reflect the classes in LLVM today.

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

17 years agoAdd TOC
Chris Lattner [Sat, 3 Feb 2007 19:51:56 +0000 (19:51 +0000)]
Add TOC

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

17 years agodescribe map-like containers
Chris Lattner [Sat, 3 Feb 2007 19:49:31 +0000 (19:49 +0000)]
describe map-like containers

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

17 years ago8 buckets is way too small to start out with. This was only for testing.
Chris Lattner [Sat, 3 Feb 2007 19:30:48 +0000 (19:30 +0000)]
8 buckets is way too small to start out with.  This was only for testing.

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

17 years agoClean this up a bit: hide command unless verbose output requested, echo
Reid Spencer [Sat, 3 Feb 2007 16:09:12 +0000 (16:09 +0000)]
Clean this up a bit: hide command unless verbose output requested, echo
a useful comment line, add a clean target.

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

17 years agoAdd a test case.
Evan Cheng [Sat, 3 Feb 2007 09:14:10 +0000 (09:14 +0000)]
Add a test case.

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

17 years agoARM callseq_end should have a input flag operand so it would be scheduled right after...
Evan Cheng [Sat, 3 Feb 2007 09:11:58 +0000 (09:11 +0000)]
ARM callseq_end should have a input flag operand so it would be scheduled right after the call.

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

17 years agoFix comments.
Evan Cheng [Sat, 3 Feb 2007 08:53:01 +0000 (08:53 +0000)]
Fix comments.

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

17 years agoimprove grammar
Chris Lattner [Sat, 3 Feb 2007 08:20:15 +0000 (08:20 +0000)]
improve grammar

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

17 years agoimprove grammar
Chris Lattner [Sat, 3 Feb 2007 08:10:45 +0000 (08:10 +0000)]
improve grammar

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

17 years agoclose run-away tag
Chris Lattner [Sat, 3 Feb 2007 07:59:51 +0000 (07:59 +0000)]
close run-away tag

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

17 years agofill in the section on Set-like containers.
Chris Lattner [Sat, 3 Feb 2007 07:59:07 +0000 (07:59 +0000)]
fill in the section on Set-like containers.

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

17 years agofix validation issues
Chris Lattner [Sat, 3 Feb 2007 03:06:52 +0000 (03:06 +0000)]
fix validation issues

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

17 years agofix validation problems
Chris Lattner [Sat, 3 Feb 2007 03:05:57 +0000 (03:05 +0000)]
fix validation problems

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

17 years agoAdd some notes about choice of container.
Chris Lattner [Sat, 3 Feb 2007 03:04:03 +0000 (03:04 +0000)]
Add some notes about choice of container.

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

17 years agoremove a dead header
Chris Lattner [Sat, 3 Feb 2007 03:02:10 +0000 (03:02 +0000)]
remove a dead header

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

17 years agoMoved the GetTargetRelocation method from PPCMachOWriter to here. It uses
Bill Wendling [Sat, 3 Feb 2007 02:41:58 +0000 (02:41 +0000)]
Moved the GetTargetRelocation method from PPCMachOWriter to here. It uses
non-Mach-O-specific information.

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

17 years agoMoved the GetTargetRelocation method to the PPCMachOWriterInfo object. The
Bill Wendling [Sat, 3 Feb 2007 02:40:57 +0000 (02:40 +0000)]
Moved the GetTargetRelocation method to the PPCMachOWriterInfo object. The
PPCMachOWriter is now trivial.

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

17 years agoPut destructor out-of-line.
Bill Wendling [Sat, 3 Feb 2007 02:40:10 +0000 (02:40 +0000)]
Put destructor out-of-line.

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

17 years agoPass in non-Mach-O-specific parameters to the GetTargetRelocation method.
Bill Wendling [Sat, 3 Feb 2007 02:39:40 +0000 (02:39 +0000)]
Pass in non-Mach-O-specific parameters to the GetTargetRelocation method.

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

17 years agoAdded GetTargetRelocation method.
Bill Wendling [Sat, 3 Feb 2007 02:38:57 +0000 (02:38 +0000)]
Added GetTargetRelocation method.

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

17 years agoAdded some accessor methods.
Bill Wendling [Sat, 3 Feb 2007 02:38:15 +0000 (02:38 +0000)]
Added some accessor methods.

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

17 years agoMoved MachORelocation to its own header file. Have a call through the
Bill Wendling [Sat, 3 Feb 2007 02:37:51 +0000 (02:37 +0000)]
Moved MachORelocation to its own header file. Have a call through the
TargetMachOInfo object to the GetTargetRelocation method. Pass into it
non-Mach-O-specific parameters.

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

17 years agoNew file for the MachORelocation structure. It doesn't have to be tied to the
Bill Wendling [Sat, 3 Feb 2007 02:36:17 +0000 (02:36 +0000)]
New file for the MachORelocation structure. It doesn't have to be tied to the
MachOWriter.h file.

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

17 years ago- Branch max. displacement calculation bug.
Evan Cheng [Sat, 3 Feb 2007 02:08:34 +0000 (02:08 +0000)]
- Branch max. displacement calculation bug.
- Add debugging info.

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

17 years agoswitch the sched unit map over to use a DenseMap instead of std::map. This
Chris Lattner [Sat, 3 Feb 2007 01:34:13 +0000 (01:34 +0000)]
switch the sched unit map over to use a DenseMap instead of std::map.  This
speeds up isel as a whole time by 2.6%.

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

17 years agoSwitch ComputeTopDownOrdering over to using a densemap. This speeds up
Chris Lattner [Sat, 3 Feb 2007 01:12:36 +0000 (01:12 +0000)]
Switch ComputeTopDownOrdering over to using a densemap.  This speeds up
isel as a whole by 3.3%.

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

17 years ago__builtin_isunordered test case.
Evan Cheng [Sat, 3 Feb 2007 00:50:45 +0000 (00:50 +0000)]
__builtin_isunordered test case.

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

17 years agoFor PR1152:
Reid Spencer [Sat, 3 Feb 2007 00:44:47 +0000 (00:44 +0000)]
For PR1152:
Update documentation to reflect that this isn't a full-blown executable
any more.

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

17 years agoPasto
Evan Cheng [Sat, 3 Feb 2007 00:43:46 +0000 (00:43 +0000)]
Pasto

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

17 years agoAnd even more correctly.
Reid Spencer [Sat, 3 Feb 2007 00:33:26 +0000 (00:33 +0000)]
And even more correctly.

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

17 years agoFormat the examples correctly.
Reid Spencer [Sat, 3 Feb 2007 00:32:23 +0000 (00:32 +0000)]
Format the examples correctly.

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

17 years agoFor PR1152:
Reid Spencer [Sat, 3 Feb 2007 00:21:56 +0000 (00:21 +0000)]
For PR1152:
Update documentation to reflect addition of gccas functionality into opt.

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

17 years agoImproves alloca test. Verifies SP restoration.
Lauro Ramos Venancio [Sat, 3 Feb 2007 00:16:21 +0000 (00:16 +0000)]
Improves alloca test. Verifies SP restoration.

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

17 years agoSwitch inliner over to use DenseMap instead of std::map for ValueMap. This
Chris Lattner [Sat, 3 Feb 2007 00:08:31 +0000 (00:08 +0000)]
Switch inliner over to use DenseMap instead of std::map for ValueMap.  This
speeds up the inliner 16%.

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

17 years agobugfix: SP isn't resetted when function has FP and there is no spills.
Lauro Ramos Venancio [Fri, 2 Feb 2007 23:08:40 +0000 (23:08 +0000)]
bugfix: SP isn't resetted when function has FP and there is no spills.

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

17 years agoSwitch this back to using an std::map. DenseMap entries are getting invalidated
Chris Lattner [Fri, 2 Feb 2007 22:36:16 +0000 (22:36 +0000)]
Switch this back to using an std::map.  DenseMap entries are getting invalidated

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

17 years agoTwo improvements:
Reid Spencer [Fri, 2 Feb 2007 21:49:27 +0000 (21:49 +0000)]
Two improvements:
1. Allow -- as well as - options (Bill Wendling)
2. Pass unrecognized options to opt and let it handle the errors, if any
   (Chris Lattner).

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

17 years agosilence annoying warning in release-asserts build
Chris Lattner [Fri, 2 Feb 2007 21:19:18 +0000 (21:19 +0000)]
silence annoying warning in release-asserts build

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

17 years agoRemove more malloc thrashing, this speeds up IPSCCP on kimwitu another 6.7%.
Chris Lattner [Fri, 2 Feb 2007 21:15:06 +0000 (21:15 +0000)]
Remove more malloc thrashing, this speeds up IPSCCP on kimwitu another 6.7%.

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

17 years agoAnother thumb large stack offset codegen bug.
Evan Cheng [Fri, 2 Feb 2007 21:08:39 +0000 (21:08 +0000)]
Another thumb large stack offset codegen bug.

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

17 years agoConvert an std::set to SmallSet, this speeds up IPSCCP 17% on kimwitu.
Chris Lattner [Fri, 2 Feb 2007 20:57:39 +0000 (20:57 +0000)]
Convert an std::set to SmallSet, this speeds up IPSCCP 17% on kimwitu.

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

17 years agoeliminate a malloc/free for (almost) every GEP processed. This speeds up
Chris Lattner [Fri, 2 Feb 2007 20:51:48 +0000 (20:51 +0000)]
eliminate a malloc/free for (almost) every GEP processed.  This speeds up
IPSCCP 3.3% on kimwitu.

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

17 years agoswitch hash_map's over to DenseMap in SCCP. This speeds up SCCP by 30% in
Chris Lattner [Fri, 2 Feb 2007 20:38:30 +0000 (20:38 +0000)]
switch hash_map's over to DenseMap in SCCP.  This speeds up SCCP by 30% in
a release-assert build on kimwitu++.

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

17 years agoadd find/erase, add const iterators, fix bugs in iterators.
Chris Lattner [Fri, 2 Feb 2007 20:34:32 +0000 (20:34 +0000)]
add find/erase, add const iterators, fix bugs in iterators.

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

17 years agoadd iterators
Chris Lattner [Fri, 2 Feb 2007 19:27:13 +0000 (19:27 +0000)]
add iterators

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

17 years agoUse MBB.empty() instead of MBB.size() for speed.
Evan Cheng [Fri, 2 Feb 2007 19:09:19 +0000 (19:09 +0000)]
Use MBB.empty() instead of MBB.size() for speed.

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

17 years agoWatch out for empty BB.
Evan Cheng [Fri, 2 Feb 2007 18:49:02 +0000 (18:49 +0000)]
Watch out for empty BB.

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

17 years agoFor PR1152:
Reid Spencer [Fri, 2 Feb 2007 15:50:58 +0000 (15:50 +0000)]
For PR1152:
Step 2: Make plug compatible shell script to replace gccas binary.

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

17 years agoFor PR1152:
Reid Spencer [Fri, 2 Feb 2007 14:46:29 +0000 (14:46 +0000)]
For PR1152:
Step 1: Copy gccas functionality to opt. This endows opt with a new
-std-compile-opts option to get the set of optimization passes that
gccas used. It also adds -disable-inlining and -disable-opt which
both apply only if -std-compile-opts is given. The -strip-debug option
was also removed. It just makes sure that "-strip" gets done early and
is mostly there for compatibility with gccas. Finally, a new
-verify-each option will cause the verify pass to be run after each pass.

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

17 years agoRemove dead code and fix indentation per Chris' review comments.
Reid Spencer [Fri, 2 Feb 2007 14:41:37 +0000 (14:41 +0000)]
Remove dead code and fix indentation per Chris' review comments.

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

17 years agoUse short form of BinaryOperator create function.
Reid Spencer [Fri, 2 Feb 2007 14:09:34 +0000 (14:09 +0000)]
Use short form of BinaryOperator create function.

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

17 years agoUse short form of binary operator create functions.
Reid Spencer [Fri, 2 Feb 2007 14:08:20 +0000 (14:08 +0000)]
Use short form of binary operator create functions.

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

17 years agoPut the Shift instructions in the right section.
Reid Spencer [Fri, 2 Feb 2007 13:57:07 +0000 (13:57 +0000)]
Put the Shift instructions in the right section.

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

17 years agoFix a comment that needed to change after SHIFT patch landed.
Reid Spencer [Fri, 2 Feb 2007 13:54:55 +0000 (13:54 +0000)]
Fix a comment that needed to change after SHIFT patch landed.

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

17 years agoUgh. Only meant to do this in thumb mode.
Evan Cheng [Fri, 2 Feb 2007 08:58:48 +0000 (08:58 +0000)]
Ugh. Only meant to do this in thumb mode.

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

17 years agobugfix for reid's shift patch.
Chris Lattner [Fri, 2 Feb 2007 05:29:55 +0000 (05:29 +0000)]
bugfix for reid's shift patch.

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

17 years agoadd a note
Chris Lattner [Fri, 2 Feb 2007 04:36:46 +0000 (04:36 +0000)]
add a note

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

17 years ago1. Break long lines to 80 col limit
Reid Spencer [Fri, 2 Feb 2007 02:30:19 +0000 (02:30 +0000)]
1. Break long lines to 80 col limit
2. Fix indentation
3. Renumber the instruction opcodes after the Shift became a binary operator.

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

17 years agoChanges to support making the shift instructions be true BinaryOperators.
Reid Spencer [Fri, 2 Feb 2007 02:16:23 +0000 (02:16 +0000)]
Changes to support making the shift instructions be true BinaryOperators.
This feature is needed in order to support shifts of more than 255 bits
on large integer types.  This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
   shl i32 %X, 1
instead of
   shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.

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

17 years agoFix a bug in getARMCMP (which translate CondCode to ARM specific CC) when the RHS...
Evan Cheng [Fri, 2 Feb 2007 01:53:26 +0000 (01:53 +0000)]
Fix a bug in getARMCMP (which translate CondCode to ARM specific CC) when the RHS is a constant.

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

17 years agoThumb does not have clz.
Evan Cheng [Thu, 1 Feb 2007 23:34:03 +0000 (23:34 +0000)]
Thumb does not have clz.

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

17 years agoDump function names when debug-pass=Executions is used.
Devang Patel [Thu, 1 Feb 2007 22:38:33 +0000 (22:38 +0000)]
Dump function names when debug-pass=Executions is used.

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

17 years agoFix Transforms/InstCombine/2007-02-01-LoadSinkAlloca.ll, a serious code
Chris Lattner [Thu, 1 Feb 2007 22:30:07 +0000 (22:30 +0000)]
Fix Transforms/InstCombine/2007-02-01-LoadSinkAlloca.ll, a serious code
pessimization where instcombine can sink a load (good for code size) that
prevents an alloca from being promoted by mem2reg (bad for everything).

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

17 years agonew testcase for serious code pessimization
Chris Lattner [Thu, 1 Feb 2007 22:29:26 +0000 (22:29 +0000)]
new testcase for serious code pessimization

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

17 years agoMy mistake, my environment wasn't up to date. This passes now.
Reid Spencer [Thu, 1 Feb 2007 22:26:42 +0000 (22:26 +0000)]
My mistake, my environment wasn't up to date. This passes now.

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

17 years agoXFAIL this on x86 linux as it continues to fail.
Reid Spencer [Thu, 1 Feb 2007 22:10:46 +0000 (22:10 +0000)]
XFAIL this on x86 linux as it continues to fail.

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

17 years agoPretty print pass managers.
Devang Patel [Thu, 1 Feb 2007 22:10:12 +0000 (22:10 +0000)]
Pretty print pass managers.

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

17 years agoPretty print pass manager
Devang Patel [Thu, 1 Feb 2007 22:09:37 +0000 (22:09 +0000)]
Pretty print pass manager

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

17 years agocvs commit
Devang Patel [Thu, 1 Feb 2007 22:08:25 +0000 (22:08 +0000)]
cvs commit

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

17 years agoMake sure the value passed to test function is initialized.
Reid Spencer [Thu, 1 Feb 2007 21:58:46 +0000 (21:58 +0000)]
Make sure the value passed to test function is initialized.

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

17 years agoDefine PrivateGlobalPrefix for ARM Linux. (Fix CodeGen/ARM/large_stack.ll)
Lauro Ramos Venancio [Thu, 1 Feb 2007 21:43:53 +0000 (21:43 +0000)]
Define PrivateGlobalPrefix for ARM Linux. (Fix CodeGen/ARM/large_stack.ll)

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

17 years agoPasto. Lots of it.
Evan Cheng [Thu, 1 Feb 2007 20:44:52 +0000 (20:44 +0000)]
Pasto. Lots of it.

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

17 years agoEnsure that ConvertOperandToType generates a result conversion by
Reid Spencer [Thu, 1 Feb 2007 19:14:51 +0000 (19:14 +0000)]
Ensure that ConvertOperandToType generates a result conversion by
initializing the Res variable to 0 and asserting it is not zero after the
result should have been created.

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

17 years agoFix bugs in the inliner having to do with single-entry phi nodes and valuemap
Chris Lattner [Thu, 1 Feb 2007 18:48:38 +0000 (18:48 +0000)]
Fix bugs in the inliner having to do with single-entry phi nodes and valuemap
updating.  These were exposed by Devang's recent passmgr changes (with
non-default passorderings) because now the inliner can be interleved with
the LCSSA pass.

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

17 years agoFix .thumb_func directive on linux.
Lauro Ramos Venancio [Thu, 1 Feb 2007 18:25:34 +0000 (18:25 +0000)]
Fix .thumb_func directive on linux.

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

17 years agoSlip up
Jim Laskey [Thu, 1 Feb 2007 17:48:20 +0000 (17:48 +0000)]
Slip up

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

17 years agoEmit labels as label_n and not as debug_n
Jim Laskey [Thu, 1 Feb 2007 17:46:10 +0000 (17:46 +0000)]
Emit labels as label_n and not as debug_n

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

17 years agopreserve sections of globals
Andrew Lenharth [Thu, 1 Feb 2007 17:12:54 +0000 (17:12 +0000)]
preserve sections of globals

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

17 years agoSupport for non-landing pad exception handling.
Jim Laskey [Thu, 1 Feb 2007 16:31:34 +0000 (16:31 +0000)]
Support for non-landing pad exception handling.

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

17 years agoFix a homonymo in a comment.
Reid Spencer [Thu, 1 Feb 2007 12:09:51 +0000 (12:09 +0000)]
Fix a homonymo in a comment.

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

17 years ago- Off by one bugs in maximum displacement calculation / testing.
Evan Cheng [Thu, 1 Feb 2007 10:16:15 +0000 (10:16 +0000)]
- Off by one bugs in maximum displacement calculation / testing.
- In thumb mode, a new constpool island BB size should be 4 + 2 to
  compensate for the potential padding due to alignment requirement.

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

17 years agoFixed uninitialized stuff inside LegalizeDAG. Fortunately, the only
Anton Korobeynikov [Thu, 1 Feb 2007 08:39:52 +0000 (08:39 +0000)]
Fixed uninitialized stuff inside LegalizeDAG. Fortunately, the only
affected part is codegen of "memove" inside x86 backend. This fixes
PR1144

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

17 years agoAdd a new dense hash table implementation
Chris Lattner [Thu, 1 Feb 2007 07:49:59 +0000 (07:49 +0000)]
Add a new dense hash table implementation

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

17 years agoimprove comments, add an assertion
Chris Lattner [Thu, 1 Feb 2007 05:33:21 +0000 (05:33 +0000)]
improve comments, add an assertion

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

17 years agorename DenseMap to IndexedMap.
Chris Lattner [Thu, 1 Feb 2007 05:32:05 +0000 (05:32 +0000)]
rename DenseMap to IndexedMap.

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

17 years agorename DenseMap -> IndexedMap.
Chris Lattner [Thu, 1 Feb 2007 05:28:10 +0000 (05:28 +0000)]
rename DenseMap -> IndexedMap.

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

17 years agosilence some warnings when assertions are disabled.
Chris Lattner [Thu, 1 Feb 2007 04:59:37 +0000 (04:59 +0000)]
silence some warnings when assertions are disabled.

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

17 years agosilence warning
Chris Lattner [Thu, 1 Feb 2007 04:57:00 +0000 (04:57 +0000)]
silence warning

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