Use predicates for RTL objects
nathan bullock
nathanbullock@gmail.com
Fri Feb 3 04:23:00 GMT 2006
Do people still want (GET_CODE (rtx) == XXX) cleaned up to XXX_P(RTX).
If so I notice that there are quite a few of the following:
200 of
GET_CODE(rtx) == PLUS ---> PLUS_P(rtx)
50 of
GET_CODE(rtx) == MINUS ----> MINUS_P(rtx)
550 of
GET_CODE(rtx) == CONST_INT ---> CONST_INT_P(rtx)
70 of
GET_CODE(rtx) == CONST_DOUBLE ----> CONST_DOUBLE_P(rtx)
150 of
GET_CODE(rtx) == PARALLEL ----> CONST_PARALLEL_P(rtx)
I would probably do all the plus/minus stuff first. Submit that as a patch.
Nathan Bullock
ps. Do I just send the diff file to this mailing list?
More information about the Gcc
mailing list