mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 13:35:10 +00:00
76735fbd2e
A GEP of a non-weak global variable will not be equivalent to another non-weak global variable or a GEP of such a variable. Differential Revision: http://reviews.llvm.org/D4238 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212360 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
224 B
LLVM
10 lines
224 B
LLVM
; RUN: opt -S -instcombine < %s | FileCheck %s
|
|
@b = internal global [1 x i32] zeroinitializer, align 4
|
|
@c = internal global i32 0, align 4
|
|
|
|
; CHECK-LABEL: @fn1
|
|
; CHECK-NEXT: ret i32 0
|
|
define i32 @fn1(i32 %a) {
|
|
ret i32 0
|
|
}
|