This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
peephole2 and insn question
- From: Dmitry <diwil at eis dot ru>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 22 Oct 2002 16:51:33 +0400
- Subject: peephole2 and insn question
- Organization: EIS
- Reply-to: diwil at eis dot ru
HI Folks,
Just faced with some problem:
If I define peephole2 and use 'insn' variable in condition, to which
instruction parrern in a sequence 'insn' refers?
From gccint.info (Node: define_peephole) follows, that insn refers to the last
insn being matched.
How about peephole2 ?
If I stick on a condition in a debugger I see that in p2 'insn' refers to the
first insn being matched.
Am I wrong?
cheers,
Dmitry.
/********************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys
(_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314
********************************************************************/