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
35 lines
1.2 KiB
LLVM
35 lines
1.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -passes=newgvn %s -S -o - | FileCheck %s
|
|
|
|
%struct.dipsy = type {}
|
|
%struct.fluttershy = type { %struct.dipsy* }
|
|
%struct.patatino = type {}
|
|
|
|
define void @tinkywinky() {
|
|
; CHECK-LABEL: @tinkywinky(
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: br label [[BB90:%.*]]
|
|
; CHECK: bb90:
|
|
; CHECK-NEXT: br label [[BB90]]
|
|
; CHECK: bb138:
|
|
; CHECK-NEXT: store i8 poison, i8* null
|
|
; CHECK-NEXT: br label [[BB138:%.*]]
|
|
;
|
|
bb:
|
|
br label %bb90
|
|
|
|
bb90:
|
|
%tmp = getelementptr inbounds %struct.fluttershy, %struct.fluttershy* undef, i64 0, i32 0
|
|
%tmp91 = bitcast %struct.dipsy** %tmp to %struct.patatino**
|
|
%tmp92 = load %struct.patatino*, %struct.patatino** %tmp91, align 8
|
|
%tmp99 = getelementptr inbounds %struct.patatino, %struct.patatino* %tmp92
|
|
%tmp134 = getelementptr inbounds %struct.fluttershy, %struct.fluttershy* undef, i64 0, i32 0
|
|
%tmp135 = bitcast %struct.dipsy** %tmp134 to %struct.patatino**
|
|
%tmp136 = load %struct.patatino*, %struct.patatino** %tmp135, align 8
|
|
br label %bb90
|
|
|
|
bb138:
|
|
%tmp139 = getelementptr inbounds %struct.patatino, %struct.patatino* %tmp136
|
|
br label %bb138
|
|
}
|