This is an archive of the discontinued LLVM Phabricator instance.

[LegalizeVectorOps] code refactor for LegalizeOp - NFC
ClosedPublic

Authored by shchenz on Dec 13 2021, 7:06 AM.

Details

Summary

This is a small code refactor for LegalizeOp. LOAD/STORE can also use the common logic.

This is based on the typo fix patch D115637

Diff Detail

Event Timeline

shchenz created this revision.Dec 13 2021, 7:06 AM
shchenz requested review of this revision.Dec 13 2021, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 13 2021, 7:06 AM
craig.topper added inline comments.Dec 13 2021, 9:33 AM
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
273

This can reuse ExtType.

274

Put MemoryVT in a local variable instead of calling getMemoryVT twice

shchenz updated this revision to Diff 394084.Dec 13 2021, 4:40 PM
shchenz marked 2 inline comments as done.

address comments

This revision is now accepted and ready to land.Dec 13 2021, 5:29 PM
This revision was landed with ongoing or failed builds.Dec 13 2021, 7:59 PM
This revision was automatically updated to reflect the committed changes.