This patch includes some clean-ups to tryToCreateRecipe, suggested in
D77973.
It includes:
- Renaming tryToCreateRecipe to tryToCreateWidenRecipe.
- Move VPBB insertion logic to caller of tryToCreateWidenRecipe.
- Hoists instruction checks to tryToCreateWidenRecipe, making it clearer which instructions are handled by which recipe, simplifying the checks by using early exits.
- Split up handling of induction PHIs and truncates using inductions.
No need to cast I into TruncInst.