oota-llvm.git
18 years agoDocument removeModule().
Devang Patel [Fri, 27 Oct 2006 22:02:30 +0000 (22:02 +0000)]
Document removeModule().

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

18 years agothis doesn't occur any more in mason
Chris Lattner [Fri, 27 Oct 2006 22:02:19 +0000 (22:02 +0000)]
this doesn't occur any more in mason

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

18 years agothe code in question is now:
Chris Lattner [Fri, 27 Oct 2006 22:00:55 +0000 (22:00 +0000)]
the code in question is now:

        cmpw cr0, r7, r3
        ble cr0, LBB1_5 ;bb25
LBB1_8: ;bb17
        cmpw cr0, r8, r5
        bgt cr0, LBB1_2 ;bb

which is just as good as crnand.

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

18 years agoDocument getAlignment()
Devang Patel [Fri, 27 Oct 2006 21:58:31 +0000 (21:58 +0000)]
Document getAlignment()

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

18 years agoremove debug code
Chris Lattner [Fri, 27 Oct 2006 21:58:03 +0000 (21:58 +0000)]
remove debug code

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

18 years agoCodegen cond&cond with two branches. This compiles (f.e.) PowerPC/and-branch.ll to:
Chris Lattner [Fri, 27 Oct 2006 21:54:23 +0000 (21:54 +0000)]
Codegen cond&cond with two branches.  This compiles (f.e.) PowerPC/and-branch.ll to:

        cmpwi cr0, r4, 4
        bgt cr0, LBB1_2 ;UnifiedReturnBlock
LBB1_3: ;entry
        cmplwi cr0, r3, 0
        bne cr0, LBB1_2 ;UnifiedReturnBlock

instead of:

        cmpwi cr7, r4, 4
        mfcr r2
        addic r4, r3, -1
        subfe r3, r4, r3
        rlwinm r2, r2, 30, 31, 31
        or r2, r2, r3
        cmplwi cr0, r2, 0
        bne cr0, LBB1_2 ;UnifiedReturnBlock
LBB1_1: ;cond_true

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

18 years agonew testcase
Chris Lattner [Fri, 27 Oct 2006 21:52:39 +0000 (21:52 +0000)]
new testcase

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

18 years agoTurn conditions like x<Y|z==q into multiple blocks.
Chris Lattner [Fri, 27 Oct 2006 21:36:01 +0000 (21:36 +0000)]
Turn conditions like x<Y|z==q  into multiple blocks.

This compiles Regression/CodeGen/X86/or-branch.ll into:

_foo:
        subl $12, %esp
        call L_bar$stub
        movl 20(%esp), %eax
        movl 16(%esp), %ecx
        cmpl $5, %eax
        jl LBB1_1       #cond_true
LBB1_3: #entry
        testl %ecx, %ecx
        jne LBB1_2      #UnifiedReturnBlock
LBB1_1: #cond_true
        call L_bar$stub
        addl $12, %esp
        ret
LBB1_2: #UnifiedReturnBlock
        addl $12, %esp
        ret

instead of:

_foo:
        subl $12, %esp
        call L_bar$stub
        movl 20(%esp), %eax
        movl 16(%esp), %ecx
        cmpl $4, %eax
        setg %al
        testl %ecx, %ecx
        setne %cl
        testb %cl, %al
        jne LBB1_2      #UnifiedReturnBlock
LBB1_1: #cond_true
        call L_bar$stub
        addl $12, %esp
        ret
LBB1_2: #UnifiedReturnBlock
        addl $12, %esp
        ret

And on ppc to:

        cmpwi cr0, r29, 5
        blt cr0, LBB1_1 ;cond_true
LBB1_3: ;entry
        cmplwi cr0, r30, 0
        bne cr0, LBB1_2 ;UnifiedReturnBlock

instead of:

        cmpwi cr7, r4, 4
        mfcr r2
        addic r4, r3, -1
        subfe r30, r4, r3
        rlwinm r29, r2, 30, 31, 31
        and r2, r29, r30
        cmplwi cr0, r2, 0
        bne cr0, LBB1_2 ;UnifiedReturnBlock

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

18 years agonew testcase
Chris Lattner [Fri, 27 Oct 2006 21:32:10 +0000 (21:32 +0000)]
new testcase

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

