<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi everyone,</div><div>I want to test the passes in llvm, and I got some passes sequences that caused the crash of opt.</div><div>Although I can use bugpoint to narrow down <span style="font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;">the source of problems, I can only get some reduced and </span></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">simplified IR and passes to reproduce the problem. My question is how to get the reduced IR of the original IR</font></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">file to reproduce the problem. For example,</font></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">"opt a.bc -a -b -c -d (where a, b, c and d are passes)" has a crash problem caused by "</font><span style="font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;">-a -b -c -d</span><span style="font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;">", so we can use </span></div><div><span style="font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;">bugpoint to narrow down the source of problems, thus bugpoint will tell us "</span><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">You can reproduce the problem with: </font></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">opt bugpoint-reduced-simplified.bc -c</font><span style="font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;">". However, for the "</span><span style="font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;">bugpoint-reduced-simplified.bc</span><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">", I do not know the actual wrong points</font></div><div><span style="font-family: "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;">of the original "a.bc", and the pass "-c" is good for "a.bc", the actual wrong passes sequence is "-b -c" for "a.bc", i.e., we need to run pass "-b" before </span></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">pass "-c" to reproduce the problem on the original IR file. </font></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">So how to reduce the original IR and get the actual wrong passes sequence? Are there any tools? Or there are some special tips of bugpoint</font></div><div><font face="Lucida Grande, Lucida Sans Unicode, Geneva, Verdana, sans-serif">for this purpose? </font></div></div><br><br><span title="neteasefooter"><p> </p></span>