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
15 lines
402 B
LLVM
15 lines
402 B
LLVM
; RUN: opt < %s -data-layout="E-p:32:32" -passes=ipsccp -S | FileCheck %s
|
|
|
|
@j = internal global i32 undef, align 4
|
|
|
|
; Make sure we do not mark loads from undef as overdefined.
|
|
define i32 @test5(i32 %b) {
|
|
; CHECK-LABEL: define i32 @test5(i32 %b)
|
|
; CHECK-NEXT: %add = add nsw i32 undef, %b
|
|
; CHECK-NEXT: ret i32 %add
|
|
;
|
|
%l = load i32, i32* @j, align 4
|
|
%add = add nsw i32 %l, %b
|
|
ret i32 %add
|
|
}
|