18 years agoFixed a significant bug where unpcklpd is incorrectly used to extract element 1 from...
Evan Cheng [Fri, 27 Oct 2006 21:08:32 +0000 (21:08 +0000)]
Fixed a significant bug where unpcklpd is incorrectly used to extract element 1 from a v2f64 value.

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

18 years agoAdd a new vextract test case.
Evan Cheng [Fri, 27 Oct 2006 21:05:18 +0000 (21:05 +0000)]
Add a new vextract test case.

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

18 years agoForgot a }
Bill Wendling [Fri, 27 Oct 2006 20:22:04 +0000 (20:22 +0000)]
Forgot a }

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

18 years agoRe-added the part where it tries to remove all global variables first.
Bill Wendling [Fri, 27 Oct 2006 20:18:06 +0000 (20:18 +0000)]
Re-added the part where it tries to remove all global variables first.

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

18 years agoSmallVector append not insert.
Jim Laskey [Fri, 27 Oct 2006 19:38:32 +0000 (19:38 +0000)]
SmallVector append not insert.

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

18 years agoGrrr.
Jim Laskey [Fri, 27 Oct 2006 19:20:12 +0000 (19:20 +0000)]
Grrr.

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

18 years agoTemp patch for missing functionality.
Jim Laskey [Fri, 27 Oct 2006 19:14:16 +0000 (19:14 +0000)]
Temp patch for missing functionality.

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

18 years agoMake the Value and Type methods print a newline so it prints nicely in gdb
Reid Spencer [Fri, 27 Oct 2006 18:58:54 +0000 (18:58 +0000)]
Make the Value and Type methods print a newline so it prints nicely in gdb

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

18 years agoFix for PR968: expand vector sdiv, udiv, srem, urem.
Evan Cheng [Fri, 27 Oct 2006 18:49:08 +0000 (18:49 +0000)]
Fix for PR968: expand vector sdiv, udiv, srem, urem.

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

18 years agoMathExtras isn't in the llvm/ADT directory but in the llvm/Support directory.
Bill Wendling [Fri, 27 Oct 2006 18:47:29 +0000 (18:47 +0000)]
MathExtras isn't in the llvm/ADT directory but in the llvm/Support directory.

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

18 years agoApply editorials.
Jim Laskey [Fri, 27 Oct 2006 18:05:12 +0000 (18:05 +0000)]
Apply editorials.

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

18 years agoImprove cvs ignoring of test results.
Reid Spencer [Fri, 27 Oct 2006 16:43:34 +0000 (16:43 +0000)]
Improve cvs ignoring of test results.

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

18 years agoBreakout folding hash set from SelectionDAGCSEMap.
Jim Laskey [Fri, 27 Oct 2006 16:16:16 +0000 (16:16 +0000)]
Breakout folding hash set from SelectionDAGCSEMap.

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

18 years agoInitialize CStringSection member var.
Reid Spencer [Fri, 27 Oct 2006 16:14:06 +0000 (16:14 +0000)]
Initialize CStringSection member var.

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

18 years agoAdd a run line to this test.
Reid Spencer [Fri, 27 Oct 2006 05:30:23 +0000 (05:30 +0000)]
Add a run line to this test.

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

18 years agoChange load PatFrag to ignore indexed load.
Evan Cheng [Thu, 26 Oct 2006 21:55:50 +0000 (21:55 +0000)]
Change load PatFrag to ignore indexed load.

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

18 years agogetPreIndexedLoad -> getIndexedLoad.
Evan Cheng [Thu, 26 Oct 2006 21:53:40 +0000 (21:53 +0000)]
getPreIndexedLoad -> getIndexedLoad.

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

18 years agoIndexed load / store changes.
Evan Cheng [Thu, 26 Oct 2006 21:52:24 +0000 (21:52 +0000)]
Indexed load / store changes.

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

18 years agoPlace cstrings in .cstring section.
Evan Cheng [Thu, 26 Oct 2006 21:48:57 +0000 (21:48 +0000)]
Place cstrings in .cstring section.

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

18 years agoSpeed up isCString()
Evan Cheng [Thu, 26 Oct 2006 21:48:03 +0000 (21:48 +0000)]
Speed up isCString()

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

18 years agoSave temp. bc files when saveTemps flag is true. Use final output file
Devang Patel [Thu, 26 Oct 2006 20:46:22 +0000 (20:46 +0000)]
Save temp. bc files when saveTemps flag is true. Use final output file
name supplied by linker to construct temp bc file names.

