• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -gvn
2; PR2032
3
4define i32 @sscal(i32 %n, double %sa1, float* %sx, i32 %incx) {
5entry:
6	%sx_addr = alloca float*		; <float**> [#uses=3]
7	store float* %sx, float** %sx_addr, align 4
8	br label %bb33
9
10bb:		; preds = %bb33
11	%tmp27 = load float** %sx_addr, align 4		; <float*> [#uses=1]
12	store float 0.000000e+00, float* %tmp27, align 4
13	store float* null, float** %sx_addr, align 4
14	br label %bb33
15
16bb33:		; preds = %bb, %entry
17	br i1 false, label %bb, label %return
18
19return:		; preds = %bb33
20	%retval59 = load i32* null, align 4		; <i32> [#uses=1]
21	ret i32 %retval59
22}
23