Original patch by: Fabian Wahlster <email@example.com>
This deserves an explanation I guess.
Remove commented code.
Also it seems too restrictive. It prohibits the selection even if scalar value is an inlinable literal.
Needs some edge case tests where the values are uniform but still need to be in a VGPR
Needs a run line with a target that doesn't have these instructions to make sure they aren't emitted
Ah, I thought the idea was to comment what this matches. I'm making this clearer.
Add missing V_XAD_U32 pattern.