This is an archive of the discontinued LLVM Phabricator instance.

[VP] Correct LEGALPOS for more VP nodes.
ClosedPublic

Authored by craig.topper on Aug 31 2022, 1:34 PM.

Details

Summary

LEGALPOS appears to only be used by LegalizeVectorOps. It needs
to point at a vector operand. Stores need to point at the second
operand since the result and the first operand are MVT::Other.
Reductions need to point at the second operand since the result
and the first operand are scalsrs.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 31 2022, 1:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2022, 1:34 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
craig.topper requested review of this revision.Aug 31 2022, 1:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2022, 1:34 PM
rogfer01 accepted this revision.Aug 31 2022, 11:04 PM

Good catch. LGTM.

This revision is now accepted and ready to land.Aug 31 2022, 11:04 PM
This revision was automatically updated to reflect the committed changes.