diff options
author | Sanjay Patel <spatel@rotateright.com> | 2023-02-28 14:18:28 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2023-02-28 14:21:13 -0500 |
commit | 542e70f96c56edbcab5278c2952caa1a3f963fe6 (patch) | |
tree | 2cf03522a76f1bf79af72cb255f8c2800941045b /lldb/source/Interpreter/ScriptInterpreter.cpp | |
parent | a721b6b17902439e6974209119ad5f6830ed5e4c (diff) | |
download | llvm-542e70f96c56edbcab5278c2952caa1a3f963fe6.zip llvm-542e70f96c56edbcab5278c2952caa1a3f963fe6.tar.gz llvm-542e70f96c56edbcab5278c2952caa1a3f963fe6.tar.bz2 |
[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.
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
0 files changed, 0 insertions, 0 deletions