<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 25, 2016 at 10:44 AM, Daniel Berlin via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Easier is a relative term.</div><div>I expect optimally choosing  which freezes to eliminate where, etc,  reduces to a covering problem variant (or just straight ILP) :)</div></div></div></div></blockquote><div><br></div><div>I think it's fine for GVN to fold them all to the same thing. The only difference between freeze(poison) and zero is that you can use a pre-existing register like RBP or RSP that says constant across the lifetime of the function so you don't need to materialize a zero if you don't have one already. </div></div></div></div>