You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
; RUN: opt -S -gvn < %s | FileCheck %s
|
|
define i32* @test1(i32* %a) {
|
|
%x1 = getelementptr inbounds i32, i32* %a, i32 10
|
|
%x2 = getelementptr i32, i32* %a, i32 10
|
|
ret i32* %x2
|
|
; CHECK-LABEL: @test1(
|
|
; CHECK: %[[x:.*]] = getelementptr i32, i32* %a, i32 10
|
|
; CHECK: ret i32* %[[x]]
|
|
}
|