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
325 B
LLVM
12 lines
325 B
LLVM
; RUN: opt -S -passes=ipsccp < %s | FileCheck %s
|
|
@d = internal externally_initialized global i32 0, section ".openbsd.randomdata", align 4
|
|
|
|
; CHECK-LABEL: @test1(
|
|
define i32 @test1() {
|
|
entry:
|
|
%load = load i32, i32* @d, align 4
|
|
ret i32 %load
|
|
; CHECK: %[[load:.*]] = load i32, i32* @d, align 4
|
|
; CHECK: ret i32 %[[load]]
|
|
}
|