<div dir="ltr">Can you give me the unreduced test? This one appears to be fine. I suspect the issue here is that the unreduced test is sufficiently complex that FindBetterChain gives up and fails to improve the chains of the stores. leaving the stores in a chain sequence which we won't catch as is. <div><br></div><div>I have a patch in review that should fix the issue (<a href="https://reviews.llvm.org/D31068">https://reviews.llvm.org/D31068</a>) and I've held back on reverting the change for now. </div><div><br></div><div>-Nirav</div><div><br></div><div><div><div><br></div><div><div><br></div></div></div></div></div>