<div dir="ltr">Tried testing it with things like Undefined Behaivor Sanitizer (or other sanitizers - memory/address) or valgrind?<br><br>Often "program works sometimes and doesn't work other times" is because the program has undefined behavior in it & the times its working are just luck.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 11, 2020 at 8:41 PM <a href="mailto:liubaosen@tsinghua.edu.cn">liubaosen@tsinghua.edu.cn</a> via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div><span></span>Hi, all,</div><div><br></div><div>I think I found a bug on mem2reg in a particular case.</div><div>When I ran opt -mem2reg -basicaa -scalar-evolution -loops -da -analyze opts.ll, it collapsed. While without mem2reg option, it runs well. so I guess it has something to do with mem2reg.</div><div>The relative files have been affixed, please check them for me.</div><div>Thanks in advance.</div>
<div><br></div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="margin:10px;font-family:verdana;font-size:10pt"><div><a href="mailto:liubaosen@tsinghua.edu.cn" target="_blank">liubaosen@tsinghua.edu.cn</a></div></div></span></div>
</div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>