<div dir="ltr">Hmm, one wrinkle... <br><br>the "if (auto Fragment ...)" case doesn't run in any existing test cases. (I put an "assert(false)" there & ran check-llvm).<br><br>Any ideas if that's still reachable? Perhaps this only happens for direct bool parameters, never fragments.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Mar 17, 2017 at 8:28 AM Adrian Prantl via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">aprantl accepted this revision.<br class="gmail_msg">
aprantl added a comment.<br class="gmail_msg">
This revision is now accepted and ready to land.<br class="gmail_msg">
<br class="gmail_msg">
Took me a while to find the functional change amidst the refactoring :-)<br class="gmail_msg">
As discussed in the PR, this LGTM, thanks!<br class="gmail_msg">
One inline comment about a comment.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
================<br class="gmail_msg">
Comment at: lib/Transforms/Utils/Local.cpp:1118<br class="gmail_msg">
     // describing will always be smaller than the variable size, because<br class="gmail_msg">
     // VariableSize == Size of Alloca described by DDI. Since SI stores<br class="gmail_msg">
     // to the alloca described by DDI, if it's first operand is an extend,<br class="gmail_msg">
----------------<br class="gmail_msg">
Does this comment still match our understanding?<br class="gmail_msg">
Particularly the `The fragment we're describing will always be smaller than the variable size` bit.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D31062" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D31062</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>