[InstCombine] reassociate subtract-from-constant to add-constant
(C - X) + Y --> (Y - X) + C Moving the constant operand to an 'add' gives more flexibility to subsequent reassociation patterns, and it may be better for codegen on targets that don't have subtract-from-immediate instructions.
parent
a721b6b1
Please register or sign in to comment