xref: /aosp_15_r20/external/llvm/test/Transforms/GVN/2007-07-25-InfiniteLoop.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -basicaa -gvn -S | not grep "tmp10 ="
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker	%struct.INT2 = type { i32, i32 }
4*9880d681SAndroid Build Coastguard Worker@blkshifts = external global %struct.INT2*		; <%struct.INT2**> [#uses=2]
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i32 @xcompact() {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker	store %struct.INT2* null, %struct.INT2** @blkshifts, align 4
9*9880d681SAndroid Build Coastguard Worker	br label %bb
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerbb:		; preds = %bb, %entry
12*9880d681SAndroid Build Coastguard Worker	%tmp10 = load %struct.INT2*, %struct.INT2** @blkshifts, align 4		; <%struct.INT2*> [#uses=0]
13*9880d681SAndroid Build Coastguard Worker	br label %bb
14*9880d681SAndroid Build Coastguard Worker}
15