[LV] Simplify tryToWiden as recipes are not re-used (NFC).
authorFlorian Hahn <flo@fhahn.com>
Sat, 4 Apr 2020 14:19:20 +0000 (15:19 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sat, 4 Apr 2020 17:30:50 +0000 (18:30 +0100)
commita2b18c5a0809af2473db795538cc6ce04670e877
tree1ef00adc6c766cd9f6ebe5cfdb957c213102ce94
parent160f5aa65fac07d77dc7e7ef715c95b018ac15c9
[LV] Simplify tryToWiden as recipes are not re-used (NFC).

After 49d00824bbbb, VPWidenRecipe only stores a single instruction.
tryToWiden can simply return the widen recipe, like other helpers in
VPRecipeBuilder.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h