Remove tabs.

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

18 years agoSimplify code a bit by changing instances of:
Reid Spencer [Thu, 26 Oct 2006 19:19:06 +0000 (19:19 +0000)]
Simplify code a bit by changing instances of:
   InsertNewInstBefore(new CastInst(Val, ValTy, Val->GetName()), I)
into:
   InsertCastBefore(Val, ValTy, I)

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

18 years agoPut cstrings in .cstring section when compiling for Mac OS X.
Evan Cheng [Thu, 26 Oct 2006 19:18:18 +0000 (19:18 +0000)]
Put cstrings in .cstring section when compiling for Mac OS X.

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

18 years agoAdded CStringSection.
Evan Cheng [Thu, 26 Oct 2006 19:16:20 +0000 (19:16 +0000)]
Added CStringSection.

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

18 years agoAdd isCString() - returns true if a ConstantArray is a CString.
Evan Cheng [Thu, 26 Oct 2006 19:15:05 +0000 (19:15 +0000)]
Add isCString() - returns true if a ConstantArray is a CString.

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

18 years agoFix Transforms/InstCombine/2006-10-26-VectorReassoc.ll
Chris Lattner [Thu, 26 Oct 2006 18:27:26 +0000 (18:27 +0000)]
Fix Transforms/InstCombine/2006-10-26-VectorReassoc.ll

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

18 years agonew testcase, should not reassoc fp vector
Chris Lattner [Thu, 26 Oct 2006 18:26:53 +0000 (18:26 +0000)]
new testcase, should not reassoc fp vector

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

18 years agoAdd isFPOrFPVector() method, which indicates if a type is either FP or a
Chris Lattner [Thu, 26 Oct 2006 18:22:45 +0000 (18:22 +0000)]
Add isFPOrFPVector() method, which indicates if a type is either FP or a
vector of FP types.

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

18 years agoinitial support for frame pointers
Rafael Espindola [Thu, 26 Oct 2006 13:31:26 +0000 (13:31 +0000)]
initial support for frame pointers

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

18 years agoEnclose a case in { and } so that the pickier compilers don't complain.
Reid Spencer [Thu, 26 Oct 2006 06:17:40 +0000 (06:17 +0000)]
Enclose a case in { and } so that the pickier compilers don't complain.

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

18 years agoFor PR950:
Reid Spencer [Thu, 26 Oct 2006 06:15:43 +0000 (06:15 +0000)]
For PR950:
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.

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

18 years agoFix 2006-10-25-AddSetCC. A relational operator (like setlt) can never
Nick Lewycky [Thu, 26 Oct 2006 02:35:18 +0000 (02:35 +0000)]
Fix 2006-10-25-AddSetCC. A relational operator (like setlt) can never
produce an EQ property.

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

18 years agoHandling of setlt/le/gt/ge is broken at the moment; predsimplify removes
Nick Lewycky [Thu, 26 Oct 2006 02:33:51 +0000 (02:33 +0000)]
Handling of setlt/le/gt/ge is broken at the moment; predsimplify removes
the call the pass2.

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

18 years agoMake the makefile tell us when Intrinsics.gen is being updated.
Reid Spencer [Thu, 26 Oct 2006 01:42:23 +0000 (01:42 +0000)]
Make the makefile tell us when Intrinsics.gen is being updated.

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

18 years agoThis testcase was logically wrong! Fixing, and including the test for the
Nick Lewycky [Thu, 26 Oct 2006 00:51:58 +0000 (00:51 +0000)]
This testcase was logically wrong! Fixing, and including the test for the
mistake that I made in the file too.

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

18 years agoResurrect r1.25.
Nick Lewycky [Wed, 25 Oct 2006 23:48:24 +0000 (23:48 +0000)]
Resurrect r1.25.
Fix and comment the "or", "and" and "xor" transformations.

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

18 years agosimplify code
Chris Lattner [Wed, 25 Oct 2006 22:21:37 +0000 (22:21 +0000)]
simplify code

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

18 years agoNew shuffle test case.
Evan Cheng [Wed, 25 Oct 2006 21:59:00 +0000 (21:59 +0000)]
New shuffle test case.

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

