diff options
author | Gil Rapaport <gil.rapaport@intel.com> | 2018-06-26 05:31:18 +0000 |
---|---|---|
committer | Gil Rapaport <gil.rapaport@intel.com> | 2018-06-26 05:31:18 +0000 |
commit | da2e2caa6c99ae067a26a0b56f976303be17d71c (patch) | |
tree | 654d72dd250671aea987ab424a14217609e79669 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 08dae1682d5f4590fa9dc0bc2ce8c614fef23579 (diff) | |
download | bcm5719-llvm-da2e2caa6c99ae067a26a0b56f976303be17d71c.tar.gz bcm5719-llvm-da2e2caa6c99ae067a26a0b56f976303be17d71c.zip |
[InstCombine] (A + 1) + (B ^ -1) --> A - B
Turn canonicalized subtraction back into (-1 - B) and combine it with (A + 1) into (A - B).
This is similar to the folding already done for (B ^ -1) + Const into (-1 + Const) - B.
Differential Revision: https://reviews.llvm.org/D48535
llvm-svn: 335579
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions