This is an archive of the discontinued LLVM Phabricator instance.

[LV] Move code from widenSelectInstruction to VPWidenSelectRecipe. (NFC)
ClosedPublic

Authored by fhahn on Nov 20 2021, 12:46 PM.

Details

Summary

The code in widenSelectInstruction has already been transitioned
to only rely on information provided by VPWidenSelectRecipe directly.

Moving the code directly to VPWidenSelectRecipe::execute completes
the transition for the recipe.

It provides the following advantages:

  1. Less indirection, easier to see what's going on.
  2. Removes accesses to fields of ILV.
  1. in particular ensures that no dependencies on

fields in ILV for vector code generation are re-introduced.

Diff Detail