Peephole2 Null Patterns

Hans-Peter Nilsson hp@bitrange.com
Wed Apr 2 17:13:00 GMT 2003


On Mon, 31 Mar 2003, Shiv Sheshgiri wrote:
> (define_peephole2
> 	[insn-pattern-1
> 	 insn-pattern-2
> 	 ...]
> 	"condition"
> 	[new-insn-pattern-1
> 	 new-insn-pattern-2
> 	 ...]
> 	"preparation-statements")
>
> In the new-insn-pattern, I wish to specify
> null RTXs. That is I wish to remove some
> useless RTXs generated.

Remove from *where*?  For each new-insn-pattern-N (N=1,2..) just
specify the patterns you need.  You don't repeat the "old"
insn-pattern-N (N=1,2..) ones for new-insn-pattern-M (M=1,2..).

brgds, H-P



More information about the Gcc mailing list