Add a polygen rule that reflects the fact that nsw and nuw can be
authorDan Gohman <gohman@apple.com>
Tue, 4 May 2010 00:13:24 +0000 (00:13 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 4 May 2010 00:13:24 +0000 (00:13 +0000)
used together in either order.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102983 91177308-0d34-0410-b5e6-96231b3b80d8

utils/llvm.grm

index d391e2aeab9e7e742f2ac1e4c6d70539e1a92d2b..fa0dcd1e1520ccddf80d0aeb5d71dfdd6a5179e7 100644 (file)
@@ -398,7 +398,7 @@ OptVolatile ::= - volatile | _ ;
 OptExact ::= - exact | _ ;
 OptNSW ::= - nsw | _ ;
 OptNUW ::= - nuw | _ ;
-OptNW  ::= OptNUW OptNSW ;
+OptNW  ::= OptNUW OptNSW | OptNSW OptNUW ;
 OptInBounds  ::= - inbounds | _ ;
 
 MemoryInst ::= malloc Types OptCAlign