This is an archive of the discontinued LLVM Phabricator instance.

[LegalizeVectorOps] Pas the post-UpdateNodeOperands version of Op to ExpandLoad/ExpandStore
ClosedPublic

Authored by craig.topper on Dec 30 2019, 3:21 PM.

Details

Summary

UpdateNodeOperands might CSE to another existing node. So we should make sure we're legalizing that node otherwise we might fail to hook up the operands properly. I've moved the result registration up to the caller to avoid having to pass both Result and Op into the functions where it might be confusing which is which.

This address 2 other issues pointed out in D71861.

Diff Detail

Event Timeline

craig.topper created this revision.Dec 30 2019, 3:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 30 2019, 3:21 PM
Herald added a subscriber: hiraditya. · View Herald Transcript

Remove stray diff that snuck in from another patch

RKSimon accepted this revision.Jan 3 2020, 5:56 AM

LGTM

This revision is now accepted and ready to land.Jan 3 2020, 5:56 AM
This revision was automatically updated to reflect the committed changes.