This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .def files for insn and reg notes


All,

Eric Botcazou wrote:
There appears to have been no good reason why the reg_note enumeration
began at 1.

GCC code is somewhat lax in how it uses the mode field within EXPR_LIST
and INSN_LIST.

reg notes definately can't start a zero as it will conflict with the use of
VOIDmode for true data dependence!  ANTI and OUTPUT dependence use proper
reg notes.

Besides REG_NOTES themselves we also store 0, VOIDmode, SImode, and DImode, and perhaps
a few others I've yet to notice.

Graham
ps. I've been working on a patch to add a proper REG_DEP_TRUE note to replace the
use of VOIDmode for true data dependence. It's proving tricky to find all the
relevant 0 and VOIDmode uses in the middle and backends.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]