From 521e9007ace8fe7901bf0fbd4c2a8f982d2616b3 Mon Sep 17 00:00:00 2001 From: Hubert Tong Date: Wed, 19 Jun 2019 16:02:54 +0000 Subject: [PATCH] [NFC][LSR] Avoid undefined grep in pr2570.ll greater-than-sign is not a BRE special character. POSIX.1-2017 XBD Section 9.3.2 indicates that the interpretation of `\>` is undefined. This patch replaces the pattern. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363828 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/LoopStrengthReduce/pr2570.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Transforms/LoopStrengthReduce/pr2570.ll b/test/Transforms/LoopStrengthReduce/pr2570.ll index 671ffde671f..6ebf0d540fa 100644 --- a/test/Transforms/LoopStrengthReduce/pr2570.ll +++ b/test/Transforms/LoopStrengthReduce/pr2570.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-reduce -S | grep "phi\>" | count 8 +; RUN: opt < %s -loop-reduce -S | grep -e 'phi$' -e 'phi[^_[:alnum:]]' | count 8 ; PR2570 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" -- 2.50.1