[llvm-commits] [llvm] r65315 - /llvm/trunk/test/DebugInfo/2009-02-23-InstCombine.ll

Bill Wendling isanbard at gmail.com
Mon Feb 23 15:16:35 PST 2009


Hi Zhou,

Please try to check the testcase in with the original revision. :-)

-bw

On Mon, Feb 23, 2009 at 2:15 AM, Zhou Sheng <zhousheng00 at gmail.com> wrote:
> Author: sheng
> Date: Mon Feb 23 04:15:04 2009
> New Revision: 65315
>
> URL: http://llvm.org/viewvc/llvm-project?rev=65315&view=rev
> Log:
> Add test case for checkin @r65314.
>
> Added:
>    llvm/trunk/test/DebugInfo/2009-02-23-InstCombine.ll
>
> Added: llvm/trunk/test/DebugInfo/2009-02-23-InstCombine.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/2009-02-23-InstCombine.ll?rev=65315&view=auto
>
> ==============================================================================
> --- llvm/trunk/test/DebugInfo/2009-02-23-InstCombine.ll (added)
> +++ llvm/trunk/test/DebugInfo/2009-02-23-InstCombine.ll Mon Feb 23 04:15:04 2009
> @@ -0,0 +1,41 @@
> +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep stoppoint | count 3
> +target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
> +target triple = "i386-pc-linux-gnu"
> +       %llvm.dbg.anchor.type = type { i32, i32 }
> +       %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
> +       %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8*, i32 }
> +       %llvm.dbg.composite.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, { }*, { }*, i32 }
> +       %llvm.dbg.subprogram.type = type { i32, { }*, { }*, i8*, i8*, i8*, { }*, i32, { }*, i1, i1 }
> +       %llvm.dbg.variable.type = type { i32, { }*, i8*, { }*, i32, { }* }
> + at llvm.dbg.compile_units = linkonce constant %llvm.dbg.anchor.type { i32 458752, i32 17 }, section "llvm.metadata"              ; <%llvm.dbg.anchor.type*> [#uses=1]
> + at .str = internal constant [8 x i8] c"brach.c\00", section "llvm.metadata"              ; <[8 x i8]*> [#uses=1]
> + at .str1 = internal constant [38 x i8] c"/developer/home2/zsth/test/debug/tmp/\00", section "llvm.metadata"              ; <[38 x i8]*> [#uses=1]
> + at .str2 = internal constant [52 x i8] c"4.2.1 (Based on Apple Inc. build 5641) (LLVM build)\00", section "llvm.metadata"                ; <[52 x i8]*> [#uses=1]
> + at llvm.dbg.compile_unit = internal constant %llvm.dbg.compile_unit.type { i32 458769, { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.compile_units to { }*), i32 1, i8* getelementptr ([8 x i8]* @.str, i32 0, i32 0), i8* getelementptr ([38 x i8]* @.str1, i32 0, i32 0), i8* getelementptr ([52 x i8]* @.str2, i32 0, i32 0), i1 true, i1 false, i8* null, i32 -1 }, section "llvm.metadata"         ; <%llvm.dbg.compile_unit.type*> [#uses=1]
> + at .str3 = internal constant [4 x i8] c"int\00", section "llvm.metadata"         ; <[4 x i8]*> [#uses=1]
> + at llvm.dbg.basictype = internal constant %llvm.dbg.basictype.type { i32 458788, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i8* getelementptr ([4 x i8]* @.str3, i32 0, i32 0), { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i32 0, i64 32, i64 32, i64 0, i32 0, i32 5 }, section "llvm.metadata"               ; <%llvm.dbg.basictype.type*> [#uses=1]
> + at llvm.dbg.array = internal constant [2 x { }*] [{ }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*), { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*)], section "llvm.metadata"           ; <[2 x { }*]*> [#uses=1]
> + at llvm.dbg.composite = internal constant %llvm.dbg.composite.type { i32 458773, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i8* null, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i32 0, i64 0, i64 0, i64 0, i32 0, { }* null, { }* bitcast ([2 x { }*]* @llvm.dbg.array to { }*), i32 0 }, section "llvm.metadata"            ; <%llvm.dbg.composite.type*> [#uses=1]
> + at llvm.dbg.subprograms = linkonce constant %llvm.dbg.anchor.type { i32 458752, i32 46 }, section "llvm.metadata"                ; <%llvm.dbg.anchor.type*> [#uses=1]
> + at .str4 = internal constant [4 x i8] c"foo\00", section "llvm.metadata"         ; <[4 x i8]*> [#uses=1]
> + at llvm.dbg.subprogram = internal constant %llvm.dbg.subprogram.type { i32 458798, { }* bitcast (%llvm.dbg.anchor.type* @llvm.dbg.subprograms to { }*), { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i8* getelementptr ([4 x i8]* @.str4, i32 0, i32 0), i8* getelementptr ([4 x i8]* @.str4, i32 0, i32 0), i8* null, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i32 1, { }* bitcast (%llvm.dbg.composite.type* @llvm.dbg.composite to { }*), i1 false, i1 true }, section "llvm.metadata"              ; <%llvm.dbg.subprogram.type*> [#uses=1]
> + at .str5 = internal constant [2 x i8] c"x\00", section "llvm.metadata"           ; <[2 x i8]*> [#uses=1]
> + at llvm.dbg.variable = internal constant %llvm.dbg.variable.type { i32 459009, { }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram to { }*), i8* getelementptr ([2 x i8]* @.str5, i32 0, i32 0), { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*), i32 1, { }* bitcast (%llvm.dbg.basictype.type* @llvm.dbg.basictype to { }*) }, section "llvm.metadata"            ; <%llvm.dbg.variable.type*> [#uses=0]
> +
> +define i32 @foo(i32 %x) nounwind {
> +entry:
> +       %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
> +       call void @llvm.dbg.stoppoint(i32 2, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*))
> +       %0 = icmp sgt i32 %x, 5         ; <i1> [#uses=1]
> +       %.0 = select i1 %0, i32 %x, i32 0               ; <i32> [#uses=1]
> +       call void @llvm.dbg.stoppoint(i32 5, i32 0, { }* bitcast (%llvm.dbg.compile_unit.type* @llvm.dbg.compile_unit to { }*))
> +       ret i32 %.0
> +}
> +
> +declare void @llvm.dbg.func.start({ }*) nounwind
> +
> +declare void @llvm.dbg.declare({ }*, { }*) nounwind
> +
> +declare void @llvm.dbg.stoppoint(i32, i32, { }*) nounwind
> +
> +declare void @llvm.dbg.region.end({ }*) nounwind
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list