public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* decremnt IV patch create fails on PowerPC
@ 2023-05-25 22:45 钟居哲
  2023-05-26  6:46 ` Richard Biener
  0 siblings, 1 reply; 15+ messages in thread
From: 钟居哲 @ 2023-05-25 22:45 UTC (permalink / raw)
  To: gcc-patches; +Cc: richard.sandiford, rguenther, linkw

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

Yesterday's patch has been approved (decremnt IV support):
https://gcc.gnu.org/pipermail/gcc-patches/2023-May/619663.html 

However, it creates fails on PowerPC:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109971 

I am really sorry for causing inconvinience.

I wonder as we disccussed:
+  /* If we're vectorizing a loop that uses length "controls" and
+     can iterate more than once, we apply decrementing IV approach
+     in loop control.  */
+  if (LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P (loop_vinfo)
+      && !LOOP_VINFO_LENS (loop_vinfo).is_empty ()
+      && LOOP_VINFO_PARTIAL_LOAD_STORE_BIAS (loop_vinfo) == 0
+      && !(LOOP_VINFO_NITERS_KNOWN_P (loop_vinfo)
+	   && known_le (LOOP_VINFO_INT_NITERS (loop_vinfo),
+			LOOP_VINFO_VECT_FACTOR (loop_vinfo))))
+    LOOP_VINFO_USING_DECREMENTING_IV_P (loop_vinfo) = true;

This conditions can not disable decrement IV on PowerPC.
Should I add a target hook for it? 
The patch I can only do bootstrap and regression on X86.
I didn't have an environment to test PowerPC. I am really sorry.

Thanks.


juzhe.zhong@rivai.ai

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

end of thread, other threads:[~2023-05-30 11:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-25 22:45 decremnt IV patch create fails on PowerPC 钟居哲
2023-05-26  6:46 ` Richard Biener
2023-05-26  7:46   ` juzhe.zhong
2023-05-30  9:22     ` Richard Biener
2023-05-30  9:26       ` juzhe.zhong
2023-05-30  9:50         ` Richard Biener
2023-05-30  9:55           ` juzhe.zhong
2023-05-30 11:30           ` juzhe.zhong
2023-05-30  9:51         ` Kewen.Lin
2023-05-30 10:00           ` Richard Biener
2023-05-30 10:05             ` juzhe.zhong
2023-05-30 10:12             ` Richard Sandiford
2023-05-30 10:43               ` Richard Biener
2023-05-30 11:29                 ` Richard Sandiford
2023-05-30 11:37                   ` 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).