Fold cast-to-bool into not. Later, this should also be folded into other

boolean operations: AND, OR, XOR.

llvm-svn: 7157
This commit is contained in:
Vikram S. Adve 2003-07-10 19:47:42 +00:00
parent e2e50f2880
commit 2f90c823a2
1 changed files with 1 additions and 0 deletions

View 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);