Reduction PHI in SLP

Hi,
I am trying to understand how llvm’s SLP vectorizer vectorizes reduction. I get the gist but don’t see how phi nodes come into play here. Why does matchAssociativeReduction take an additional phi node as an argument?
Thanks in advance,
Tom