[Bug tree-optimization/126579] New: non-call must not throw (REG_EH_REGION) is lost in during cselim

"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]> Sun, 02 Aug 2026 00:44:18 +0000
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126579

            Bug ID: 126579
           Summary: non-call must not throw (REG_EH_REGION) is lost in
                    during cselim
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: EH, wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Created attachment 65210
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65210&action=edit
testcase

Like PR 126578 and others. But MNT (REG_EH_REGION) is lost a few places.
cselim is one of them. RTL ifcvt is the other.