diff options
author | woruyu <99597449+woruyu@users.noreply.github.com> | 2025-07-09 17:26:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-09 10:26:12 +0100 |
commit | 7edf6bfb54736ea040246e16ece9c784832a4062 (patch) | |
tree | 94ef6f25f5faa93698d458615385d7dc2c198b3b /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 9c97b38d44c5dfcab6e97b5177ebcc7b978fb476 (diff) | |
download | llvm-7edf6bfb54736ea040246e16ece9c784832a4062.zip llvm-7edf6bfb54736ea040246e16ece9c784832a4062.tar.gz llvm-7edf6bfb54736ea040246e16ece9c784832a4062.tar.bz2 |
[DAG][X86] Use pattern matching to simplify PSADBW+ADD combine (#147637)
This patch refactors the add(psadbw(x, 0), psadbw(y, 0)) -> psadbw(x + y, 0) combine to use SDPatternMatch matchers instead of manually checking opcodes and operands.
Co-authored-by: Simon Pilgrim <llvm-dev@redking.me.uk>
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions