[patch] omp-low.h

2013-10-10 Thread Andrew MacLeod
Missed a bit in tree-flow.h.. I mistakenly assumed omp_region belonged there :-P Anyway by moving struct omp_region into omp_low.h, along with the prototypes from tree-flow.h, gimple.h and tree.h. Everything works great with just a few files actually requiring omp-low.h. AS an extra bonus,

Re: RFA [reload]: Fix PR other/58545

2013-10-10 Thread Jeff Law
On 10/03/13 14:23, Joern Rennecke wrote: To make sure that reloading is done with up-to-date register eliminations, I call update_eliminables also in the code path that continues for a frame size change. Not directly, since I need the code to spill the no longer eliminated registers; I've factor

Re: [C++ Patch] PR 31671

2013-10-10 Thread Jason Merrill
On 10/10/2013 03:31 PM, Paolo Carlini wrote: On 10/10/2013 08:26 PM, Jason Merrill wrote: On 10/10/2013 08:33 AM, Paolo Carlini wrote: + expr_type = TREE_TYPE (expr) = cp_build_qualified_type +(TREE_TYPE (expr), cp_type_quals (TREE_TYPE (probe_type))); Won't that end up being

Re: [PATCH] Reassociate X == CST1 || X == CST2 if popcount (CST2 - CST1) == 1 into ((X - CST1) & ~(CST2 - CST1)) == 0

2013-10-10 Thread Jeff Law
On 10/10/13 03:25, Zhenqiang Chen wrote: It comes from Coremark. The code is: if (NEXT_SYMBOL == '+' || NEXT_SYMBOL == '-') I should have guessed ;-) For ARM, there are three instructions rather than 4 (in thumb state). For some older gcc, I got performance improvement on ARM chromebook.

Re: [PATCH] Reassociate X == CST1 || X == CST2 if popcount (CST2 - CST1) == 1 into ((X - CST1) & ~(CST2 - CST1)) == 0

2013-10-10 Thread Jeff Law
On 10/10/13 04:10, Jakub Jelinek wrote: On Thu, Oct 10, 2013 at 05:25:01PM +0800, Zhenqiang Chen wrote: Note I've been suggesting the bits I'm referring to in fold-const.c move out into the tree-ssa optimizers. If they fit well into tree-ssa-reassoc.c I'd look favorably upon a patch which m

Re: [PATCH] Reassociate X == CST1 || X == CST2 if popcount (CST2 - CST1) == 1 into ((X - CST1) & ~(CST2 - CST1)) == 0

2013-10-10 Thread Jeff Law
On 10/10/13 05:12, Jakub Jelinek wrote: On Mon, Aug 05, 2013 at 04:08:58PM +0800, Zhenqiang Chen wrote: ChangeLog 2013-08-05 Zhenqiang Chen * tree-ssa-reassoc.c (optimize_range_tests): Reasociate X == CST1 || X == CST2 if popcount (CST2 - CST1) == 1 into ((X - CST1) &

<    1   2