Mercurial > hg > CbC > CbC_llvm
view llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line source
; RUN: opt -passes=constmerge -S < %s | FileCheck %s ; PR8978 declare i32 @zed(%struct.foobar*, %struct.foobar*) %struct.foobar = type { i32 } ; CHECK: bar.d @bar.d = unnamed_addr constant %struct.foobar zeroinitializer, align 4 ; CHECK-NOT: foo.d @foo.d = internal constant %struct.foobar zeroinitializer, align 4 define i32 @main() nounwind ssp { entry: ; CHECK: bar.d %call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d) nounwind ret i32 0 }