bolt/deps/llvm-18.1.8/llvm/test/Transforms/SCCP/global-alias-constprop.ll
2025-02-14 19:21:04 +01:00

11 lines
304 B
LLVM

; RUN: opt < %s -passes=sccp -S | FileCheck %s
@0 = private unnamed_addr constant [2 x i32] [i32 -1, i32 1]
@"\01??_7A@@6B@" = unnamed_addr alias i32, getelementptr inbounds ([2 x i32], ptr @0, i32 0, i32 1)
; CHECK: ret i32 1
define i32 @main() {
%a = load i32, ptr @"\01??_7A@@6B@"
ret i32 %a
}