Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/CallSiteSplitting/callsite-split.ll
; RUN: opt < %s -callsite-splitting -inline -instcombine -jump-threading -S | FileCheck %s | ; RUN: opt < %s -callsite-splitting -inline -instcombine -jump-threading -S | FileCheck %s | ||||
; RUN: opt < %s -passes='function(callsite-splitting),cgscc(inline),function(instcombine,jump-threading)' -S | FileCheck %s | ; RUN: opt < %s -passes='function(callsite-splitting),cgscc(inline),function(instcombine,jump-threading)' -S | FileCheck %s | ||||
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" | target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" | ||||
target triple = "aarch64-linaro-linux-gnueabi" | target triple = "aarch64-linaro-linux-gnueabi" | ||||
%struct.bitmap = type { i32, %struct.bitmap* } | %struct.bitmap = type { i32, %struct.bitmap* } | ||||
;CHECK-LABEL: @caller | ;CHECK-LABEL: @caller | ||||
;CHECK-LABEL: Top.split: | ;CHECK-LABEL: Top.split: | ||||
;CHECK: call void @callee(%struct.bitmap* null, %struct.bitmap* null, %struct.bitmap* %b_elt, i1 false) | ;CHECK: call void @callee(%struct.bitmap* null, %struct.bitmap* null, %struct.bitmap* %b_elt, i1 false) | ||||
;CHECK-LABEL: NextCond: | ;CHECK-LABEL: NextCond: | ||||
;CHECK: br {{.*}} label %callee.exit | ;CHECK: br {{.*}} label %Cond.i | ||||
;CHECK-LABEL: callee.exit: | ;CHECK-LABEL: Cond.i: | ||||
;CHECK: call void @dummy2(%struct.bitmap* %a_elt) | ;CHECK-NEXT: call void @dummy2(%struct.bitmap* %a_elt) | ||||
define void @caller(i1 %c, %struct.bitmap* %a_elt, %struct.bitmap* %b_elt) { | define void @caller(i1 %c, %struct.bitmap* %a_elt, %struct.bitmap* %b_elt) { | ||||
entry: | entry: | ||||
br label %Top | br label %Top | ||||
Top: | Top: | ||||
%tobool1 = icmp eq %struct.bitmap* %a_elt, null | %tobool1 = icmp eq %struct.bitmap* %a_elt, null | ||||
br i1 %tobool1, label %CallSiteBB, label %NextCond | br i1 %tobool1, label %CallSiteBB, label %NextCond | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |