mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
dbcb882a86
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 llvm-svn: 212360
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
|
|
}
|