simplify these patterns using m_Specific. No need to grep for

xor in testcase (or is a substring).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2008-12-01 05:16:26 +00:00
parent ef0c6744d5
commit d8aafcb200
2 changed files with 7 additions and 19 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {and i32 %y, %x} | count 2
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {and i32 %x, %y} | count 2
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {xor}
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {and i32 %x, %y} | count 4
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {or}
define i32 @func1(i32 %x, i32 %y) nounwind {