18 years agoDuring vector shuffle lowering, we sometimes commute a vector shuffle to try
Evan Cheng [Wed, 25 Oct 2006 21:49:50 +0000 (21:49 +0000)]
During vector shuffle lowering, we sometimes commute a vector shuffle to try
to match MOVL (movss, movsd, etc.). Don't forget to commute it back and try
unpck* and shufp* if that doesn't pan out.

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

18 years agoX86ISD::PEXTRW 3rd operand type is always target pointer type.
Evan Cheng [Wed, 25 Oct 2006 21:35:05 +0000 (21:35 +0000)]
X86ISD::PEXTRW 3rd operand type is always target pointer type.

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

18 years agohide symbols properly
Chris Lattner [Wed, 25 Oct 2006 21:14:31 +0000 (21:14 +0000)]
hide symbols properly

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

18 years agoRemove -disable-x86-shuffle-opti
Evan Cheng [Wed, 25 Oct 2006 20:48:19 +0000 (20:48 +0000)]
Remove -disable-x86-shuffle-opti

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

18 years agoFix for PR960. Improves bugpoint so that it removes global variable
Bill Wendling [Wed, 25 Oct 2006 18:36:14 +0000 (18:36 +0000)]
Fix for PR960. Improves bugpoint so that it removes global variable
initializers as well. This is only a first pass. It can be slow because
it clones the module for each pass. An obvious improvement is not to do that.

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

18 years agoSupply alignment info to linker through LLVMSymbol.
Devang Patel [Wed, 25 Oct 2006 18:10:07 +0000 (18:10 +0000)]
Supply alignment info to linker through LLVMSymbol.

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

18 years agoturn off tail merging for now
Chris Lattner [Wed, 25 Oct 2006 18:08:50 +0000 (18:08 +0000)]
turn off tail merging for now

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

18 years agobe more aggressive about matching identical instructions.
Chris Lattner [Wed, 25 Oct 2006 18:08:14 +0000 (18:08 +0000)]
be more aggressive about matching identical instructions.

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

18 years agoAllow this to pass on ppc
Chris Lattner [Wed, 25 Oct 2006 16:37:47 +0000 (16:37 +0000)]
Allow this to pass on ppc

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

18 years agoModernize the testcase, allow it to pass on ppc
Chris Lattner [Wed, 25 Oct 2006 16:35:10 +0000 (16:35 +0000)]
Modernize the testcase, allow it to pass on ppc

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

18 years agoTargetData is not subclassed. So no need to have virtual method.
Devang Patel [Tue, 24 Oct 2006 20:48:29 +0000 (20:48 +0000)]
TargetData is not subclassed. So no need to have virtual method.

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

18 years agoTargets should depend on all the intrinsics.td files also, otherwise they
Chris Lattner [Tue, 24 Oct 2006 20:32:44 +0000 (20:32 +0000)]
Targets should depend on all the intrinsics.td files also, otherwise they
will compute a locally wrong numbering for the intrinsics.  This fixes a
nasty issue where the x86 backend started miscompiling stuff in a 'cvs up'd
build after the altivec intrinsics were added.

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

18 years agoMove getPreferredAlignmentLog from AsmPrinter to TargetData
Devang Patel [Tue, 24 Oct 2006 20:32:14 +0000 (20:32 +0000)]
Move getPreferredAlignmentLog from AsmPrinter to TargetData

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

18 years agoexpand ISD::VACOPY
Rafael Espindola [Tue, 24 Oct 2006 20:15:21 +0000 (20:15 +0000)]
expand ISD::VACOPY

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

18 years agoRemoved extraneous semi-colon; this was prevening the grammar file from
John Criswell [Tue, 24 Oct 2006 19:09:48 +0000 (19:09 +0000)]
Removed extraneous semi-colon; this was prevening the grammar file from
bison'ing correctly.

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

18 years agoInstead of hard coding global prefix, use TargetAsmInfo.
Devang Patel [Tue, 24 Oct 2006 18:41:02 +0000 (18:41 +0000)]
Instead of hard coding global prefix, use TargetAsmInfo.
Add LTO destructor.

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

18 years agovisitSwitchCase knows how to insert conditional branches well. Change
Chris Lattner [Tue, 24 Oct 2006 18:07:37 +0000 (18:07 +0000)]
visitSwitchCase knows how to insert conditional branches well.  Change
visitBr to just call visitSwitchCase, eliminating duplicate logic.

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

