Skip to content

Commit

Permalink
[NFC][Flang][Driver] Refactor R_Group options tests
Browse files Browse the repository at this point in the history
This commit addresses the comment at
https://reviews.llvm.org/D158174#inline-1534036 which
suggested adding a check for un-inlined remarks
printed.

Reviewed By: awarzynski

Differential Revision: https://reviews.llvm.org/D158599
  • Loading branch information
victorkingi committed Aug 23, 2023
1 parent 30c60ec commit 1b10920
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flang/test/Driver/optimization-remark.f90
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
! RUN: %flang %s -O1 -Rpass-analysis 2>&1 | FileCheck %s --check-prefix=REMARKS-ANALYSIS

! CHECK: remark: Loop deleted because it is invariant
! REMARKS-MISSED: {{.*}} will not be inlined into {{.*}} because its definition is unavailable
! REMARKS-MISSED: remark: loop not vectorized
! REMARKS-MISSED-NOT: instruction cannot be vectorized
! REMARKS-MISSED-NOT: loop not vectorized: instruction cannot be vectorized
! REMARKS-ANALYSIS: remark: loop not vectorized: instruction cannot be vectorized
! REMARKS-ANALYSIS-NOT: will not be inlined into {{.*}} because its definition is unavailable
! REMARKS-ANALYSIS-NOT: {{.*}} will not be inlined into {{.*}} because its definition is unavailable

! REMARKS: remark:
! NO-REMARKS-NOT: remark:
Expand Down

0 comments on commit 1b10920

Please sign in to comment.