<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 18, 2017 at 10:22 PM, Davide Italiano 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">davide added a comment.<br>
<br>
The code logic looks fine. Some minor comments inline.<br>
<br>
<br>
<br>
================<br>
Comment at: include/llvm/Transforms/Utils/<wbr>MemorySSAUpdater.h:89-93<br>
+<br>
 private:<br>
   // Move What before Where in the MemorySSA IR.<br>
   template <class WhereType><br>
+  void moveTo(MemoryUseOrDef *What, BasicBlock *BB, WhereType Where);<br>
----------------<br>
Unrelated formatting, I guess.<br>
<br>
<br>
================<br>
Comment at: lib/Transforms/Utils/<wbr>MemorySSA.cpp:1187-1189<br>
+      // We already visited this during our renaming, which can happen when<br>
+      // being asked to rename multipleblocks. Figure out the incoming val,<br>
+      // which is the last def<br>
----------------<br>
Full stop at the ned of the comment (here and everywhere else)<br>
<br>
<br></blockquote><div>I feel like i need to get emacs to check for this ...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
================<br>
Comment at: unittests/Transforms/Utils/<wbr>MemorySSA.cpp:193<br>
   MSSA.verifyMemorySSA();<br>
+  MSSA.dump();<br>
 }<br>
----------------<br>
IIRC `dump()` is supposed to be used only in a debugger and `print()` should be used instead, but I might be wrong.<br>
<br></blockquote><div><br></div><div>This was just there so i could reply to piotr's email :)</div><div>Removed.</div><div><br></div></div></div></div>