ref: b163cce9603d1d385698e8b09d66797a9086ba28
parent: 3aab523c3622c93b4ebcc34a9098ff9634fc4ef2
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Mar 6 10:51:13 EST 2017
[cc1] Add TODO in identity() It is desirable to trasform power n modulo operations to and operations. It cannot be done at this moment because we need a way to detect if a constant is a power of 2.
--- a/cc1/fold.c
+++ b/cc1/fold.c
@@ -590,6 +590,7 @@
return NULL;
case OMOD:
/* i % 1 => i,1 */
+ /* TODO: i % 2^n => i & n-1 */
if (isoner)
goto change_to_comma;
default: