oota-llvm.git
17 years agoDon't run bugpoint if we can't find a misoptimization.
Reid Spencer [Thu, 9 Nov 2006 01:47:04 +0000 (01:47 +0000)]
Don't run bugpoint if we can't find a misoptimization.

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

17 years agoPrint a usage message if too few arguments to program.
Reid Spencer [Thu, 9 Nov 2006 00:50:32 +0000 (00:50 +0000)]
Print a usage message if too few arguments to program.

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

17 years agoAdd a utility script to find a mis-optimization problem. This sometimes
Reid Spencer [Thu, 9 Nov 2006 00:26:17 +0000 (00:26 +0000)]
Add a utility script to find a mis-optimization problem. This sometimes
helps when bugpoint can't find the problem directly because it needs the
set of optimizations that cause the program to fail.

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

17 years agoShould be xfailed for llvmgcc3
Tanya Lattner [Wed, 8 Nov 2006 23:26:16 +0000 (23:26 +0000)]
Should be xfailed for llvmgcc3

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

17 years agoShould be xfailed for llvmgcc4 and NOT *. * means all platforms regardless of what...
Tanya Lattner [Wed, 8 Nov 2006 23:25:58 +0000 (23:25 +0000)]
Should be xfailed for llvmgcc4 and NOT *. * means all platforms regardless of what llvmgcc you use.

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

17 years agoAdded indexed store node and patfrag's.
Evan Cheng [Wed, 8 Nov 2006 23:02:11 +0000 (23:02 +0000)]
Added indexed store node and patfrag's.

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

