summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/expression/anonymous-struct/main.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-11-07 12:08:10 -0500
committerSanjay Patel <spatel@rotateright.com>2019-11-07 12:09:45 -0500
commitd9ccb6367a1089fd61bd85be6b0fbb0d6a590e05 (patch)
treeb5eee1f06d4537a10c2b19c987a7de5a930c698e /lldb/packages/Python/lldbsuite/test/commands/expression/anonymous-struct/main.cpp
parent05299c7d98ab5562ebf927847126621826358907 (diff)
downloadbcm5719-llvm-d9ccb6367a1089fd61bd85be6b0fbb0d6a590e05.tar.gz
bcm5719-llvm-d9ccb6367a1089fd61bd85be6b0fbb0d6a590e05.zip
[InstCombine] canonicalize shift+logic+shift to reduce dependency chain
shift (logic (shift X, C0), Y), C1 --> logic (shift X, C0+C1), (shift Y, C1) This is an IR translation of an existing SDAG transform added here: rL370617 So we again have 9 possible patterns with a commuted IR variant of each pattern: https://rise4fun.com/Alive/VlI https://rise4fun.com/Alive/n1m https://rise4fun.com/Alive/1Vn Part of the motivation is to allow easier recognition and subsequent canonicalization of bswap patterns as discussed in PR43146: https://bugs.llvm.org/show_bug.cgi?id=43146 We had to delay this transform because it used to allow the SLP vectorizer to create awful reductions out of simple load-combines. That problem was fixed with: rL375025 (we'll bring back load combining in IR someday...) The backend is also better equipped to deal with these patterns now using hooks like TLI.getShiftAmountThreshold(). The only remaining potential controversy is that the -reassociate pass tends to reverse this kind of pattern (to help GVN?). But since -reassociate doesn't do anything with these specific patterns, there is no conflict currently. Finally, there's a new pass proposal at D67383 for general tree-height-reduction reassociation, and it could use a cost model to decide how to optimally rearrange these kinds of ops for a target. That patch appears to be stalled. Differential Revision: https://reviews.llvm.org/D69842
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/expression/anonymous-struct/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud