Use the new PM syntax when specifying the pipeline in regression tests previously running "opt -newgvn ..." Instead we now do "opt -passes=newgvn ..." Notice that this also changes the aa-pipeline to become the default aa-pipeline instead of just basic-aa. Since these tests haven't been explicitly requesting basic-aa in the past (compared to the test cases updated in a separate patch involving "-basic-aa -newgvn") it is assumed that the exact aa-pipeline isn't important for the validity of the test cases. An alternative could have been to add -aa-pipeline=basic-aa as well to the run lines, but that might just add clutter in case the test cases do not care about the aa-pipeline. This is another step to move away from the legacy PM syntax when specifying passes in opt. Differential Revision: https://reviews.llvm.org/D118341
40 lines
1.1 KiB
LLVM
40 lines
1.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -S -passes=newgvn %s | FileCheck %s
|
|
|
|
@a = external global i32
|
|
|
|
define void @b() {
|
|
; CHECK-LABEL: @b(
|
|
; CHECK-NEXT: br i1 false, label [[C:%.*]], label [[WHILE_D:%.*]]
|
|
; CHECK: while.d:
|
|
; CHECK-NEXT: br label [[F:%.*]]
|
|
; CHECK: f:
|
|
; CHECK-NEXT: br i1 undef, label [[IF_E:%.*]], label [[C]]
|
|
; CHECK: c:
|
|
; CHECK-NEXT: br i1 undef, label [[IF_G:%.*]], label [[IF_E]]
|
|
; CHECK: if.g:
|
|
; CHECK-NEXT: store i32 undef, i32* @a
|
|
; CHECK-NEXT: br label [[WHILE_D]]
|
|
; CHECK: if.e:
|
|
; CHECK-NEXT: br label [[F]]
|
|
;
|
|
br i1 false, label %c, label %while.d
|
|
|
|
while.d: ; preds = %if.g, %0
|
|
br label %f
|
|
|
|
f: ; preds = %if.e, %while.d
|
|
br i1 undef, label %if.e, label %c
|
|
|
|
c: ; preds = %f, %0
|
|
br i1 undef, label %if.g, label %if.e
|
|
|
|
if.g: ; preds = %c
|
|
store i32 undef, i32* @a
|
|
br label %while.d
|
|
|
|
if.e: ; preds = %c, %f
|
|
br label %f
|
|
}
|
|
|