17 years agoDivide select methods into groups by SelectionDAG node opcodes (ISD::ADD,
Evan Cheng [Wed, 8 Nov 2006 23:01:03 +0000 (23:01 +0000)]
Divide select methods into groups by SelectionDAG node opcodes (ISD::ADD,
X86ISD::CMP, etc.) instead of SDNode names (add, x86cmp, etc). We now allow
multiple SDNodes to map to the same SelectionDAG node (e.g. store, indexed
store).

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

17 years agoEnsure we don't regress on reading version 6 bytecode.
Reid Spencer [Wed, 8 Nov 2006 21:28:30 +0000 (21:28 +0000)]
Ensure we don't regress on reading version 6 bytecode.

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

17 years agoBump the bytecode version number to 7. Implement upgrade of version 6 and
Reid Spencer [Wed, 8 Nov 2006 21:27:54 +0000 (21:27 +0000)]
Bump the bytecode version number to 7. Implement upgrade of version 6 and
version 6 bytecode.

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

17 years agoUse movl+xchgl instead of pushl+popl.
Evan Cheng [Wed, 8 Nov 2006 20:35:37 +0000 (20:35 +0000)]
Use movl+xchgl instead of pushl+popl.

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

17 years agoMatch tblegen changes.
Evan Cheng [Wed, 8 Nov 2006 20:34:28 +0000 (20:34 +0000)]
Match tblegen changes.

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

17 years agoAlways pass the root node to ComplexPattern isel matching function.
Evan Cheng [Wed, 8 Nov 2006 20:31:10 +0000 (20:31 +0000)]
Always pass the root node to ComplexPattern isel matching function.

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

17 years agoMatch more post-indexed ops.
Evan Cheng [Wed, 8 Nov 2006 20:27:27 +0000 (20:27 +0000)]
Match more post-indexed ops.

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

17 years agoShould be xfailed for llvm-gcc3.4
Tanya Lattner [Wed, 8 Nov 2006 20:16:05 +0000 (20:16 +0000)]
Should be xfailed for llvm-gcc3.4

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

17 years agoDocument correct opcodes for post 1.9 release.
Reid Spencer [Wed, 8 Nov 2006 20:07:40 +0000 (20:07 +0000)]
Document correct opcodes for post 1.9 release.

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

17 years agoUpdate the instruction opcodes for release 1.9
Reid Spencer [Wed, 8 Nov 2006 20:06:36 +0000 (20:06 +0000)]
Update the instruction opcodes for release 1.9

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

17 years agoreenable factoring of GEP expressions, being more precise about the
Chris Lattner [Wed, 8 Nov 2006 19:42:28 +0000 (19:42 +0000)]
reenable factoring of GEP expressions, being more precise about the
case that it bad to do.

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

17 years agomake this code more efficient by not creating a phi node we are just going to
Chris Lattner [Wed, 8 Nov 2006 19:29:23 +0000 (19:29 +0000)]
make this code more efficient by not creating a phi node we are just going to
delete in the first place.  This also makes it simpler.

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

17 years agoRemove redundant <cmath>.
Jim Laskey [Wed, 8 Nov 2006 19:16:44 +0000 (19:16 +0000)]
Remove redundant <cmath>.

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

17 years agodisable this factoring optzn for GEPs for now, this severely pessimizes some
Chris Lattner [Wed, 8 Nov 2006 18:49:31 +0000 (18:49 +0000)]
disable this factoring optzn for GEPs for now, this severely pessimizes some
loops.

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

17 years agoMake sure <cmath> comes first
Jim Laskey [Wed, 8 Nov 2006 18:48:14 +0000 (18:48 +0000)]
Make sure <cmath> comes first

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

17 years agoAdd backup support for HUGH_VALF.
Jim Laskey [Wed, 8 Nov 2006 17:19:29 +0000 (17:19 +0000)]
Add backup support for HUGH_VALF.

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

17 years agoinitial implementation of addressing mode 2
Rafael Espindola [Wed, 8 Nov 2006 17:07:32 +0000 (17:07 +0000)]
initial implementation of addressing mode 2
TODO: fix lea_addri

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

17 years agoMake it work on Darwin.
Jim Laskey [Wed, 8 Nov 2006 16:38:45 +0000 (16:38 +0000)]
Make it work on Darwin.

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

17 years agoInclude llvm/Support/DataTypes.h to define intptr_t.
John Criswell [Wed, 8 Nov 2006 15:04:35 +0000 (15:04 +0000)]
Include llvm/Support/DataTypes.h to define intptr_t.
This fixes the build on OpenBSD and potentially other systems.

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

17 years agoNow can re-enable debug label folding.
Jim Laskey [Wed, 8 Nov 2006 14:17:45 +0000 (14:17 +0000)]
Now can re-enable debug label folding.

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

17 years agoWasn't handling case of when machine move labels were undefined.
Jim Laskey [Wed, 8 Nov 2006 14:16:39 +0000 (14:16 +0000)]
Wasn't handling case of when machine move labels were undefined.

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

17 years agoSplit FunctionPassManager_New into FunctionPassManager_New and FunctionPassManagerImp...
Devang Patel [Wed, 8 Nov 2006 10:44:40 +0000 (10:44 +0000)]
Split FunctionPassManager_New into FunctionPassManager_New and FunctionPassManagerImpl_New.
FunctionPassManagerImpl_New implements the pass manager.
FunctionPassManager_New is the public interface.

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

17 years agoSplit PassManager_New into PassManager_New and PassManagerImpl_New.
Devang Patel [Wed, 8 Nov 2006 10:29:57 +0000 (10:29 +0000)]
Split PassManager_New into PassManager_New and PassManagerImpl_New.
PassManagerImpl_New implements the pass manager.
PassManager_New is the public interface.

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

17 years agoMove BasicBlockPassManager_New, FunctionPassManager_New and
Devang Patel [Wed, 8 Nov 2006 10:05:38 +0000 (10:05 +0000)]
Move BasicBlockPassManager_New, FunctionPassManager_New and
ModulePassManager_New class declarations from PassManager.h
to PassManager.cpp

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

17 years ago- When performing pre-/post- indexed load/store transformation, do not worry
Evan Cheng [Wed, 8 Nov 2006 08:30:28 +0000 (08:30 +0000)]
- When performing pre-/post- indexed load/store transformation, do not worry
  about whether the new base ptr would be live below the load/store. Let two
  address pass split it back to non-indexed ops.
- Minor tweaks / fixes.

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

17 years agoFixed a minor bug preventing some pre-indexed load / store transformation.
Evan Cheng [Wed, 8 Nov 2006 06:56:05 +0000 (06:56 +0000)]
Fixed a minor bug preventing some pre-indexed load / store transformation.

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

17 years agoFor PR950:
Reid Spencer [Wed, 8 Nov 2006 06:47:33 +0000 (06:47 +0000)]
For PR950:
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.

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

17 years agoXFAIL this on Linux until Jim gets Darwin ship shape.
Reid Spencer [Wed, 8 Nov 2006 06:43:16 +0000 (06:43 +0000)]
XFAIL this on Linux until Jim gets Darwin ship shape.

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

17 years agonow that we handle single mbb loops better, one branch is allowed
Chris Lattner [Wed, 8 Nov 2006 06:42:42 +0000 (06:42 +0000)]
now that we handle single mbb loops better, one branch is allowed

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

17 years agoregenerate
Chris Lattner [Wed, 8 Nov 2006 05:58:47 +0000 (05:58 +0000)]
regenerate

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

17 years agoFix a bug noticed by Emil Mikulic.
Chris Lattner [Wed, 8 Nov 2006 05:58:11 +0000 (05:58 +0000)]
Fix a bug noticed by Emil Mikulic.

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

17 years agoFix a obscure post-indexed load / store dag combine bug.
Evan Cheng [Wed, 8 Nov 2006 02:38:55 +0000 (02:38 +0000)]
Fix a obscure post-indexed load / store dag combine bug.

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

17 years agoRefactor all the addressing mode selection stuff into the isel lowering
Chris Lattner [Wed, 8 Nov 2006 02:15:41 +0000 (02:15 +0000)]
Refactor all the addressing mode selection stuff into the isel lowering
class, where it can be used for preinc formation.

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

17 years agocorrect the (currently unused) pattern for lwzu.
Chris Lattner [Wed, 8 Nov 2006 02:13:12 +0000 (02:13 +0000)]
correct the (currently unused) pattern for lwzu.

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

17 years agopreincrement case we miss. xfail until we catch it
Chris Lattner [Wed, 8 Nov 2006 01:44:35 +0000 (01:44 +0000)]
preincrement case we miss.  xfail until we catch it

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

17 years agoBeautify.
Devang Patel [Wed, 8 Nov 2006 01:31:28 +0000 (01:31 +0000)]
Beautify.

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

17 years agoFix the section headings.
Reid Spencer [Wed, 8 Nov 2006 01:18:52 +0000 (01:18 +0000)]
Fix the section headings.

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

17 years agoFor PR950:
Reid Spencer [Wed, 8 Nov 2006 01:11:31 +0000 (01:11 +0000)]
For PR950:
Early commit of the documentation for new conversion instructions for
easier review.

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

17 years agooptimize single MBB loops better. In particular, produce:
Chris Lattner [Wed, 8 Nov 2006 01:03:21 +0000 (01:03 +0000)]
optimize single MBB loops better.  In particular, produce:

LBB1_57:        #bb207.i
        movl 72(%esp), %ecx
        movb (%ecx,%eax), %cl
        movl 80(%esp), %edx
        movb %cl, 1(%edx,%eax)
        incl %eax
        cmpl $143, %eax
        jne LBB1_57     #bb207.i
        jmp LBB1_64     #cond_next255.i

intead of:

LBB1_57:        #bb207.i
        movl 72(%esp), %ecx
        movb (%ecx,%eax), %cl
        movl 80(%esp), %edx
        movb %cl, 1(%edx,%eax)
        incl %eax
        cmpl $143, %eax
        je LBB1_64      #cond_next255.i
        jmp LBB1_57     #bb207.i

This eliminates a branch per iteration of the loop.  This hurted PPC
particularly, because the extra branch meant another dispatch group for each
iteration of the loop.

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

17 years agoBeautify.
Devang Patel [Wed, 8 Nov 2006 00:19:31 +0000 (00:19 +0000)]
Beautify.
Clarify comments.

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

17 years agoUpdate new pass managers to use PassManagerAnalysisHelper API.
Devang Patel [Tue, 7 Nov 2006 22:56:50 +0000 (22:56 +0000)]
Update new pass managers to use PassManagerAnalysisHelper API.

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

17 years agoDerive new pass managers from PassManagerAnalysisHelper.
Devang Patel [Tue, 7 Nov 2006 22:44:55 +0000 (22:44 +0000)]
Derive new pass managers from PassManagerAnalysisHelper.

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

17 years agoscalarrepl should not split the two elements of the vsiidx array:
Chris Lattner [Tue, 7 Nov 2006 22:42:47 +0000 (22:42 +0000)]
scalarrepl should not split the two elements of the vsiidx array:
int func(vFloat v0, vFloat v1) {
        int ii;
        vSInt32 vsiidx[2];
        vsiidx[0] = _mm_cvttps_epi32(v0);
        vsiidx[1] = _mm_cvttps_epi32(v1);
        ii = ((int *) vsiidx)[4];
        return ii;
}

This fixes Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll

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

17 years agoscalarrepl should not split the two elements of the vsiidx array:
Chris Lattner [Tue, 7 Nov 2006 22:42:29 +0000 (22:42 +0000)]
scalarrepl should not split the two elements of the vsiidx array:
int func(vFloat v0, vFloat v1) {
int ii;
vSInt32 vsiidx[2];
vsiidx[0] = _mm_cvttps_epi32(v0);
vsiidx[1] = _mm_cvttps_epi32(v1);
ii = ((int *) vsiidx)[4];
return ii;
}

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

17 years agoIntroduce PassManagerAnalysisHelper.
Devang Patel [Tue, 7 Nov 2006 22:35:17 +0000 (22:35 +0000)]
Introduce PassManagerAnalysisHelper.

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

17 years agoAdd PassManager_New.
Devang Patel [Tue, 7 Nov 2006 22:23:34 +0000 (22:23 +0000)]
Add PassManager_New.

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

17 years agoNew test case.
Evan Cheng [Tue, 7 Nov 2006 22:18:14 +0000 (22:18 +0000)]
New test case.

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

17 years agoFixed a bug which causes x86 be to incorrectly match
Evan Cheng [Tue, 7 Nov 2006 22:14:24 +0000 (22:14 +0000)]
Fixed a bug which causes x86 be to incorrectly match
shuffle v, undef, <2, ?, 3, ?>
to movhlps
It should match to unpckhps instead.

Added proper matching code for
shuffle v, undef, <2, 3, 2, 3>

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

17 years agoFix comment.
Devang Patel [Tue, 7 Nov 2006 22:04:53 +0000 (22:04 +0000)]
Fix comment.

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

17 years agoAdd ModulePassManager_New.
Devang Patel [Tue, 7 Nov 2006 22:03:15 +0000 (22:03 +0000)]
Add ModulePassManager_New.

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

17 years agoAccidently reran commit.
Jim Laskey [Tue, 7 Nov 2006 21:58:55 +0000 (21:58 +0000)]
Accidently reran commit.

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

17 years agoAdd FunctionPassManager_New.
Devang Patel [Tue, 7 Nov 2006 21:49:50 +0000 (21:49 +0000)]
Add FunctionPassManager_New.

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

17 years agoMissed a label map, reverting till covered.
Jim Laskey [Tue, 7 Nov 2006 21:37:31 +0000 (21:37 +0000)]
Missed a label map, reverting till covered.

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

17 years agoAdd BasicBlockPassManager_New.
Devang Patel [Tue, 7 Nov 2006 21:31:57 +0000 (21:31 +0000)]
Add BasicBlockPassManager_New.

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

17 years agoMissed a label map, reverting till covered.
Jim Laskey [Tue, 7 Nov 2006 20:53:05 +0000 (20:53 +0000)]
Missed a label map, reverting till covered.

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

17 years agoOptionally allow comparison operations from affect DSGraphs
Andrew Lenharth [Tue, 7 Nov 2006 20:39:05 +0000 (20:39 +0000)]
Optionally allow comparison operations from affect DSGraphs

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

17 years agoAllow loop detection during debug in forwarding nodes, and revert auxcall patch as...
Andrew Lenharth [Tue, 7 Nov 2006 20:36:02 +0000 (20:36 +0000)]
Allow loop detection during debug in forwarding nodes, and revert auxcall patch as it make 176.gcc untenable

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

17 years agodebug type for DSA TD
Andrew Lenharth [Tue, 7 Nov 2006 20:35:11 +0000 (20:35 +0000)]
debug type for DSA TD

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

17 years ago1. Add a pass to fold debug label instructions so a debug info client can detect
Jim Laskey [Tue, 7 Nov 2006 19:33:46 +0000 (19:33 +0000)]
1. Add a pass to fold debug label instructions so a debug info client can detect
empty ranges.

2. Reorg how MachineDebugInfo maintains changes to debug labels.

3. Have dwarf writer use debug label info to simplify scopes and source line
coorespondence.

4. Revert the merging of compile units until I can get the bugs ironed out.

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

17 years agoadd a note from viterbi
Chris Lattner [Tue, 7 Nov 2006 18:30:21 +0000 (18:30 +0000)]
add a note from viterbi

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

17 years agoEnable improved spilling costs by default. This speeds up viterbi on x86
Chris Lattner [Tue, 7 Nov 2006 18:04:58 +0000 (18:04 +0000)]
Enable improved spilling costs by default.  This speeds up viterbi on x86
by 40%, FreeBench/fourinarow by 20%, and many other programs 10-25%.

On PPC, this speeds up fourinarow by 18%, and probably other things as well.

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

17 years agoGot a little ahead of myself here
Andrew Lenharth [Tue, 7 Nov 2006 16:40:19 +0000 (16:40 +0000)]
Got a little ahead of myself here

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

17 years agoFix this test
Andrew Lenharth [Tue, 7 Nov 2006 16:32:55 +0000 (16:32 +0000)]
Fix this test

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

17 years agoUse correct value for float HUGH_VAL.
Jim Laskey [Tue, 7 Nov 2006 12:25:45 +0000 (12:25 +0000)]
Use correct value for float HUGH_VAL.

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

17 years agoAdded target hook for post-indexed memory ops transformation.
Evan Cheng [Tue, 7 Nov 2006 09:04:16 +0000 (09:04 +0000)]
Added target hook for post-indexed memory ops transformation.

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

17 years agoAdd post-indexed load / store transformations.
Evan Cheng [Tue, 7 Nov 2006 09:03:05 +0000 (09:03 +0000)]
Add post-indexed load / store transformations.

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

17 years agoMake some corrections to this test case.
Reid Spencer [Tue, 7 Nov 2006 07:58:02 +0000 (07:58 +0000)]
Make some corrections to this test case.

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

17 years agoIgnore the Output dir.
Reid Spencer [Tue, 7 Nov 2006 07:34:56 +0000 (07:34 +0000)]
Ignore the Output dir.

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

17 years agoAdd a test case for making sure gdb can get a stack trace with our debug
Reid Spencer [Tue, 7 Nov 2006 07:31:37 +0000 (07:31 +0000)]
Add a test case for making sure gdb can get a stack trace with our debug
information.

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

17 years agoAdd a new llcbeta option. This speeds up viterbi from 12.34 to 8.76s on
Chris Lattner [Tue, 7 Nov 2006 07:18:40 +0000 (07:18 +0000)]
Add a new llcbeta option.  This speeds up viterbi from 12.34 to 8.76s on
X86.  If happy, I'll enable this by default.

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

17 years agoUnbreak X86/ELF Debugging. Somehow this line got lost in Jim's cleanup.
Reid Spencer [Tue, 7 Nov 2006 06:36:36 +0000 (06:36 +0000)]
Unbreak X86/ELF Debugging. Somehow this line got lost in Jim's cleanup.

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

17 years agoBumping version number
Tanya Lattner [Tue, 7 Nov 2006 05:31:00 +0000 (05:31 +0000)]
Bumping version number

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

17 years agowrong bug #
Chris Lattner [Tue, 7 Nov 2006 04:12:03 +0000 (04:12 +0000)]
wrong bug #

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

17 years agoFix PR988 and CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll.
Chris Lattner [Tue, 7 Nov 2006 04:11:44 +0000 (04:11 +0000)]
Fix PR988 and CodeGen/Generic/2006-11-06-MemIntrinsicExpand.ll.
The low part goes in the first operand of expandop, not the second one.

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

17 years agonew testcase
Chris Lattner [Tue, 7 Nov 2006 04:11:14 +0000 (04:11 +0000)]
new testcase

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

17 years agofix encoding of BLR
Chris Lattner [Tue, 7 Nov 2006 01:51:50 +0000 (01:51 +0000)]
fix encoding of BLR

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

17 years agoemit TIED_TO correctly
Chris Lattner [Tue, 7 Nov 2006 01:27:55 +0000 (01:27 +0000)]
emit TIED_TO correctly

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

17 years agoMark predicate operands as such in operand info.
Chris Lattner [Mon, 6 Nov 2006 23:53:31 +0000 (23:53 +0000)]
Mark predicate operands as such in operand info.

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

17 years agoAdd a new operand flag to mark which operand is the first predicate operand
Chris Lattner [Mon, 6 Nov 2006 23:53:08 +0000 (23:53 +0000)]
Add a new operand flag to mark which operand is the first predicate operand
of an M_PREDICATED instruction.

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

17 years agosimplify the way operand flags and constraints are handled, making it easier
Chris Lattner [Mon, 6 Nov 2006 23:49:51 +0000 (23:49 +0000)]
simplify the way operand flags and constraints are handled, making it easier
to extend.

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

17 years agorecognize ppc's blr instruction as predicated
Chris Lattner [Mon, 6 Nov 2006 21:44:54 +0000 (21:44 +0000)]
recognize ppc's blr instruction as predicated

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

17 years agoadd a flag so that predicated instructions can be recognized by branch
Chris Lattner [Mon, 6 Nov 2006 21:44:17 +0000 (21:44 +0000)]
add a flag so that predicated instructions can be recognized by branch
folding

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

17 years agoRemove dead code; added a missing null ptr check.
Evan Cheng [Mon, 6 Nov 2006 21:33:46 +0000 (21:33 +0000)]
Remove dead code; added a missing null ptr check.

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

17 years agoadd a note
Chris Lattner [Mon, 6 Nov 2006 21:26:49 +0000 (21:26 +0000)]
add a note

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

17 years agoFix a small bug noticed on code review.
Reid Spencer [Mon, 6 Nov 2006 18:47:14 +0000 (18:47 +0000)]
Fix a small bug noticed on code review.

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

17 years agoTab interferes with uniqueness.
Jim Laskey [Mon, 6 Nov 2006 16:23:59 +0000 (16:23 +0000)]
Tab interferes with uniqueness.
NOTE: There doesn't seem to be consistency for whether a leading tab
is present in a section heading.

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

17 years agoD'oh - reversed logic.
Jim Laskey [Mon, 6 Nov 2006 13:20:29 +0000 (13:20 +0000)]
D'oh - reversed logic.

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

17 years agoAdd comment.
Evan Cheng [Mon, 6 Nov 2006 08:14:30 +0000 (08:14 +0000)]
Add comment.

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

17 years agoregenerate
Chris Lattner [Sun, 5 Nov 2006 23:28:58 +0000 (23:28 +0000)]
regenerate

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

17 years agoxfail this for the 1.9 release. This is PR984.
Chris Lattner [Sun, 5 Nov 2006 23:27:36 +0000 (23:27 +0000)]
xfail this for the 1.9 release.  This is PR984.

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

17 years agoTry again.
Jim Laskey [Sun, 5 Nov 2006 21:21:20 +0000 (21:21 +0000)]
Try again.

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

17 years agoMisfire.
Jim Laskey [Sun, 5 Nov 2006 21:20:04 +0000 (21:20 +0000)]
Misfire.

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

17 years agoUp to date for 1.9
Jim Laskey [Sun, 5 Nov 2006 21:00:54 +0000 (21:00 +0000)]
Up to date for 1.9

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

17 years agoGet LLVMGCCARCH right regardless of the llvm-gcc version being used.
Reid Spencer [Sun, 5 Nov 2006 20:10:16 +0000 (20:10 +0000)]
Get LLVMGCCARCH right regardless of the llvm-gcc version being used.

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