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

    <tr>
        <th>Summary</th>
        <td>
            Option EnablePhiElim under LoopStrengthReduce looks outdated
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            loopoptim
      </td>
    </tr>

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

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

<pre>
    The comments infer that it should be "currently disabled", but the actual code disagrees.

```
// Temporary flag to cleanup congruent phis after LSR phi expansion.
// It's currently disabled until we can determine whether it's truly useful or
// not. The flag should be removed after the v3.0 release.
// This is now needed for ivchains.
static cl::opt<bool> EnablePhiElim(
  "enable-lsr-phielim", cl::Hidden, cl::init(true),
  cl::desc("Enable LSR phi elimination"));
```

My guess is this option should be dead code now?

CC-ing some past contributors of LSR (by commit history):
@fhahn @LebedevRI @preames @sjoerdmeijer 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUk1v2zAM_TX2hYjhynESH3xo0xYr0GFD28OuskXb6mTJ0Ee6_PtRSoMm2ADCFkWRfHx8nRHH9m1C6M08o_YOpB7Qgp-4B-nBTSYoAR1CxlgfrKU36ghCOt4pFHSZsT10wVMGAu994IpqCUxPRovoiqy8z8rbz--m_LSTyx7J4A3nxVhujzAoPoI30CvkOixUSo82UFNYJumAD57APb--RBfwz8K1k0YXV9WefMa2Dv5FC0F7qeCDpuUaBFKtWWqEjwkJvaV5U6K3gZKCwyEoMPaqtja-gMhXAvrFjsXZHKjDCWDk4lAVJV3THA6v8b3FSci0-QCNKChtMNT90E9c6jNfznMveyIiq27JzOKzat8ZQ_4DPOg40M9JPig5Z2x3SoG4JEyhlXJ2RRxhiqclnSt9k0KgvryROk6-o7kxYw1FzuXODwS6PnZh7NT4awNUXmoCanTq0kSr7v6_6_T9foQxoEsE-EgEDUbZF1QK5OIkISIoqx4vs_f7ldTEu5kRFu581Ie3kvRnLJUaEjBC2h2ToEnA1IJix4TrrMF1OUx80kCHZ-xoAYeXp-gsFvmMLh7du0ErZpTvtM5ctJVoqobnXnqF7Y8T5KslkLZElKYxy6sn3Y1-ekERegRlzG_CFrzgHkUerGon7xcX8SRBjNJPoSsIMDlKHc6_1WLNO_a0mkfpHJFGh3q9q8p8alnN681m3XBW9cN6QNZtGFbVICq2a8ruJle8Q-XarL6jxRCEJfKcpFDf57JlJWPlumxudqyq6uKG19uGiOi4qLfbEokBnLlURcRRGDvmtk2QujA6Cipi1X0FuXNyJCmndlSfBz8Z26JZflGziL1NwP8CtHtraw">