diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2024-02-20 15:58:18 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2024-02-20 15:58:29 +0000 |
commit | 2f1e33df3239714d54665787bd7decdcf35fd60c (patch) | |
tree | a291c4dd36f3432273ac892c301255691b134993 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | 539febfe30fd895996cf2579d3f0cdd2a708ee61 (diff) | |
download | llvm-2f1e33df3239714d54665787bd7decdcf35fd60c.zip llvm-2f1e33df3239714d54665787bd7decdcf35fd60c.tar.gz llvm-2f1e33df3239714d54665787bd7decdcf35fd60c.tar.bz2 |
[X86] Fold add(psadbw(X,0),psadbw(Y,0)) -> psadbw(add(X,Y),0)
If the vXi8 add(X,Y) is guaranteed not to overflow then we can push the addition though the psadbw nodes (being used for reduction) and only need a single psadbw node.
Noticed while working on CTPOP reduction codegen
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions