Page MenuHomePhabricator

[X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when the two collides
ClosedPublic

Authored by coby on Jun 27 2017, 11:54 PM.

Details

Summary

On MS-style, the following snippet:

int eax;
__asm mov eax, ebx

should yield loading of ebx, into the location pointed by the variable eax

This patch sees to it.

Currently, a reg-to-reg move would have been invoked.

llvm: D34739

Diff Detail

Repository
rL LLVM