This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/61391] [4.10 Regression] ICE in execute_one_pass at -O3 and above


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61391

--- Comment #3 from Yuri Rumyantsev <ysrumyan at gmail dot com> ---
A check that stmt-bb belongs to loop is missed in is_cond_scalar_reduction, if
we add the following lines

   if (gimple_code (stmt) != GIMPLE_ASSIGN
       || gimple_has_volatile_ops (stmt))
     return false;
+  
+  if (!flow_bb_inside_loop_p (loop, gimple_bb (stmt)))
+    return false;
 test will be compiled successfully.

I will prepare a patch after required testing completion.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]