<div dir="ltr"><div>Martin:</div><div><br></div><div>I suspect this is an issue with post-DAG legalization store merging in the DAGCombiner. If you have a custom lowered type the DAGCombiner may end up merging a set of stores and immediately splitting them up in legalization. You should be able to disable this pass universally by overriding mergeStoresAfterLegalization() or conditionally for cases that shouldn't match with canMergeStoresTo. <br></div><div><br></div><div>You should able able to verify by finding the loop of nodes considered with "-debug" on.</div><div><br></div><div>-Nirav<br><div><br></div><div><br></div></div></div><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Feb 25, 2018 at 9:36 AM Martin J. O'Riordan 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi LLVM-Devs,<br>
<br>
I am in the process of updating our out-of-tree implementation from v5.0 to<br>
v6.0 RC3, and while it builds and mostly runs, I am having trouble with a<br>
small number of tests where the 'WorklistMap' in 'DAGCombiner::Run' never<br>
becomes empty.  This is resulting in a runaway state of continuous heap<br>
allocation until the process exhausts all system memory.<br>
<br>
But I can't get a handle on why it is doing this, and it is not obvious to<br>
me that the changes between v5.0 and v6.0 RC3 invalidate our implementation<br>
in a way that might cause this.  The only time I see our code entered is<br>
when lowering is called for vector element insert by 'LegalizeOp'.  Does<br>
anybody have an advice on how I should approach debugging this?<br>
<br>
Thanks,<br>
<br>
        MartinO<br>
<br>
<br>
_______________________________________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>