aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-02-18 11:43:03 -0500
committerSanjay Patel <spatel@rotateright.com>2022-02-18 11:55:50 -0500
commita2963d871ee5c2786de409b42f67ffcc39e53184 (patch)
tree65855c38ce23a8d39402833e192354ffc8ab32ca /lldb/source/Commands/CommandObjectCommands.cpp
parentbf296ea6bbb13177dea9e5a72c3e446d5c5a1d81 (diff)
downloadllvm-a2963d871ee5c2786de409b42f67ffcc39e53184.zip
llvm-a2963d871ee5c2786de409b42f67ffcc39e53184.tar.gz
llvm-a2963d871ee5c2786de409b42f67ffcc39e53184.tar.bz2
[SDAG] fold sub-of-shift to add-of-shift
This fold is done in IR: https://alive2.llvm.org/ce/z/jWyFrP There is an x86 test that shows an improvement from the added flexibility of using add (commutative). The other diffs are presumed neutral. Note that this could also be folded to an 'xor', but I'm not sure if that would be universally better (eg, x86 can convert adds more easily into LEA). This helps prevent regressions from a potential fold for issue #53829.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions