<div dir="ltr"><div style>Cases like (X - (1 << 31)) + C or (X ^ (1 << 31)) + C do not get constant folding.</div><div style><br></div><div style>The attached patch reassociates the instruction operands so that we get:</div>
<div style>(X - ((1 << 31) - C)).</div><div style><br></div><div style>-- </div><div style>David Majnemer</div></div>