
The legacy PM is deprecated, so update a bunch of lit tests running opt to use the new PM syntax when specifying the pipeline. In this patch focus has been put on test cases for ConstantMerge, ConstraintElimination, CorrelatedValuePropagation, GlobalDCE, GlobalOpt, SCCP, TailCallElim and PredicateInfo. Differential Revision: https://reviews.llvm.org/D114516
12 lines
237 B
LLVM
12 lines
237 B
LLVM
; RUN: opt < %s -passes=sccp -S | grep "ret i32 %Z"
|
|
; rdar://5778210
|
|
|
|
declare {i32, i32} @bar(i32 %A)
|
|
|
|
define i32 @foo() {
|
|
%X = call {i32, i32} @bar(i32 17)
|
|
%Y = extractvalue {i32, i32} %X, 0
|
|
%Z = add i32 %Y, %Y
|
|
ret i32 %Z
|
|
}
|