This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Remove no-op code, duplicated, with multiple confusing comments, from x86AssemblyInspectionEngine::jmp_to_reg_p
ClosedPublic

Authored by jasonmolenda on Aug 2 2022, 4:16 PM.

Details

Summary

Thanks to @fixathon for catching this code I added in https://reviews.llvm.org/D62764. This method clears the lower 3 bits of the second byte of an instruction, then compares it to a few values including 0x20 (fine) and 0x24, twice, with comments that seem to contradict the behavior. Of course, having masked off the low 3 bits, these duplicated entries are never matched.

Diff Detail

Event Timeline

jasonmolenda created this revision.Aug 2 2022, 4:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 4:16 PM
jasonmolenda requested review of this revision.Aug 2 2022, 4:16 PM
fixathon accepted this revision.Aug 2 2022, 4:21 PM

LGTM Thanks for fixing this!

This revision is now accepted and ready to land.Aug 2 2022, 4:21 PM