]> granicus.if.org Git - llvm/commitdiff
[NFC][LSR] Avoid undefined grep in pr2570.ll
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 19 Jun 2019 16:02:54 +0000 (16:02 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 19 Jun 2019 16:02:54 +0000 (16:02 +0000)
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

index 671ffde671f7885167246d505f6f53ca2c0db58f..6ebf0d540fa8729af99ae7d3213bb87efe401c89 100644 (file)
@@ -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"