This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorize] Clean up VPReductionRecipe::execute. NFC
ClosedPublic

Authored by RosieSumpter on Oct 26 2021, 8:09 AM.

Details

Summary

Use RdxDesc->getOpcode instead of getUnderlingInstr()->getOpcode.
Move the code which finds Kind and IsOrdered to be outside the for loop
since neither of these change with the vector part.

Diff Detail