This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
A question about DCE
- From: Revital1 Eres <ERES at il dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Trevor_Smigiel at playstation dot sony dot com
- Date: Wed, 15 Oct 2008 11:17:18 +0200
- Subject: A question about DCE
Hello,
I want to emit the following SPU insn:
emit_insn (gen_iorti3 (r77, tmp, GEN_INT(0)));
r77 is defined as 'fixed register' which is a register that the register
allocator can not use. (triggers by SPU option -mfixed-range)
r77 is used to pass information to some other routine at run-time (the
next instruction is branch to this routine; the routine does not exist
at the compile time of the function which contains this instruction).
The problem is that r77 is not used in it's function after this instruction
and thus DCE deletes it.
My question is as follows:
I understood I can not make DCE ignore an insn. However,
can I teach DCE to ignore instructions which sets fixed register?
(or there is another way to make DCE ignore that insn)
Thanks,
Revital