mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
This commit is a 4x squash commit consisting of 4x functions converted to use FileCheck instead of grep.
Messages: Converted test case trivial_codegen_tailcall.ll to use FileCheck. Converted test return_constant.ll to use FileCheck instead of grep. Converted test reorder_load.ll to use FileCheck instead of grep. Converted test intervening-inst.ll to use FileCheck instead of grep. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -tailcallelim -S | not grep call
|
||||
; RUN: opt < %s -tailcallelim -S | FileCheck %s
|
||||
; PR4323
|
||||
|
||||
; Several cases where tail call elimination should move the load above the call,
|
||||
@@ -21,6 +21,7 @@ if: ; preds = %entry
|
||||
|
||||
else: ; preds = %entry
|
||||
%tmp7 = add i32 %start_arg, 1 ; <i32> [#uses=1]
|
||||
; CHECK-NOT: call
|
||||
%tmp8 = call fastcc i32 @raise_load_1(i32* %a_arg, i32 %a_len_arg, i32 %tmp7) ; <i32> [#uses=1]
|
||||
%tmp9 = load i32* %a_arg ; <i32> [#uses=1]
|
||||
%tmp10 = add i32 %tmp9, %tmp8 ; <i32> [#uses=1]
|
||||
@@ -47,6 +48,7 @@ unwind: ; preds = %else
|
||||
|
||||
recurse: ; preds = %else
|
||||
%tmp7 = add i32 %start_arg, 1 ; <i32> [#uses=1]
|
||||
; CHECK-NOT: call
|
||||
%tmp8 = call fastcc i32 @raise_load_2(i32* %a_arg, i32 %a_len_arg, i32 %tmp7) ; <i32> [#uses=1]
|
||||
%tmp9 = load i32* @global ; <i32> [#uses=1]
|
||||
%tmp10 = add i32 %tmp9, %tmp8 ; <i32> [#uses=1]
|
||||
@@ -66,6 +68,7 @@ if: ; preds = %entry
|
||||
|
||||
else: ; preds = %entry
|
||||
%tmp7 = add i32 %start_arg, 1 ; <i32> [#uses=1]
|
||||
; CHECK-NOT: call
|
||||
%tmp8 = call fastcc i32 @raise_load_3(i32* %a_arg, i32 %a_len_arg, i32 %tmp7) ; <i32> [#uses=1]
|
||||
%tmp9 = load i32* @extern_weak_global ; <i32> [#uses=1]
|
||||
%tmp10 = add i32 %tmp9, %tmp8 ; <i32> [#uses=1]
|
||||
@@ -94,6 +97,7 @@ unwind: ; preds = %else
|
||||
recurse: ; preds = %else
|
||||
%tmp7 = add i32 %start_arg, 1 ; <i32> [#uses=1]
|
||||
%first = load i32* %a_arg ; <i32> [#uses=1]
|
||||
; CHECK-NOT: call
|
||||
%tmp8 = call fastcc i32 @raise_load_4(i32* %a_arg, i32 %first, i32 %tmp7) ; <i32> [#uses=1]
|
||||
%second = load i32* %a_arg ; <i32> [#uses=1]
|
||||
%tmp10 = add i32 %second, %tmp8 ; <i32> [#uses=1]
|
||||
|
Reference in New Issue
Block a user