RE: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-16 Thread Thomas Preud'homme
From: Steven Bosscher [mailto:stevenb@gmail.com] Sent: Monday, March 09, 2015 7:48 PM To: Thomas Preud'homme Cc: GCC Patches; Eric Botcazou Subject: Re: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant New patch below. It looks like this would run

RE: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-10 Thread Thomas Preud'homme
From: Steven Bosscher [mailto:stevenb@gmail.com] Sent: Monday, March 09, 2015 7:48 PM To: Thomas Preud'homme Cc: GCC Patches; Eric Botcazou Subject: Re: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant On Thu, Mar 5, 2015 at 10:53 AM, Thomas

Re: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-09 Thread Steven Bosscher
On Thu, Mar 5, 2015 at 10:53 AM, Thomas Preud'homme wrote: diff --git a/gcc/dominance.c b/gcc/dominance.c index 33d4ae4..09c8c90 100644 --- a/gcc/dominance.c +++ b/gcc/dominance.c @@ -982,7 +982,7 @@ nearest_common_dominator_for_set (enum cdi_direction dir, bitmap blocks)

RE: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-09 Thread Thomas Preud'homme
From: Jiong Wang [mailto:jiong.w...@arm.com] Sent: Friday, March 06, 2015 8:10 PM On 05/03/15 09:53, Thomas Preud'homme wrote: *** gcc/testsuite/ChangeLog *** 2015-02-16 Thomas Preud'homme thomas.preudho...@arm.com * gcc.dg/loop-7.c: Run on all targets and check for

RE: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-06 Thread Thomas Preud'homme
From: Richard Biener [mailto:richard.guent...@gmail.com] Sent: Thursday, March 05, 2015 7:12 PM loop header start of loop body //stuff (set (reg 128) (const_int 0)) //other stuff end of loop body becomes: (set (reg 129) (const_int 0)) loop header start of loop body

Re: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-06 Thread Jiong Wang
On 05/03/15 09:53, Thomas Preud'homme wrote: *** gcc/testsuite/ChangeLog *** 2015-02-16 Thomas Preud'homme thomas.preudho...@arm.com * gcc.dg/loop-7.c: Run on all targets and check for loop2_invariant being able to move instructions without introducing new temporary

Re: [PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-05 Thread Richard Biener
On Thu, Mar 5, 2015 at 10:53 AM, Thomas Preud'homme thomas.preudho...@arm.com wrote: Note: this is stage1 material. Currently loop2_invariant pass hoist instructions out of loop by creating a new temporary for the destination register of that instruction and leaving there a mov from new

[PATCH, stage1] Move insns without introducing new temporaries in loop2_invariant

2015-03-05 Thread Thomas Preud'homme
Note: this is stage1 material. Currently loop2_invariant pass hoist instructions out of loop by creating a new temporary for the destination register of that instruction and leaving there a mov from new temporary to old register as shown below: loop header start of loop body //stuff (set (reg