oota-llvm.git
17 years agoMake the GSG actually work.
Chris Lattner [Wed, 4 Jul 2007 18:42:47 +0000 (18:42 +0000)]
Make the GSG actually work.

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

17 years agoFix a typo that was killing GVNPRE of select instructions.
Owen Anderson [Wed, 4 Jul 2007 18:26:18 +0000 (18:26 +0000)]
Fix a typo that was killing GVNPRE of select instructions.

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

17 years agoFix an error in phi translation of GEPs that was causing failures.
Owen Anderson [Wed, 4 Jul 2007 04:51:16 +0000 (04:51 +0000)]
Fix an error in phi translation of GEPs that was causing failures.

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

17 years agoIgnore the .svn directories so countloc.sh and llvmgrep won't traverse them.
Reid Spencer [Wed, 4 Jul 2007 01:35:32 +0000 (01:35 +0000)]
Ignore the .svn directories so countloc.sh and llvmgrep won't traverse them.

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

17 years agoSupport generation of GR64 to MMX code in the JIT.
Bill Wendling [Wed, 4 Jul 2007 01:29:22 +0000 (01:29 +0000)]
Support generation of GR64 to MMX code in the JIT.

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

17 years agoRemove unused method - getIDomBlock().
Devang Patel [Wed, 4 Jul 2007 01:11:19 +0000 (01:11 +0000)]
Remove unused method - getIDomBlock().

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

17 years agoFix typo in assertion check.
Devang Patel [Wed, 4 Jul 2007 01:05:22 +0000 (01:05 +0000)]
Fix typo in assertion check.

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

17 years agoAllow a GR64 to be moved into an MMX register via the "movd" instruction.
Bill Wendling [Wed, 4 Jul 2007 00:19:54 +0000 (00:19 +0000)]
Allow a GR64 to be moved into an MMX register via the "movd" instruction.

Still need to have JIT generate this code.

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

17 years agoAdd support for performing GVNPRE on GEP instructions.
Owen Anderson [Tue, 3 Jul 2007 23:51:19 +0000 (23:51 +0000)]
Add support for performing GVNPRE on GEP instructions.

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

17 years agoChange the place where man pages are installed to ${prefix}/share/man1. This
Bill Wendling [Tue, 3 Jul 2007 23:04:11 +0000 (23:04 +0000)]
Change the place where man pages are installed to ${prefix}/share/man1. This
puts them in a more standardized place.

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

17 years agoAdd functionality to value number GEP instructions. This also provides the infrastru...
Owen Anderson [Tue, 3 Jul 2007 22:50:56 +0000 (22:50 +0000)]
Add functionality to value number GEP instructions.  This also provides the infrastructure that will
be used for function calls.  NOTE: This does not yet do any transformation of GEPs or function calls.

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

17 years agoTest modified svn mailer
Anton Korobeynikov [Tue, 3 Jul 2007 21:57:50 +0000 (21:57 +0000)]
Test modified svn mailer

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

17 years agoRemove BFtoLLVM. It was old, and a poor example because it didn't use best practices...
Owen Anderson [Tue, 3 Jul 2007 21:36:47 +0000 (21:36 +0000)]
Remove BFtoLLVM.  It was old, and a poor example because it didn't use best practices for making
a LLVM frontend in C++.  Maybe someday it will be rewritten..

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

17 years agoMake the unary operator case a bit faster, since casts are the only kind of unary...
Owen Anderson [Tue, 3 Jul 2007 19:01:42 +0000 (19:01 +0000)]
Make the unary operator case a bit faster, since casts are the only kind of unary operation.

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

17 years agoAdd support for performing GVNPRE on cast instructions, and add a testcase for this.
Owen Anderson [Tue, 3 Jul 2007 18:37:08 +0000 (18:37 +0000)]
Add support for performing GVNPRE on cast instructions, and add a testcase for this.

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

17 years agoWe really should not have this version number in SO many makefiles. This should...
Tanya Lattner [Tue, 3 Jul 2007 18:11:20 +0000 (18:11 +0000)]
We really should not have this version number in  SO many makefiles. This should also probably change to svn instead of cvs, but leaving it for now.

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

