This is an archive of the discontinued LLVM Phabricator instance.

[X86] Allow usage of prefixes as a separate instr

Authored by avt77 on Jan 16 2018, 6:49 AM.



After r315899 we removed a possibility to use prefixes as separate x86 intsrs but there are code pieces using such a possibility. This patch returns this thing: if some coder uses end-of-statement after a prefix (semicolon, comment, etc.) then we treat this prefix as a standalone intruction.

Diff Detail


Event Timeline

avt77 created this revision.Jan 16 2018, 6:49 AM
dim accepted this revision.Jan 16 2018, 2:24 PM

LGTM, works for all my test cases.

This revision is now accepted and ready to land.Jan 16 2018, 2:24 PM
This revision was automatically updated to reflect the committed changes.