Home | History | Annotate | Download | only in NewGVN
      1 ; RUN: opt -S -newgvn < %s | FileCheck %s
      2 define i32* @test1(i32* %a) {
      3   %x1 = getelementptr inbounds i32, i32* %a, i32 10
      4   %x2 = getelementptr i32, i32* %a, i32 10
      5   ret i32* %x2
      6 ; CHECK-LABEL: @test1(
      7 ; CHECK: %[[x:.*]] = getelementptr i32, i32* %a, i32 10
      8 ; CHECK: ret i32* %[[x]]
      9 }
     10