Article View: gnu.gcc.help
Article #52857match a sequence in define peephole
From: dong
Date: Sun, 17 May 1992 03:56
Date: Sun, 17 May 1992 03:56
26 lines
1160 bytes
1160 bytes
Dear GCC, Can you tell me how I can match a sequence in the template of a define_peephole ? I want to match the following pattern: define_peephole [insn1 (sequence [insn2, insn3])] ..... But I don't know how to explicitly decompose insn2 and insn3. How can I say PATTERN(insn2) in the template ? Basically, I want to merge insn1 and insn3 under some constrains, since dbr pass moves insn3 in the delay shadow, I have to write this peephole as a special case of (define_peephole [insn1 insn3] ..... I wonder if I can do the merge before dbr pass. Thanks Dong
Technical Details
Message-ID:
<9205171756.AA23862@vlsi.cs.caltech.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!vlsi.cs.caltech.edu!dongShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,ea1cec687436a24a,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-05-17 06:07:12 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!vlsi.cs.caltech.edu!dong From: dong@vlsi.cs.caltech.edu Subject: match a sequence in define peephole Message-ID: <9205171756.AA23862@vlsi.cs.caltech.edu> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sun, 17 May 1992 03:56:28 GMT Lines: 26