File: 2002-08-17-WorkListTest.ll

package info (click to toggle)
llvm-3.0 3.0-10
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 75,412 kB
  • sloc: cpp: 468,043; asm: 109,345; ansic: 13,782; sh: 12,935; ml: 4,716; python: 4,351; perl: 2,096; makefile: 1,905; pascal: 1,578; exp: 389; xml: 283; lisp: 187; csh: 117
file content (12 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
; This testcase tests that a worklist is being used, and that globals can be 
; removed if they are the subject of a constexpr and ConstantPointerRef

; RUN: opt < %s -globaldce -S | not grep global

@t0 = internal global [4 x i8] c"foo\00"                ; <[4 x i8]*> [#uses=1]
@t1 = internal global [4 x i8] c"bar\00"                ; <[4 x i8]*> [#uses=1]
@s1 = internal global [1 x i8*] [ i8* getelementptr ([4 x i8]* @t0, i32 0, i32 0) ]             ; <[1 x i8*]*> [#uses=0]
@s2 = internal global [1 x i8*] [ i8* getelementptr ([4 x i8]* @t1, i64 0, i64 0) ]             ; <[1 x i8*]*> [#uses=0]
@b = internal global i32* @a            ; <i32**> [#uses=0]
@a = internal global i32 7              ; <i32*> [#uses=1]