17 years agoRevert last change until issue reported by Owen, won't be fixed.
Anton Korobeynikov [Tue, 3 Jul 2007 17:16:46 +0000 (17:16 +0000)]
Revert last change until issue reported by Owen, won't be fixed.

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

17 years agoSome spacing fixes. Cosmetic.
Dale Johannesen [Tue, 3 Jul 2007 17:07:33 +0000 (17:07 +0000)]
Some spacing fixes.  Cosmetic.

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

17 years agoRename llvm-test => test-suite. By Dave Greene.
Anton Korobeynikov [Tue, 3 Jul 2007 17:01:58 +0000 (17:01 +0000)]
Rename llvm-test => test-suite. By Dave Greene.

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

17 years agoFix several over-aggressive folds for undef nodes in dagcombine, to
Dan Gohman [Tue, 3 Jul 2007 14:03:57 +0000 (14:03 +0000)]
Fix several over-aggressive folds for undef nodes in dagcombine, to
follow the rules for undef used in instcombine.

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

17 years agonote where to get steens-aa and ds-aa
Chris Lattner [Tue, 3 Jul 2007 04:41:50 +0000 (04:41 +0000)]
note where to get steens-aa and ds-aa

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

17 years agoTest commit.
Owen Anderson [Tue, 3 Jul 2007 02:28:17 +0000 (02:28 +0000)]
Test commit.

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

