public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH GCC][OBVIOUS]Fix dump info by reporting malformed loop nest.
@ 2016-03-16  9:28 Bin Cheng
  2016-03-16  9:45 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Bin Cheng @ 2016-03-16  9:28 UTC (permalink / raw)
  To: gcc-patches; +Cc: nd

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

Hi,
This is an obvious change to dump message in vect_analyze_loop_2.  Apparently, the wrong message is copies/pasted from another place, the code has nothing to do with function calls or data references.  We should report that loop cannot be vectorized because of malformed loop nest.
Build successfully.  Is it OK?

Thanks,
bin

2016-03-16  Bin Cheng  <bin.cheng@arm.com>

	* tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
	reporting malformed loop nest.

[-- Attachment #2: dump-msg-for-malformed-loop-nest-20160308.txt --]
[-- Type: text/plain, Size: 606 bytes --]

Index: gcc/tree-vect-loop.c
===================================================================
--- gcc/tree-vect-loop.c	(revision 234057)
+++ gcc/tree-vect-loop.c	(working copy)
@@ -1772,8 +1772,9 @@ vect_analyze_loop_2 (loop_vec_info loop_vinfo, boo
     {
       if (dump_enabled_p ())
 	dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
-			 "not vectorized: loop contains function calls"
-			 " or data references that cannot be analyzed\n");
+			 "not vectorized: loop nest containing two "
+			 "or more consecutive inner loops cannot be "
+			 "vectorized\n");
       return false;
     }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH GCC][OBVIOUS]Fix dump info by reporting malformed loop nest.
  2016-03-16  9:28 [PATCH GCC][OBVIOUS]Fix dump info by reporting malformed loop nest Bin Cheng
@ 2016-03-16  9:45 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2016-03-16  9:45 UTC (permalink / raw)
  To: Bin Cheng; +Cc: gcc-patches, nd

On Wed, Mar 16, 2016 at 10:28 AM, Bin Cheng <Bin.Cheng@arm.com> wrote:
> Hi,
> This is an obvious change to dump message in vect_analyze_loop_2.  Apparently, the wrong message is copies/pasted from another place, the code has nothing to do with function calls or data references.  We should report that loop cannot be vectorized because of malformed loop nest.
> Build successfully.  Is it OK?

Ok.

Richard.

> Thanks,
> bin
>
> 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
>
>         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
>         reporting malformed loop nest.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-16  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-16  9:28 [PATCH GCC][OBVIOUS]Fix dump info by reporting malformed loop nest Bin Cheng
2016-03-16  9:45 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).