Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Sanjay Patel 542e70f96c [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.
2023-02-28 14:21:13 -05:00

97 KiB