This is an archive of the discontinued LLVM Phabricator instance.

[NFC][LegalizeTypes][VP] Refactor code in SplitRes_Select
AbandonedPublic

Authored by Jimerlife on May 26 2022, 12:01 AM.

Details

Summary

Refactor code in SplitRes_Select

Diff Detail

Event Timeline

Jimerlife created this revision.May 26 2022, 12:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2022, 12:01 AM
Jimerlife requested review of this revision.May 26 2022, 12:01 AM

I don't understand the motivation for this change. LLVM coding guidelines encourage using early returns.

llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
547

This assert is exactly opposite the condition of the previous if. It doesn't check anything new.

I don't understand the motivation for this change. LLVM coding guidelines encourage using early returns.

Thank for your reminder. Before I don't konw this rule. I will abandon this change.

Jimerlife abandoned this revision.May 26 2022, 3:21 AM