[PATCH] D51991: [WebAssembly] Make tied inline asm operands work again

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 12 14:28:45 PDT 2018


aheejin added a comment.

@dschuff Re: about your question asked in person:
If a reg operand gets tied to another operand in instruction selection, they become the same register in here <https://github.com/llvm-mirror/llvm/blob/993ef0ca960f8ffd107c33bfbf1fd603bcf5c66c/lib/CodeGen/TwoAddressInstructionPass.cpp#L510-L513> in TwoAddressInstructionPass. So they are assigned to a same local <https://github.com/llvm-mirror/llvm/blob/993ef0ca960f8ffd107c33bfbf1fd603bcf5c66c/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp#L70-L78> in this ExplicitLocal pass, so we don't need to worry two tied operands ending up in different locals.


Repository:
  rL LLVM

https://reviews.llvm.org/D51991





More information about the llvm-commits mailing list