[llvm] r363828 - [NFC][LSR] Avoid undefined grep in pr2570.ll

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 09:02:54 PDT 2019


Author: hubert.reinterpretcast
Date: Wed Jun 19 09:02:54 2019
New Revision: 363828

URL: http://llvm.org/viewvc/llvm-project?rev=363828&view=rev
Log:
[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.

Modified:
    llvm/trunk/test/Transforms/LoopStrengthReduce/pr2570.ll

Modified: llvm/trunk/test/Transforms/LoopStrengthReduce/pr2570.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopStrengthReduce/pr2570.ll?rev=363828&r1=363827&r2=363828&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopStrengthReduce/pr2570.ll (original)
+++ llvm/trunk/test/Transforms/LoopStrengthReduce/pr2570.ll Wed Jun 19 09:02:54 2019
@@ -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"




More information about the llvm-commits mailing list