18 years agoGeneralize CaseBlock a bit more:
Chris Lattner [Tue, 24 Oct 2006 17:57:59 +0000 (17:57 +0000)]
Generalize CaseBlock a bit more:

Rename LHSBB/RHSBB to TrueBB/FalseBB.  Allow the RHS value to be null,
in which case the LHS is treated as a bool.

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

18 years agoupdate comment
Chris Lattner [Tue, 24 Oct 2006 17:41:22 +0000 (17:41 +0000)]
update comment

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

18 years agoFix CodeGen/IA64/ret-0.ll, which has apparently been broken since some of the
Chris Lattner [Tue, 24 Oct 2006 17:09:43 +0000 (17:09 +0000)]
Fix CodeGen/IA64/ret-0.ll, which has apparently been broken since some of the
isel changes happened months ago.

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

18 years agonew testcase
Chris Lattner [Tue, 24 Oct 2006 17:09:20 +0000 (17:09 +0000)]
new testcase

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

18 years agofix warning about missing newline at end of file
Rafael Espindola [Tue, 24 Oct 2006 17:07:11 +0000 (17:07 +0000)]
fix warning about missing newline at end of file

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

18 years agogeneralize 'CaseBlock'. It really allows any comparison to be inserted.
Chris Lattner [Tue, 24 Oct 2006 17:03:35 +0000 (17:03 +0000)]
generalize 'CaseBlock'.  It really allows any comparison to be inserted.

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

18 years agoimplement uncond branch insertion, mark branches with isBranch.
Chris Lattner [Tue, 24 Oct 2006 16:47:57 +0000 (16:47 +0000)]
implement uncond branch insertion, mark branches with isBranch.

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

18 years agoimplement uncond branch insertion for the branch folding pass
Chris Lattner [Tue, 24 Oct 2006 16:44:55 +0000 (16:44 +0000)]
implement uncond branch insertion for the branch folding pass

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

18 years agoimplement uncond branch insertion so alpha works work branchfolding.
Chris Lattner [Tue, 24 Oct 2006 16:41:36 +0000 (16:41 +0000)]
implement uncond branch insertion so alpha works work branchfolding.

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

18 years agoimplement uncond branch insertion for sparc to fix regressions from last night
Chris Lattner [Tue, 24 Oct 2006 16:39:19 +0000 (16:39 +0000)]
implement uncond branch insertion for sparc to fix regressions from last night
due to branchfolding

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

18 years agonew bad case
Chris Lattner [Tue, 24 Oct 2006 16:12:47 +0000 (16:12 +0000)]
new bad case

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

18 years agoDon't do dead block elimination in fast mode.
Jim Laskey [Tue, 24 Oct 2006 16:11:49 +0000 (16:11 +0000)]
Don't do dead block elimination in fast mode.

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

18 years agofix assert comment
Rafael Espindola [Tue, 24 Oct 2006 14:47:28 +0000 (14:47 +0000)]
fix assert comment

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

18 years agoLinearScanner hotspot.
Jim Laskey [Tue, 24 Oct 2006 14:35:25 +0000 (14:35 +0000)]
LinearScanner hotspot.

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

18 years agoTighter data structure for deleted debug labels.
Jim Laskey [Tue, 24 Oct 2006 11:50:43 +0000 (11:50 +0000)]
Tighter data structure for deleted debug labels.

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

18 years agoFix Transforms/ScalarRepl/2006-10-23-PointerUnionCrash.ll
Chris Lattner [Tue, 24 Oct 2006 06:26:32 +0000 (06:26 +0000)]
Fix Transforms/ScalarRepl/2006-10-23-PointerUnionCrash.ll

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

18 years agoNew testcase that crashes scalarrepl
Chris Lattner [Tue, 24 Oct 2006 06:26:08 +0000 (06:26 +0000)]
New testcase that crashes scalarrepl

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

18 years agomove single basic blocks that are neither fallen into nor fall out of into
Chris Lattner [Tue, 24 Oct 2006 01:12:32 +0000 (01:12 +0000)]
move single basic blocks that are neither fallen into nor fall out of into
a place more useful.  In particular, if we can put them in a place where code
will be able to fall into it, do so.  Otherwise, put it in a place it can fall
through into a successor.  Otherwise, if preventing a fallthrough, move to the
end of the function, out of the way.

This deletes several hundred unconditional branches from spass.

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

