llvm/test/Transforms/InstCombine/pr20079.ll
David Majnemer 76735fbd2e IR: Fold away compares between GV GEPs and GVs
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
2014-07-04 22:05:26 +00:00

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
}