Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
test/CodeGen/X86/lea-opt-cse2.ll
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
; X86-NEXT: movl %edi, 12(%eax) | ; X86-NEXT: movl %edi, 12(%eax) | ||||
; X86-NEXT: decl %ecx | ; X86-NEXT: decl %ecx | ||||
; X86-NEXT: jne .LBB0_1 | ; X86-NEXT: jne .LBB0_1 | ||||
; X86-NEXT: # BB#2: # %exit | ; X86-NEXT: # BB#2: # %exit | ||||
; X86-NEXT: addl %esi, %edx | ; X86-NEXT: addl %esi, %edx | ||||
; X86-NEXT: leal 1(%esi,%edx), %ecx | ; X86-NEXT: leal 1(%esi,%edx), %ecx | ||||
; X86-NEXT: movl %ecx, 16(%eax) | ; X86-NEXT: movl %ecx, 16(%eax) | ||||
; X86-NEXT: popl %esi | ; X86-NEXT: popl %esi | ||||
; X86-NEXT: .Lcfi4: | |||||
; X86-NEXT: .cfi_def_cfa_offset 8 | |||||
; X86-NEXT: popl %edi | ; X86-NEXT: popl %edi | ||||
; X86-NEXT: .Lcfi5: | |||||
; X86-NEXT: .cfi_def_cfa_offset 4 | |||||
; X86-NEXT: retl | ; X86-NEXT: retl | ||||
entry: | entry: | ||||
br label %loop | br label %loop | ||||
loop: | loop: | ||||
%iter = phi i32 [%n ,%entry ] ,[ %iter.ctr ,%loop] | %iter = phi i32 [%n ,%entry ] ,[ %iter.ctr ,%loop] | ||||
%h0 = getelementptr inbounds %struct.SA, %struct.SA* %ctx, i64 0, i32 0 | %h0 = getelementptr inbounds %struct.SA, %struct.SA* %ctx, i64 0, i32 0 | ||||
%0 = load i32, i32* %h0, align 8 | %0 = load i32, i32* %h0, align 8 | ||||
Show All 15 Lines |