This is an archive of the discontinued LLVM Phabricator instance.

[mips][ias] Fold needsExpansion() and expandInstruction() together. NFC.
ClosedPublic

Authored by dsanders on Oct 23 2015, 1:51 AM.

Details

Summary

Previously we maintained two separate switch statements that had to be kept in
sync. This patch merges them into a single switch.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 38217.Oct 23 2015, 1:51 AM
dsanders retitled this revision from to [mips][ias] Fold needsExpansion() and expandInstruction() together. NFC..
dsanders updated this object.
dsanders added a reviewer: vkalintiris.
dsanders added a subscriber: llvm-commits.
vkalintiris accepted this revision.Oct 26 2015, 5:59 AM
vkalintiris edited edge metadata.

LGTM. Run clang-format before submitting this because some lines that use the ternary operator have width larger than 80-cols.

This revision is now accepted and ready to land.Oct 26 2015, 5:59 AM
dsanders closed this revision.Oct 26 2015, 4:52 PM

Thanks. The 80-cols issues were fixed in the commit.