scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit ba6fc8e2c447455483d2c41241c4d03d85bbb5fb
parent 06dcec5c1db69e60cbc8f3670f58a7b6f65691ea
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  6 Mar 2017 15:51:13 +0100

[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.

Diffstat:
Mcc1/fold.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/cc1/fold.c b/cc1/fold.c @@ -590,6 +590,7 @@ identity(Node *np) return NULL; case OMOD: /* i % 1 => i,1 */ + /* TODO: i % 2^n => i & n-1 */ if (isoner) goto change_to_comma; default: