<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/71779>71779</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Consider IF-ELSE update
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          SergMariaDB
      </td>
    </tr>
</table>

<pre>
    IF-ELSE => IF-OR-ELSE

Here is the idea for modification of IF-ELSE control statement with OR keyword addition.
Sample issue code:
 ```
if (a == 1 || a == 2) {
  if (a == 1) {
    // 'a' is 1
  }
  // 'a' is 1 or 2
} else {
  // 'a' is not 1 or 2
}
```
This requires repeating one of the conditions (or caching the condition in a variable and checking that variable in two places).  
so...

```c
switch (a)
{
    case 1:
 // specific operator
    case 2:
      // fallthrough from 1 or a == 2
      break;

    default:
      // something else
}
```
For non-constants may be put this way:
Solution:
```
IF (a==1) {
  Specific operator 
} OR (a==2) {
   Fallback from a==1 and for a==2 operator 
} else {
 a!=1, a!=2 operator 
}
```

See for more info: https://www.quora.com/profile/Serg-Kryvonos/Here-is-the-idea-for-modification-of-IF-ELSE-control-statement-with-OR-keyword-addition-Sample-issue-code-if-a
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8lNFuqzgQhp_GuRkZgWlCueDitDloq91VpWZfwJgheOt4OLZplLdfGUhKc6qVqsax_Y9n_pl80nt9tIgV2z6x7X4jx9CTqw7ojn9Lp-X-adNQe6leav7zr8NPYPme5T_hpeavb9MOS_cs_TH__wMdgvYQegTdooSOHJyo1Z1WMmiyQB1cIymywZEBH2TAE9oAZx16eH2Dd7ycybUg21ZHVTJHP8jTYGJ8PyIoapHly7vAdunyN33XHTDxKOdk95ABK55Z8Qy3HcFECax4WuRwL7g7BmCiZqIGJgrJRBFrzK6HrNjflr_fAnIgFo-KPaDxuI78u8JSuFcti681_tNrDw5_jdphXAwog7ZHIIvR5dgCRXY20MfqyIGSqo93vhyCtiDhIza7MQjStqB6VO_zRRk-j7SFcCYYjFTomSgTgDkXT0mSrAfhlqtaLpx1UP3kMRPltbCVv0p6hGzV0NkXP6CKwwM0oJOB3J1CfCpg1aZOGhN6R-Oxh87RaTZ01f2VpHEo31n-tE4_7rfYydGE7x_wdMIwWRkb-v-NqsmBJcsVWR-kDR5O8gINwjAGCLGLZ3m5PXMgM8au3Dbuor3Us4tTJfdzeri3Cz4n7_VtJbyff6ilMY1U77Nd1_DTMMTf8FX2XeC7kZZMZHNqz9f1d7Jvi1ssQFzAEWliO2L5D-hDGHw0ZWrA-XxOfo3kZKLoxEQ9OOq0QSbqCC7-p7t8kCXPRB2RxLXnoUcekcQ7cnyNJE4dX5DEFyTxG5J4RFIk3YIkfkUSn2HEJxjxCCOuOy43bZW3ZV7KDVbZriy3mXjclpu-KrZ5lhcCZd417bZ83KrioXjMto1o87LEdKMrkYo8y9Iy3W0fsjIpVFc-NE1XZulO4K5lDymepDaJMR-nhNxxM71dFVlRlBsjGzR-grgQFs8zJZkQkemuihrejEfPHlKjffCfUYIOBqtnsl636G50HodWBtyMzlRfrT_q0I_N4nuMsnzwwdG_qAIT9fR2NH_K7b8AAAD__xaV1Wo">