Fold cast-to-bool into not. Later, this should also be folded into other
authorVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 10 Jul 2003 19:47:42 +0000 (19:47 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 10 Jul 2003 19:47:42 +0000 (19:47 +0000)
boolean operations: AND, OR, XOR.

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

lib/Target/SparcV9/SparcV9.burg.in

index 516a1fcb4bd7bca2bb883bf620afe026e6ceb19b..6c3b659199c850e6aa2a26cdf757501a4c6baecb 100644 (file)
@@ -138,6 +138,7 @@ reg:        VRegList(reg,reg)       =  10 (0);
         */
 not:     Not(reg,reg)          =   21 (10);
 tobool:          ToBoolTy(reg)         =   22 (10);
+not:      Not(tobool, reg)      =  322 (10); // fold cast-to-bool into not
 toubyte:  ToUByteTy(reg)       =   23 (10);
 tosbyte:  ToSByteTy(reg)       =   24 (10);
 toushort: ToUShortTy(reg)      =   25 (10);