- Sep 08, 2006
-
-
Jim Laskey authored
llvm-svn: 30162
-
Jim Laskey authored
llvm-svn: 30161
-
- Sep 07, 2006
-
-
Chris Lattner authored
For Transforms/TailDup/if-tail-dup.ll, f.e., it produces: _foo: movl 8(%esp), %eax movl 4(%esp), %ecx testl $1, %ecx je LBB1_2 #cond_next LBB1_1: #cond_true movl $1, (%eax) LBB1_2: #cond_next testl $2, %ecx je LBB1_4 #cond_next10 LBB1_3: #cond_true6 movl $1, 4(%eax) LBB1_4: #cond_next10 testl $4, %ecx je LBB1_6 #cond_next18 LBB1_5: #cond_true14 movl $1, 8(%eax) LBB1_6: #cond_next18 testl $8, %ecx je LBB1_8 #return LBB1_7: #cond_true22 movl $1, 12(%eax) ret LBB1_8: #return ret instead of: _foo: movl 4(%esp), %eax testl $2, %eax sete %cl movl 8(%esp), %edx testl $1, %eax je LBB1_2 #cond_next LBB1_1: #cond_true movl $1, (%edx) testb %cl, %cl jne LBB1_4 #cond_next10 jmp LBB1_3 #cond_true6 LBB1_2: #cond_next testb %cl, %cl jne LBB1_4 #cond_next10 LBB1_3: #cond_true6 movl $1, 4(%edx) testl $4, %eax je LBB1_6 #cond_next18 jmp LBB1_5 #cond_true14 LBB1_4: #cond_next10 testl $4, %eax je LBB1_6 #cond_next18 LBB1_5: #cond_true14 movl $1, 8(%edx) testl $8, %eax je LBB1_8 #return jmp LBB1_7 #cond_true22 LBB1_6: #cond_next18 testl $8, %eax je LBB1_8 #return LBB1_7: #cond_true22 movl $1, 12(%edx) ret LBB1_8: #return ret llvm-svn: 30158
-
Chris Lattner authored
using test, which provides nice simplifications like: - movl %edi, %ecx - andl $2, %ecx - cmpl $0, %ecx + testl $2, %edi je LBB1_11 #cond_next90 There are a couple of dagiselemitter deficiencies that this exposes, they will be handled later. llvm-svn: 30156
-
Chris Lattner authored
llvm-svn: 30155
-
Evan Cheng authored
llvm-svn: 30152
-
Evan Cheng authored
llvm-svn: 30151
-
Chris Lattner authored
llvm-svn: 30149
-
Jim Laskey authored
llvm-svn: 30146
-
Chris Lattner authored
too many phi operands when lowering a switch to branches in some cases. llvm-svn: 30142
-
Evan Cheng authored
llvm-svn: 30140
-
- Sep 06, 2006
-
-
Evan Cheng authored
llvm-svn: 30135
-
Evan Cheng authored
llvm-svn: 30134
-
Jim Laskey authored
llvm-svn: 30131
-
Jim Laskey authored
llvm-svn: 30127
-
Jim Laskey authored
llvm-svn: 30126
-
Rafael Espindola authored
llvm-svn: 30125
-
- Sep 05, 2006
-
-
Evan Cheng authored
llvm-svn: 30122
-
Chris Lattner authored
llvm-svn: 30121
-
Chris Lattner authored
llvm-svn: 30118
-
Chris Lattner authored
llvm-svn: 30117
-
Chris Lattner authored
lowerinvoke regtests. llvm-svn: 30115
-
Chris Lattner authored
llvm-svn: 30114
-
Evan Cheng authored
llvm-svn: 30113
-
Evan Cheng authored
llvm-svn: 30112
-
Chris Lattner authored
adds assertions that check to make sure every operand gets emitted. llvm-svn: 30110
-
Chris Lattner authored
def operand or a use operand. llvm-svn: 30109
-
Chris Lattner authored
actually *removes* one of the operands, instead of just assigning both operands the same register. This make reasoning about instructions unnecessarily complex, because you need to know if you are before or after register allocation to match up operand #'s with the target description file. Changing this also gets rid of a bunch of hacky code in various places. This patch also includes changes to fold loads into cmp/test instructions in the X86 backend, along with a significant simplification to the X86 spill folding code. llvm-svn: 30108
-
Andrew Lenharth authored
llvm-svn: 30107
-
- Sep 04, 2006
-
-
Rafael Espindola authored
llvm-svn: 30103
-
Chris Lattner authored
llvm-svn: 30102
-
Chris Lattner authored
llvm-svn: 30099
-
Chris Lattner authored
llvm-svn: 30098
-
Duraid Madina authored
llvm-svn: 30097
-
Duraid Madina authored
Call these from your backend to enjoy setjmp/longjmp goodness, see lib/Target/IA64/IA64ISelLowering.cpp for an example llvm-svn: 30095
-
Chris Lattner authored
llvm-svn: 30082
-
Chris Lattner authored
This pass: 1. Splits TargetMachine into TargetMachine (generic targets, can be implemented any way, like the CBE) and LLVMTargetMachine (subclass of TM that is used by things using libcodegen and other support). 2. Instead of having each target fully populate the passmgr for file or JIT output, move all this to common code, and give targets hooks they can implement. 3. Commonalize the target population stuff between file emission and JIT emission. 4. All (native code) codegen stuff now happens in a FunctionPassManager, which paves the way for "fast -O0" stuff in the CFE later, and now LLC could lazily stream .bc files from disk to use less memory. 5. There are now many fewer #includes and the targets don't depend on the scalar xforms or libanalysis anymore (but codegen does). 6. Changing common code generator pass ordering stuff no longer requires touching all targets. 7. The JIT now has the option of "-fast" codegen or normal optimized codegen, which is now orthogonal to the fact that JIT'ing is being done. llvm-svn: 30081
-
Chris Lattner authored
llvm-svn: 30080
-
Chris Lattner authored
the FunctionPassManager redo this for each function. llvm-svn: 30079
-
Chris Lattner authored
llvm-svn: 30078
-