<div dir="ltr">Hello all,<div><br></div><div>In early 2021, a transformation in InstCombine that folds 'select i1 %a, i1 %b, i1 false' to 'and i1 %a, %b' (and another one for the 'or' case as well) was removed because the folding was incorrect.</div><div><br></div><div>To explain the background about this change and a series of patches that were made, I wrote a blog post:</div><div><a href="https://aqjune.github.io/posts/2021-10-4.the-select-story.html">https://aqjune.github.io/posts/2021-10-4.the-select-story.html</a></div><div><br></div><div>I appreciate many people who helped fix it! :)<br></div><div><br></div><div>Sincerely,</div><div>Juneyoung</div></div>