<div dir="ltr">Haven't given it much thought - I copied this from the existing tests, and modified only the parts I needed.<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 17, 2017 at 9:39 PM, Xin Tong 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">trentxintong added inline comments.<br>
<br>
<br>
================<br>
Comment at: llvm/trunk/test/Transforms/LIC<wbr>M/promote-tls.ll:67<br>
<span>+  %old = load i32, i32* %addr, align 4<br>
+  ; deliberate impossible to analyze branch<br>
+  %guard = load atomic i8*, i8** @p monotonic, align 8<br>
</span>----------------<br>
Any particular reason why this can not be br i1 undef, label %a, label %b ? Understandably, this can be simplified by SimplifyCFG or SCCP. but we are only running LICM here ?<br>
<div class="m_1755108974272750570HOEnZb"><div class="m_1755108974272750570h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D28170" rel="noreferrer" target="_blank">https://reviews.llvm.org/D2817<wbr>0</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>