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

            Bug ID: 120582
           Summary: simplify_builtin_call has a special case for COND_EXPR
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: internal-improvement
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

```
              else if (gimple_assign_rhs_code (use_stmt) == COND_EXPR)
                {
                  tree cond = gimple_assign_rhs1 (use_stmt);
                  if (COMPARISON_CLASS_P (cond))
                    {
                      ccode = TREE_CODE (cond);
                      crhs1 = TREE_OPERAND (cond, 0);
                      crhs2 = TREE_OPERAND (cond, 1);
                    }
                }
...
                  else
                    {
                      gcc_checking_assert (gimple_assign_rhs_code (use_stmt)
                                           == COND_EXPR);
                      tree cond = build2 (ccode, boolean_type_node,
                                          crhs1, crhs2);
                      gimple_assign_set_rhs1 (use_stmt, cond);
                    }

```
This can't happen any more.

Reply via email to