This is an archive of the discontinued LLVM Phabricator instance.

[mips] [IAS] Inline assemble-time shifting out of createLShiftOri. NFC.
ClosedPublic

Authored by tomatabacu on Apr 10 2015, 8:05 AM.

Details

Summary

Do the assemble-time shifts from createLShiftOri at the source, which groups all the shifting together, closer to the main logic path, and
store the results in concisely-named variables to improve code clarity.

Diff Detail

Event Timeline

tomatabacu updated this revision to Diff 23600.Apr 10 2015, 8:05 AM
tomatabacu retitled this revision from to [mips] [IAS] Inline assemble-time shifting out of createLShiftOri. NFC..
tomatabacu updated this object.
tomatabacu edited the test plan for this revision. (Show Details)
tomatabacu added a reviewer: dsanders.
tomatabacu added a subscriber: Unknown Object (MLST).
dsanders added inline comments.Apr 10 2015, 9:17 AM
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
1739

Why not this?

(ImmValue >> 16) & 0xffff

Likewise for the others.

1766

Optional: Consider names of the form Bits47To32

tomatabacu updated this revision to Diff 23915.Apr 17 2015, 5:28 AM

Addressed review comments.

dsanders accepted this revision.Apr 27 2015, 2:27 AM
dsanders edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 27 2015, 2:27 AM
tomatabacu closed this revision.Apr 29 2015, 3:23 AM