<div dir="ltr">The first seems plausible, but datalayout is not optional anymore, IIRC, so the second should be impossible.<div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 24, 2016 at 1:23 PM, Jun Bum Lim <span dir="ltr"><<a href="mailto:junbuml@codeaurora.org" target="_blank">junbuml@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">junbuml added inline comments.<br>
<span class=""><br>
================<br>
Comment at: lib/Transforms/Scalar/DeadStoreElimination.cpp:238<br>
@@ +237,3 @@<br>
+<br>
+  if (MaxIntSize == 0)<br>
+    MaxIntSize = 1;<br>
----------------<br>
</span><span class="">dberlin wrote:<br>
> How and when can this happen?<br>
</span>If there is no information about LegalIntWidth extracted from datalayout, this could be 0.  If we remove the target datalayout in input IR, this will be 0.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D20262" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20262</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>