This is an archive of the discontinued LLVM Phabricator instance.

[LV] Cleanup widening of Phi instructions. NFC.
Needs ReviewPublic

Authored by michaelmaitland on Dec 9 2022, 5:25 PM.

Details

Summary
  • Refactor creating Phi recipe out of tryToCreateWidenRecipe() and into its own function since tryToCreateWidenRecipe() is multiple pages long.
  • Change assert into llvm_unreachable to avoid calling the same Legality functions multiple times.

Diff Detail

Event Timeline

michaelmaitland created this revision.Dec 9 2022, 5:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2022, 5:25 PM
michaelmaitland requested review of this revision.Dec 9 2022, 5:25 PM
michaelmaitland edited the summary of this revision. (Show Details)Dec 9 2022, 5:25 PM