1
0
mirror of https://github.com/RPCSX/llvm.git synced 2024-12-12 06:06:19 +00:00

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

boolean operations: AND, OR, XOR.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7157 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2003-07-10 19:47:42 +00:00
parent 4d2faf6307
commit ad80db6d7d

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