blob: f2e5e6745b48f4f625d89b7354e12b01fc9c8659 (
plain)
1
2
3
4
5
6
7
8
9
10
|
; RUN: llvm-as < %s | opt -instcombine -gvn -instcombine | \
; RUN: llvm-dis | not grep getelementptr
define i1 @test(i32* %A) {
%B = getelementptr i32* %A, i32 1 ; <i32*> [#uses=1]
%C = getelementptr i32* %A, i64 1 ; <i32*> [#uses=1]
%V = icmp eq i32* %B, %C ; <i1> [#uses=1]
ret i1 %V
}
|