<div dir="ltr"><div dir="ltr">An analysis could count uses, for example; or could enumerate constants in a module and refine some calculation from that set, but removeDeadUsersOfConstant may delete some such constants.</div><div dir="ltr"><br></div><div>(what's a "VH-like thing"?)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 10, 2021 at 1:53 PM Roman Lebedev via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">lebedev.ri added a comment.<br>
<br>
Passing-by remark: i really don't see why would any analysis depend on *dead* constant use.<br>
If they do, they sound really fragile. The obvious fix for them is to actually signal that;<br>
i believe there was some VH-like thing for that?<br>
<br>
<br>
Repository:<br>
  rG LLVM Github Monorepo<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D109294/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D109294/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D109294" rel="noreferrer" target="_blank">https://reviews.llvm.org/D109294</a><br>
<br>
</blockquote></div></div>