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
26 lines
699 B
LLVM
26 lines
699 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt -S -passes=newgvn %s | FileCheck %s
|
|
|
|
define void @tinkywinky(i64* %b) {
|
|
; CHECK-LABEL: @tinkywinky(
|
|
; CHECK-NEXT: entry:
|
|
; CHECK-NEXT: br label [[BODY:%.*]]
|
|
; CHECK: body:
|
|
; CHECK-NEXT: store i64 undef, i64* [[B:%.*]]
|
|
; CHECK-NEXT: br i1 undef, label [[BODY]], label [[END:%.*]]
|
|
; CHECK: end:
|
|
; CHECK-NEXT: br label [[BODY]]
|
|
;
|
|
entry:
|
|
br label %body
|
|
body:
|
|
%d.1 = phi i64* [ undef, %entry ], [ %d.1, %body ], [ %b, %end ]
|
|
store i64 undef, i64* %d.1
|
|
%b2 = load i64, i64* %b
|
|
%or = or i64 %b2, 0
|
|
store i64 %or, i64* %b
|
|
br i1 undef, label %body, label %end
|
|
end:
|
|
br label %body
|
|
}
|