<div dir="ltr">Hi All,<div><br></div><div>The 'make check -j' command fails occasionally for the <span class="" id=":1nd.2" tabindex="-1" style="">testcase</span> remove-global-vars.ll, which is added in a recent commit.</div><div><br></div><div>We suspect this is because of a race condition occurring due to the simultaneous read of the file reduce.ll by <span class="" id=":1nd.4" tabindex="-1" style="">FileCheck</span> (when make check -j is used), which is generated by <span class="" id=":1nd.5" tabindex="-1" style="">llvm</span>-reduce. The file reduce.ll is both consumed by the <span class="" id=":1nd.6" tabindex="-1" style="">testcases</span> remove-global-vars.ll and <span style="color:rgb(51,51,51);font-family:"Courier New";font-size:10pt">remove-<span class="" id=":1nd.7" tabindex="-1" style="">funcs</span>.ll, which</span><span style="color:rgb(51,51,51);font-family:"Courier New";font-size:10pt"> when executed in parallel, one of them might read the wrong reduce.ll generated by the other.</span></div><div><span style="color:rgb(51,51,51);font-family:"Courier New";font-size:10pt"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Courier New";font-size:10pt">Could someone confirm this indeed is the case?</span></div><div><span style="color:rgb(51,51,51);font-family:"Courier New";font-size:10pt"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Courier New";font-size:10pt">Regards,</span></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>------------------------------</div><div><span class="" id=":1nd.8" tabindex="-1" style="">Raghesh</span> <span class="" id=":1nd.9" tabindex="-1" style="">Aloor</span><br></div><div>Sr. Software Engineer</div><div><span class="" id=":1nd.10" tabindex="-1" style="">AMD</span> India Pvt. Ltd.</div><div><span class="" id=":1nd.11" tabindex="-1" style="">Bengaluru</span>.</div><div>------------------------------</div></div></div></div></div></div></div></div></div></div>