1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/Transforms/Internalize/2009-01-05-InternalizeAliases.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

18 lines
365 B
LLVM

; RUN: opt < %s -internalize -internalize-public-api-list main -S | FileCheck %s
@A = global i32 0
; CHECK: @A = internal global i32 0
@B = alias i32, i32* @A
; CHECK: @B = internal alias i32, i32* @A
@C = alias i32, i32* @A
; CHECK: @C = internal alias i32, i32* @A
define i32 @main() {
%tmp = load i32, i32* @C
ret i32 %tmp
}
; CHECK: define i32 @main() {