This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFC: more predicates
- From: jlquinn at optonline dot net
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Jul 2004 11:32:00 -0400
- Subject: RFC: more predicates
After having updated the main directory to use the existing GET_CODE predicates, I went and looked at the other GET_CODEs for counts and potential predicates. Here's the high-runner list I have so far:
CONST_INT 568
SUBREG 373
LABEL_REF 104
PARALLEL 154
SET 193
USE 86
CLOBBER 140
PLUS 225
So from this list, I'd suggest:
SUBREG_P
CLOBBER_P
SET_P
USE_P
CONST_INT_P
PARALLEL_P
PLUS is common, but the other arithmetic codes are 50 or less each.
LABEL_REF is common, but SYMBOL_REF isn't as common.
For reference, here are the counts in the main gcc directory for existing predicates:
LABEL_P 181
INSN_P 343
CALL_P 191
JUMP_P 232
NONJUMP_INSN_P 125
NOTE_P 191
BARRIER_P 91
REG_P 1157
MEM_P 478
Opinions?
Thanks,
Jerry Quinn