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

    <tr>
        <th>Summary</th>
        <td>
            ipsccp -> llvm.lifetime.start/end can only be used on alloca or poison
        </td>
    </tr>

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

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

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

<pre>
    Running ipsccp pass on IR like this
```
define void @foo() {
  %g = alloca [4 x i16], align 1
  %.not1 = icmp eq ptr %g, inttoptr (i16 -1 to ptr)
  br i1 %.not1, label %for.end35.us.lr.ph, label %for.cond5

for.end35.us.lr.ph: ; preds = %entry
  br label %for.end35.us

for.end35.us: ; preds = %for.end35.us, %for.end35.us.lr.ph
 call void @llvm.lifetime.start.p0(ptr %g)
  br label %for.end35.us

for.cond5:                                        ; preds = %entry
  ret void
}
```
results in
```
lvm.lifetime.start/end can only be used on alloca or poison
  call void @llvm.lifetime.start.p0(ptr inttoptr (i16 -1 to ptr))
LLVM ERROR: Broken module found, compilation aborted!
```
See https://godbolt.org/z/jo9zqrP1x
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVEFr4zwQ_TXyZYiRZCuJDz4kTQMf9GOXLOxdsiaOWkVyJbnb9tcvctOWTbOlGwIGzcybN28eI2M0vUNsiVgTsSnkmA4-tOrWD1gor5_a3eiccT2YIXbdAIOMEbyD_3ZgzR1COphI6IrM6elPVxr3xiE8eKOB1HTvPeFLwhsgizWhKwDCRQ-k2oC01ncSiFjX8AiGzYnYEH4F0preAXtNLp1PbCow3XEAvIchhQklJxuXkn95WBo2hxmD5HMG4c2EoAIY9oaTS6xUaPPL3ocSna5EOcbShnI4fAh33mmRJ6SrC9nVCki1hiGgjhNDwgW6FJ5eO19s9RHuItAfCfzqL4TpCjpp7Zve1j4cS2v2mMwRy5hkSOVACV--i9Z8kd3L7NUKvvj7RIqAaWKYwRebM8cEjKNNEYw7C3wchfAtOg2ddOCdfQKFMEbU2ZInN_kAgzfRu6nv16X51EeTZDc3P_-H693u2y5rsg7-Dh0cvR4twt6PTucldf44GCuTyYyUDwk14exsrh-IcEhpyHsnfEv4tvdaeZtKH3rCt8-Eb29983wfvrPHQreVbqpGFtiyhagbzue1KA6tnO91V9Oq0pLTWss5RbXEfaOE0POqY4VpOeWCLhljdUVrUSoplG7qWi2UEDUyUlM8SmPLSRkf-sLEOGLLREVZVUz2iNNt4NzhL5iihPN8KkKbi2Zq7GOW1sQU32GSSRbb082YkeoaLmj_D7ssxmDbM8VMOoyq7PyR8G1GP31mQ_C32GX0iW4kfHua56HlvwMAAP__U_B_LA">