Re: Finding insns to reorder using dataflow

2015-08-14 Thread Kyrill Tkachov
On 14/08/15 16:31, Jeff Law wrote: On 08/14/2015 03:05 AM, Kyrill Tkachov wrote: The problem I'm trying to solve can be expressed in this way: "An insn that satisfies predicate pred_p (insn) cannot appear exactly N insns apart from another insn 'insn2' that satisfies pred_p (insn2). N is a cons

Re: Finding insns to reorder using dataflow

2015-08-14 Thread Jeff Law
On 08/14/2015 03:05 AM, Kyrill Tkachov wrote: The problem I'm trying to solve can be expressed in this way: "An insn that satisfies predicate pred_p (insn) cannot appear exactly N insns apart from another insn 'insn2' that satisfies pred_p (insn2). N is a constant". So, the problem here is that

Re: Finding insns to reorder using dataflow

2015-08-14 Thread Kyrill Tkachov
Hi Jeff, On 13/08/15 17:20, Jeff Law wrote: On 08/13/2015 05:06 AM, Kyrill Tkachov wrote: Hi all, I'm implementing a target-specific reorg pass, and one thing that I want to do is for a given insn in the stream to find an instruction in the stream that I can swap it with, without violating any

Re: Finding insns to reorder using dataflow

2015-08-13 Thread Jeff Law
On 08/13/2015 05:06 AM, Kyrill Tkachov wrote: Hi all, I'm implementing a target-specific reorg pass, and one thing that I want to do is for a given insn in the stream to find an instruction in the stream that I can swap it with, without violating any dataflow dependencies. The candidate instruct

Finding insns to reorder using dataflow

2015-08-13 Thread Kyrill Tkachov
Hi all, I'm implementing a target-specific reorg pass, and one thing that I want to do is for a given insn in the stream to find an instruction in the stream that I can swap it with, without violating any dataflow dependencies. The candidate instruction could be earlier or later in the stream.