<div dir="ltr">I would guess that yes? just my optinion.<div>GVN is disabled by default, hence the need to add <span style="font-size:12.8px">`</span><span style="font-size:12.8px">-enable-gvn-hoist</span><span style="font-size:12.8px">` for any opt level >=O1 (vs DCE</span><span style="font-size:12.8px"> which is enabled by default). On the other hand explicitly adding `-gvn-hoist` should also work, just like adding `-dce`.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 29, 2016 at 8:34 AM, Paul Robinson <span dir="ltr"><<a href="mailto:paul.robinson@sony.com" target="_blank">paul.robinson@sony.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">probinson added a subscriber: probinson.<br>
probinson added a comment.<br>
<br>
This means to enable the pass in opt I need to do both `-enable-gvn-hoist` and `-O1` which is not usual for opt.  (For example I need just `-dce` to get DCE.)  Is that the intent?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D22639" rel="noreferrer" target="_blank">https://reviews.llvm.org/D22639</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>