<div dir="ltr">So, the part it will fit in with will be when we do insertion for load coercion, but even then it's a bit of a wonky fit.<div>I'm not opposed to just having hoist-div-rem, sounds completely reasonable to me!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 23, 2017 at 4:05 PM, Sanjay Patel via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">spatel added a comment.<br>
<span class=""><br>
In <a href="https://reviews.llvm.org/D31037#714685" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D31037#714685</a>, @dberlin wrote:<br>
<br>
> (i am generalizing the ability to have instructions that are not in the IR in the value number tables, for NewGVN, but no reason to depend on that for now)<br>
<br>
<br>
</span>I (finally) got around to looking at NewGVN by way of PR34228 ( <a href="https://bugs.llvm.org/show_bug.cgi?id=34228" rel="noreferrer" target="_blank">https://bugs.llvm.org/show_<wbr>bug.cgi?id=34228</a> ), and this functionality doesn't fit there either based on my limited understanding.<br>
<br>
We don't want to keep adding weird stuff into existing passes, so are there objections to making this into a new single-purpose "hoist-div-rem" pass just for this transform?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D31037" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D31037</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>