Re: [PATCH] combine ignoring a check

2017-01-11 Thread Segher Boessenkool
On Tue, Jan 10, 2017 at 09:12:38AM -0500, Nathan Sidwell wrote: > Segher commented on IRC that a single loop would be slower. I disagree. Slower *and less readable*, which is the main point. Oh well. > - /* Make sure this PARALLEL is not an asm. We do not allow combining > + Neither

[PATCH] combine ignoring a check

2017-01-10 Thread Nathan Sidwell
This patch addresses an issue Nicolai found while browsing combine.c. He noticed some checking code that looked like: for (i = 0; i < NUM_ARGS; i++) if (!cond) break; for (i = 0; i < NUM_ARGS; i++) if (!other_cond) break; if (i == NUM_ARGS) do_the_thing; the inte