This is an archive of the discontinued LLVM Phabricator instance.

[LegalTypes] Move VSELECT node creation out of WidenVSELECTAndMask and push to 2 of the 3 callers.
ClosedPublic

Authored by craig.topper on Aug 6 2020, 12:48 PM.

Details

Summary

One of the callers only wants the condition, but the vselect can
be simplified by getNode making it hard or impossible to retrieve
the condition.

Instead, return the condition and make the other 2 callers
responsible for creating the vselect node using the condition.
Rename the function to WidenVSELECTMask accordingly.

Fixes PR47019

Diff Detail

Event Timeline

craig.topper created this revision.Aug 6 2020, 12:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2020, 12:48 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
craig.topper requested review of this revision.Aug 6 2020, 12:48 PM
This revision is now accepted and ready to land.Aug 6 2020, 12:52 PM