Mercurial > hg > CbC > CbC_llvm
view llvm/test/Transforms/NewGVN/pr28562.ll @ 201:a96fbbdf2d0f
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 04 Jun 2021 21:07:06 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
; RUN: opt -S -newgvn < %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]] }