17 years agoNew testcases for rev 37847 (PR's 1489 and 1505).
Dale Johannesen [Tue, 3 Jul 2007 00:58:37 +0000 (00:58 +0000)]
New testcases for rev 37847 (PR's 1489 and 1505).

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

17 years agoFix for PR 1505 (and 1489). Rewrite X87 register
Dale Johannesen [Tue, 3 Jul 2007 00:53:03 +0000 (00:53 +0000)]
Fix for PR 1505 (and 1489).  Rewrite X87 register
model to include f32 variants.  Some factoring
improvments forthcoming.

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

17 years agoTesting commit.
Tanya Lattner [Mon, 2 Jul 2007 18:10:52 +0000 (18:10 +0000)]
Testing commit.

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

17 years agoAdd a basic test-case for passing and returning <4 x double> and
Dan Gohman [Mon, 2 Jul 2007 16:23:47 +0000 (16:23 +0000)]
Add a basic test-case for passing and returning <4 x double> and
<8 x float> values on X86.

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

17 years agoVector results may be returned in XMM0 and XMM1, not just XMM0. With
Dan Gohman [Mon, 2 Jul 2007 16:21:53 +0000 (16:21 +0000)]
Vector results may be returned in XMM0 and XMM1, not just XMM0. With
the recent lowering changes, this allows types like <4 x double> to
be returned, using two vector registers.

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

17 years agoReplace ExpandScalarFormalArgs and ExpandScalarCallArgs with the newly
Dan Gohman [Mon, 2 Jul 2007 16:18:06 +0000 (16:18 +0000)]
Replace ExpandScalarFormalArgs and ExpandScalarCallArgs with the newly
refactored getCopyFromParts and getCopyToParts, which are more general.
This effectively adds support for lowering illegal by-val vector call
arguments.

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

17 years agoTeach GetNegatedExpression to negate 0-B to B in UnsafeFPMath mode, and
Dan Gohman [Mon, 2 Jul 2007 15:48:56 +0000 (15:48 +0000)]
Teach GetNegatedExpression to negate 0-B to B in UnsafeFPMath mode, and
visitFSUB to fold 0-B to -B in UnsafeFPMath mode. Also change visitFNEG
to use isNegatibleForFree/GetNegatedExpression instead of doing a subset
of the same thing manually.

This fixes test/CodeGen/X86/negative-sin.ll.

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

17 years agoNew test case. DAGCombiner should be able to fold -sin(-x)
Dan Gohman [Mon, 2 Jul 2007 15:43:20 +0000 (15:43 +0000)]
New test case. DAGCombiner should be able to fold -sin(-x)
in -enable-unsafe-fp-math mode.

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

17 years agoRemove declarations for code no longer in the tree, to avoid confusion.
Dan Gohman [Mon, 2 Jul 2007 15:06:26 +0000 (15:06 +0000)]
Remove declarations for code no longer in the tree, to avoid confusion.

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

17 years agoAdd explicit keywords.
Dan Gohman [Mon, 2 Jul 2007 14:53:37 +0000 (14:53 +0000)]
Add explicit keywords.

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

17 years agoTest case for recent patch for IndVarSimplify.cpp
Zhou Sheng [Mon, 2 Jul 2007 08:02:14 +0000 (08:02 +0000)]
Test case for recent patch for IndVarSimplify.cpp

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

17 years agoRemove the last vestiges of -usesvn.
Reid Spencer [Mon, 2 Jul 2007 06:19:57 +0000 (06:19 +0000)]
Remove the last vestiges of -usesvn.
Implement -usecvs just in case we need to go back to cvs for some reason.

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

17 years agoWe want the Subversion checkout to succeed even if we don't specify
Reid Spencer [Mon, 2 Jul 2007 06:16:32 +0000 (06:16 +0000)]
We want the Subversion checkout to succeed even if we don't specify
the -verbose option! Doh!

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

17 years agoTerminate the document with the right end tags.
Reid Spencer [Sun, 1 Jul 2007 17:02:22 +0000 (17:02 +0000)]
Terminate the document with the right end tags.

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

17 years agoFix undefined behaviour reported by the new --enable-expensive-checks option.
Nick Lewycky [Sun, 1 Jul 2007 03:06:30 +0000 (03:06 +0000)]
Fix undefined behaviour reported by the new --enable-expensive-checks option.

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

17 years agotake blame for bigblock RA (test SVN commit)
Duraid Madina [Sat, 30 Jun 2007 15:47:36 +0000 (15:47 +0000)]
take blame for bigblock RA (test SVN commit)

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

17 years agoBe slightly more explanatory about the work I've done on LLVM.
Reid Spencer [Sat, 30 Jun 2007 06:56:50 +0000 (06:56 +0000)]
Be slightly more explanatory about the work I've done on LLVM.

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

17 years agotest commit
Chris Lattner [Sat, 30 Jun 2007 06:53:56 +0000 (06:53 +0000)]
test commit

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

17 years ago(For Chris): Fix failure where we rejected compiling stubs when lazy compilation...
Evan Cheng [Sat, 30 Jun 2007 00:10:37 +0000 (00:10 +0000)]
(For Chris): Fix failure where we rejected compiling stubs when lazy compilation is disabled.

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

17 years agoRemove labels again
Anton Korobeynikov [Sat, 30 Jun 2007 00:00:57 +0000 (00:00 +0000)]
Remove labels again

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

17 years agoNew test.
Evan Cheng [Fri, 29 Jun 2007 23:17:15 +0000 (23:17 +0000)]
New test.

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

17 years agoAdd loop info verification mechanism.
Devang Patel [Fri, 29 Jun 2007 23:13:42 +0000 (23:13 +0000)]
Add loop info verification mechanism.

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

17 years agoChange CVS-style 'labels' to SVN 'tags' directory.
Anton Korobeynikov [Fri, 29 Jun 2007 23:13:42 +0000 (23:13 +0000)]
Change CVS-style 'labels' to SVN 'tags' directory.

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

17 years agoPreserve DominanceFrontier.
Devang Patel [Fri, 29 Jun 2007 23:11:49 +0000 (23:11 +0000)]
Preserve DominanceFrontier.

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

17 years agoAdd an explicit keyword. Thanks Chris!
Dan Gohman [Fri, 29 Jun 2007 22:16:25 +0000 (22:16 +0000)]
Add an explicit keyword. Thanks Chris!

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

17 years agoOnly do FNEG xform when the vector type is a floating point type.
Evan Cheng [Fri, 29 Jun 2007 21:44:35 +0000 (21:44 +0000)]
Only do FNEG xform when the vector type is a floating point type.

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

17 years agoAnother typo
Anton Korobeynikov [Fri, 29 Jun 2007 21:44:14 +0000 (21:44 +0000)]
Another typo

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

17 years agoRemove unused variables.
David Greene [Fri, 29 Jun 2007 21:42:03 +0000 (21:42 +0000)]
Remove unused variables.

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

17 years agoNew test.
Evan Cheng [Fri, 29 Jun 2007 21:40:30 +0000 (21:40 +0000)]
New test.

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

17 years agoFix a vector FP constant CSE bug.
Evan Cheng [Fri, 29 Jun 2007 21:36:04 +0000 (21:36 +0000)]
Fix a vector FP constant CSE bug.

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

17 years agoFix a typo
Anton Korobeynikov [Fri, 29 Jun 2007 20:56:49 +0000 (20:56 +0000)]
Fix a typo

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

17 years agoApplied Reid's patch. Long live Subversion!
John Criswell [Fri, 29 Jun 2007 19:12:50 +0000 (19:12 +0000)]
Applied Reid's patch.  Long live Subversion!

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

17 years agoApplied Reid's patch. Long live Subversion!
John Criswell [Fri, 29 Jun 2007 19:12:31 +0000 (19:12 +0000)]
Applied Reid's patch.  Long live Subversion!

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

17 years agoUpdated my entry as a test commit.
John Criswell [Fri, 29 Jun 2007 18:24:05 +0000 (18:24 +0000)]
Updated my entry as a test commit.
Removed QMTest (it is long gone).
Acknowledge the fleeting'ness of my original autoconf work.
Mention that I fixed some bugs.

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

17 years agoConvert .cvsignore files
John Criswell [Fri, 29 Jun 2007 16:35:07 +0000 (16:35 +0000)]
Convert .cvsignore files

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

17 years agoAdd a missing .
Reid Spencer [Fri, 29 Jun 2007 14:02:07 +0000 (14:02 +0000)]
Add a missing .

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

17 years agoRemove unnecessary attributions in comments.
David Greene [Fri, 29 Jun 2007 03:42:23 +0000 (03:42 +0000)]
Remove unnecessary attributions in comments.

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

17 years agoClean up comments to be consistent with code.
David Greene [Fri, 29 Jun 2007 03:36:21 +0000 (03:36 +0000)]
Clean up comments to be consistent with code.

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

17 years agoFix problems with the checkout and cd directories for SVN checkout.
Reid Spencer [Fri, 29 Jun 2007 03:12:42 +0000 (03:12 +0000)]
Fix problems with the checkout and cd directories for SVN checkout.

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

17 years agoFix reference to iterator invalidated by an erase operation. Uncovered
David Greene [Fri, 29 Jun 2007 02:53:16 +0000 (02:53 +0000)]
Fix reference to iterator invalidated by an erase operation.  Uncovered
by _GLIBCXX_DEBUG.

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

17 years agoFix reference to cached end iterator invalidated by an erase operation.
David Greene [Fri, 29 Jun 2007 02:49:11 +0000 (02:49 +0000)]
Fix reference to cached end iterator invalidated by an erase operation.
Uncovered by _GLIBCXX_DEBUG.

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

17 years agoRemove the "special tie breaker" because it resulted in inconsistent
David Greene [Fri, 29 Jun 2007 02:48:09 +0000 (02:48 +0000)]
Remove the "special tie breaker" because it resulted in inconsistent
ordering and thus violated the strict weak ordering requirement of
priority_queue.  Uncovered by _GLIBCXX_DEBUG.

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

17 years agoFix misue of iterator pointing to erased object. Uncovered by
David Greene [Fri, 29 Jun 2007 02:45:24 +0000 (02:45 +0000)]
Fix misue of iterator pointing to erased object.  Uncovered by
_GLIBCXX_DEBUG.

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

17 years agoDo not filter loop if candidate branch is in loop header.
Devang Patel [Fri, 29 Jun 2007 01:39:53 +0000 (01:39 +0000)]
Do not filter loop if candidate branch is in loop header.

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

17 years agoNew test.
Evan Cheng [Fri, 29 Jun 2007 01:36:33 +0000 (01:36 +0000)]
New test.

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

17 years agoPrevent PPC::BCC first operand, the PRED number, from being isel'd into a LI instruction.
Evan Cheng [Fri, 29 Jun 2007 01:25:06 +0000 (01:25 +0000)]
Prevent PPC::BCC first operand, the PRED number, from being isel'd into a LI instruction.

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

17 years agoAdd support for value numbering (but not actually optimizing) cast instructions.
Owen Anderson [Fri, 29 Jun 2007 00:51:03 +0000 (00:51 +0000)]
Add support for value numbering (but not actually optimizing) cast instructions.

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

17 years agoAdd a type field to expressions in preparation for performing GVNPRE on casts.
Owen Anderson [Fri, 29 Jun 2007 00:40:05 +0000 (00:40 +0000)]
Add a type field to expressions in preparation for performing GVNPRE on casts.

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

17 years agoNew tests.
Evan Cheng [Fri, 29 Jun 2007 00:27:18 +0000 (00:27 +0000)]
New tests.

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

17 years agoNo vector fneg.
Evan Cheng [Fri, 29 Jun 2007 00:18:15 +0000 (00:18 +0000)]
No vector fneg.

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

17 years agoFix an assertion failure in legalizing bitcast operators on targets where
Dan Gohman [Fri, 29 Jun 2007 00:09:08 +0000 (00:09 +0000)]
Fix an assertion failure in legalizing bitcast operators on targets where
vectors are split down to single elements as part of legalization.

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

17 years agoType of vector extract / insert index operand should be iPTR.
Evan Cheng [Fri, 29 Jun 2007 00:01:20 +0000 (00:01 +0000)]
Type of vector extract / insert index operand should be iPTR.

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

17 years agoAdd support for performing GVNPRE on select instructions. This fixes test/Transforms...
Owen Anderson [Thu, 28 Jun 2007 23:51:21 +0000 (23:51 +0000)]
Add support for performing GVNPRE on select instructions.  This fixes test/Transforms/GVNPRE/select.ll.

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

17 years agoAdd a test for performing GVNPRE on select instructions.
Owen Anderson [Thu, 28 Jun 2007 23:50:31 +0000 (23:50 +0000)]
Add a test for performing GVNPRE on select instructions.

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

17 years agoAdd new TargetLowering code to provide the final register type that an
Dan Gohman [Thu, 28 Jun 2007 23:29:44 +0000 (23:29 +0000)]
Add new TargetLowering code to provide the final register type that an
illegal value type will be transformed to, for code that needs the
register type after all transformations instead of just after the first
transformation.

Factor out the code that uses this information to do copy-from-regs and
copy-to-regs for various purposes into separate functions so that they
are done consistently.

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

17 years agoFix PR 1526.
Devang Patel [Thu, 28 Jun 2007 23:09:25 +0000 (23:09 +0000)]
Fix PR 1526.

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

17 years agoAdd a default parameter to a SmallVector constructor to allow it to
Dan Gohman [Thu, 28 Jun 2007 20:27:24 +0000 (20:27 +0000)]
Add a default parameter to a SmallVector constructor to allow it to
be called with just an initial length value, just like in std::vector.

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

17 years agoFix a bug in my previous patch.
Lauro Ramos Venancio [Thu, 28 Jun 2007 20:06:38 +0000 (20:06 +0000)]
Fix a bug in my previous patch.

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

17 years agoAdd support for building with _GLIBCXX_DEBUG. New configure option
David Greene [Thu, 28 Jun 2007 19:36:08 +0000 (19:36 +0000)]
Add support for building with _GLIBCXX_DEBUG.  New configure option
--enable-expensive-checks allows the developer to enable runtime
checking that can greatly increase compile time.  Currently it only
turns on _GLIBCXX_DEBUG.  Other expensive debugging checks added later
should be controlled by this configure option.

This patch also updates llvm-config with a --cppflags option to inform
llvm-gcc how to build itself so that it is compatible with an llvm that
was built with _GLIBCXX_DEBUG.

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

17 years agoWhen linking two modules, we should copy the alias.
Lauro Ramos Venancio [Thu, 28 Jun 2007 19:02:54 +0000 (19:02 +0000)]
When linking two modules, we should copy the alias.

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

17 years agoRemove unnecessary comments.
Devang Patel [Thu, 28 Jun 2007 02:11:54 +0000 (02:11 +0000)]
Remove unnecessary comments.

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

17 years agoHandle the case when block dominates itself.
Devang Patel [Thu, 28 Jun 2007 02:07:08 +0000 (02:07 +0000)]
Handle the case when block dominates itself.

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

17 years ago- Undo previous check and allow loop switch for condtion that is not inside
Devang Patel [Thu, 28 Jun 2007 02:05:46 +0000 (02:05 +0000)]
- Undo previous check and allow loop switch for condtion that is not inside
loop.
- Avoid loop unswich for loop header branch.
- While cloning dominators fix typo and handle self dominating blocks.

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

17 years agoUpdate LoopUnswitch pass to preserve DomiantorTree.
Devang Patel [Thu, 28 Jun 2007 00:49:00 +0000 (00:49 +0000)]
Update LoopUnswitch pass to preserve DomiantorTree.

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

17 years agoIf a condition is not inside a loop then the condition is suitable
Devang Patel [Thu, 28 Jun 2007 00:44:10 +0000 (00:44 +0000)]
If a condition is not inside a loop then the condition is suitable
to loop unswitch candidate for the loop.

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

17 years agoMake many sets a much more reasonable size. This decreases the time to optimize
Owen Anderson [Thu, 28 Jun 2007 00:34:34 +0000 (00:34 +0000)]
Make many sets a much more reasonable size.  This decreases the time to optimize
Anton's testcase from 35.5s to 34.7s.

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

17 years agoSet implied features based upon the CPU's feature list.
Bill Wendling [Wed, 27 Jun 2007 23:34:06 +0000 (23:34 +0000)]
Set implied features based upon the CPU's feature list.

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

17 years agoUpdate. Now, -etforest is an invalid option.
Devang Patel [Wed, 27 Jun 2007 22:58:12 +0000 (22:58 +0000)]
Update. Now, -etforest is an invalid option.

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

17 years agollvm-nm must print the alias symbols.
Lauro Ramos Venancio [Wed, 27 Jun 2007 22:08:09 +0000 (22:08 +0000)]
llvm-nm must print the alias symbols.

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

17 years agoRemove ETForest.
Devang Patel [Wed, 27 Jun 2007 20:53:52 +0000 (20:53 +0000)]
Remove ETForest.

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

17 years agoIf a livein is not used in the block. It's live through.
Evan Cheng [Wed, 27 Jun 2007 18:47:28 +0000 (18:47 +0000)]
If a livein is not used in the block. It's live through.

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

17 years agoPartial fix for PR1502: If a EH register is needed in a successor of landing pad...
Evan Cheng [Wed, 27 Jun 2007 18:45:32 +0000 (18:45 +0000)]
Partial fix for PR1502: If a EH register is needed in a successor of landing pad, add it as livein to all the blocks in the paths between the landing pad and the specified block.

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

17 years agoUse cached information that has already been computed to make clean() simpler and...
Owen Anderson [Wed, 27 Jun 2007 17:38:29 +0000 (17:38 +0000)]
Use cached information that has already been computed to make clean() simpler and faster.  This is a small speedup on most cases.

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

17 years agoOne additional field in TargetRegisterDesc.
Evan Cheng [Wed, 27 Jun 2007 17:09:34 +0000 (17:09 +0000)]
One additional field in TargetRegisterDesc.

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

17 years agoFold a lot of code into two cases: binary instructions and ternary instructions.
Owen Anderson [Wed, 27 Jun 2007 17:03:03 +0000 (17:03 +0000)]
Fold a lot of code into two cases: binary instructions and ternary instructions.
This saves many lines of code duplication.  No functionality change.

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

17 years agoRename ("shrinkify") MVT::isExtendedValueType to MVT::isExtendedVT.
Dan Gohman [Wed, 27 Jun 2007 16:08:04 +0000 (16:08 +0000)]
Rename ("shrinkify") MVT::isExtendedValueType to MVT::isExtendedVT.

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

17 years agoDocument the encoding of MVT::ValueType.
Dan Gohman [Wed, 27 Jun 2007 15:28:26 +0000 (15:28 +0000)]
Document the encoding of MVT::ValueType.

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

17 years agoRemove a redundant newline in the asm output for ELF .rodata sections.
Dan Gohman [Wed, 27 Jun 2007 15:09:47 +0000 (15:09 +0000)]
Remove a redundant newline in the asm output for ELF .rodata sections.

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