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 tree-optimization/61385] [4.10 Regression] ICE on valid code at -O2 and -O3 on x86_64-linux-gnu


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

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
Ah, right, I use last_and_only_stmt (middle_bb) but that doesn't prove there
are no PHI nodes there. Easiest fix, something like:

if (!gimple_seq_empty_p (phi_nodes (middle_bb)))
  return 0;

A better fix would be to move the PHI nodes from middle_bb to the same block as
we are moving the assignment. I am just not completely sure how safe that is
(or how to do that, but I'll probably find examples nearby).


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