aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2020-04-03 17:11:25 -0700
committerJessica Paquette <jpaquette@apple.com>2020-06-15 09:43:24 -0700
commit1ac8451a9b1e27542e1783e7367a62ca3e47dcc5 (patch)
tree3ea1bd3029781834d3f92c124c4c1ad9db401a64 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent93f602b339f62e058ce2c212c86f9f0ca3b20126 (diff)
downloadllvm-1ac8451a9b1e27542e1783e7367a62ca3e47dcc5.zip
llvm-1ac8451a9b1e27542e1783e7367a62ca3e47dcc5.tar.gz
llvm-1ac8451a9b1e27542e1783e7367a62ca3e47dcc5.tar.bz2
[GlobalISel] Simplify G_ADD when it has (0-X) on the LHS or RHS
This implements the following combines: ((0-A) + B) -> B-A (A + (0-B)) -> A-B Porting over the basic algebraic combines from the DAGCombiner. There are several combines which fold adds away into subtracts. This is just the simplest one. I noticed that add combines are some of the most commonly hit across CTMark, (via print statements when they fire), so I'm porting over some of the obvious ones. This gives some minor code size improvements on CTMark at -O3 on AArch64. Differential Revision: https://reviews.llvm.org/D77453
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions