aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2024-02-20 15:58:18 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2024-02-20 15:58:29 +0000
commit2f1e33df3239714d54665787bd7decdcf35fd60c (patch)
treea291c4dd36f3432273ac892c301255691b134993 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parent539febfe30fd895996cf2579d3f0cdd2a708ee61 (diff)
downloadllvm-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