llvm-mirror/test/Transforms/SCCP/definite-initializer.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

12 lines
318 B
LLVM

; RUN: opt -S -ipsccp < %s | FileCheck %s
@d = internal externally_initialized global i32 0, section ".openbsd.randomdata", align 4
; CHECK-LABEL: @test1(
define i32 @test1() {
entry:
%load = load i32, i32* @d, align 4
ret i32 %load
; CHECK: %[[load:.*]] = load i32, i32* @d, align 4
; CHECK: ret i32 %[[load]]
}