18 years agoAdd intrinsics for the rest of the DCB* instructions.
Chris Lattner [Tue, 24 Oct 2006 01:08:42 +0000 (01:08 +0000)]
Add intrinsics for the rest of the DCB* instructions.

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

18 years agoadd missing dcb* intrinsics
Chris Lattner [Tue, 24 Oct 2006 01:07:39 +0000 (01:07 +0000)]
add missing dcb* intrinsics

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

18 years agoRevert back to r1.21, which was the last revision of predsimplify that
Chris Lattner [Tue, 24 Oct 2006 00:36:21 +0000 (00:36 +0000)]
Revert back to r1.21, which was the last revision of predsimplify that
passes llvm-gcc bootstrap.

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

18 years agoadd moveBefore/moveAfter helper methods
Chris Lattner [Tue, 24 Oct 2006 00:02:26 +0000 (00:02 +0000)]
add moveBefore/moveAfter helper methods

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

18 years agoFix typo. Add more comment. Avoid extra hash_map search.
Devang Patel [Mon, 23 Oct 2006 23:57:53 +0000 (23:57 +0000)]
Fix typo. Add more comment. Avoid extra hash_map search.

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

18 years agoadd two helper methods
Chris Lattner [Mon, 23 Oct 2006 23:35:35 +0000 (23:35 +0000)]
add two helper methods

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

18 years agoAdd removeModule().
Devang Patel [Mon, 23 Oct 2006 23:12:26 +0000 (23:12 +0000)]
Add removeModule().

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

18 years agoEnable tail merging by default.
Chris Lattner [Mon, 23 Oct 2006 22:10:12 +0000 (22:10 +0000)]
Enable tail merging by default.

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

18 years agoUpdate test case.
Evan Cheng [Mon, 23 Oct 2006 21:47:11 +0000 (21:47 +0000)]
Update test case.

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

18 years agoimplement STRB and STRH
Rafael Espindola [Mon, 23 Oct 2006 20:34:27 +0000 (20:34 +0000)]
implement STRB and STRH

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

18 years agoexpand ISD::MEMSET
Rafael Espindola [Mon, 23 Oct 2006 20:08:22 +0000 (20:08 +0000)]
expand ISD::MEMSET

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

18 years agoMake these hack flags hidden, like other dsa hack flags
Andrew Lenharth [Mon, 23 Oct 2006 19:55:24 +0000 (19:55 +0000)]
Make these hack flags hidden, like other dsa hack flags

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

18 years agoRevert the aggressive inlining for now, it doesn't handle external correctly
Andrew Lenharth [Mon, 23 Oct 2006 19:53:37 +0000 (19:53 +0000)]
Revert the aggressive inlining for now, it doesn't handle external correctly

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

18 years agochange this back
Andrew Lenharth [Mon, 23 Oct 2006 19:52:54 +0000 (19:52 +0000)]
change this back

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

18 years agorestore these tests
Andrew Lenharth [Mon, 23 Oct 2006 19:52:27 +0000 (19:52 +0000)]
restore these tests

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

18 years agoHandle fallout from the recent branch-on-undef changes. This fixes
Chris Lattner [Mon, 23 Oct 2006 18:57:02 +0000 (18:57 +0000)]
Handle fallout from the recent branch-on-undef changes.  This fixes
Prolangs-C/agrep and SCCP/2006-10-23-IPSCCP-Crash.ll

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

18 years agonew testcase
Chris Lattner [Mon, 23 Oct 2006 18:54:35 +0000 (18:54 +0000)]
new testcase

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

18 years agoMinor tweak. Instead of generating:
Chris Lattner [Mon, 23 Oct 2006 18:38:22 +0000 (18:38 +0000)]
Minor tweak.  Instead of generating:

        movl 32(%esp), %eax
        cmpl $1, %eax
        je LBB1_1       #bb
LBB1_4: #entry
        cmpl $2, %eax
        je LBB1_2       #bb2
        jmp LBB1_3      #UnifiedReturnBlock
LBB1_1: #bb

notice that we would miss the fall through and emit this instead:

        movl 32(%esp), %eax
        cmpl $2, %eax
        je LBB1_2       #bb2
LBB1_4: #entry
        cmpl $1, %eax
        jne LBB1_3      #UnifiedReturnBlock
LBB1_1: #bb

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