llvm-project
909d6620 - [SLP][NFC] Store reduction context hint as part of VectorValuesAndScales (#229653)

Commit
3 days ago
[SLP][NFC] Store reduction context hint as part of VectorValuesAndScales (#229653) Using the hint from the last tree that we attempted to vectorize is incorrect as it does not accurately represent the different trees that make up the reduction, each reduction gets its own hint. The hint used for the horizontal accumulation reduction is also incorrect because the hint shouldn't be taken from the root node, the hint should come from the `phi`/`accumulator`. This is a NFC MR because the context hints are only used for `i1` reductions. CastContextHint's are only generated for loads, and `i1` loads won't vectorize.
Author
Parents
Loading