Commit 7edf6bf
[DAG][X86] Use pattern matching to simplify PSADBW+ADD combine (llvm#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 <[email protected]>1 parent 9c97b38 commit 7edf6bf
1 file changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57872 | 57872 | | |
57873 | 57873 | | |
57874 | 57874 | | |
| 57875 | + | |
| 57876 | + | |
57875 | 57877 | | |
57876 | 57878 | | |
57877 | | - | |
57878 | | - | |
57879 | | - | |
57880 | | - | |
57881 | | - | |
57882 | | - | |
57883 | | - | |
57884 | | - | |
57885 | | - | |
57886 | | - | |
| 57879 | + | |
| 57880 | + | |
| 57881 | + | |
| 57882 | + | |
| 57883 | + | |
| 57884 | + | |
| 57885 | + | |
57887 | 57886 | | |
57888 | 57887 | | |
57889 | 57888 | | |
57890 | | - | |
57891 | 57889 | | |
57892 | 57890 | | |
57893 | 57891 | | |
| |||
0 commit comments