https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68030
amker at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amker at gcc dot gnu.org --- Comment #5 from amker at gcc dot gnu.org --- (In reply to Kirill Yukhin from comment #4) > Hello Bin, > Is it possible to handle the issue using current ivopt? Not yet I think. IIUC, this is the same issue as PR69710. We need to teach vectorizer about CSE opportunities. I had a scratch patch fixing it in a way just as mentioned in #comment2, I will revisit it after work on if-conversion. According to Richard's comment, I may need to make it a general fix, for example, share this facility among different optimizers that need to insert code in pre-header. Thanks.