[PATCH] D94466: [X86] merge "={eax}" and "~{eax}" into "=&eax" for MSInlineASM

Freddy, Ye via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 11 23:27:25 PST 2021


FreddyYe added inline comments.


================
Comment at: clang/lib/CodeGen/CGStmt.cpp:2488
+      if (Clobber == "eax") {
+        std::string::size_type position = Constraints.find("={eax}");
+        if (position != std::string::npos) {
----------------
pengfei wrote:
> `={eax}` is set in `X86_32TargetCodeGenInfo::addReturnRegisterOutputs`, which also handles `EAX:EDX` case by `=A`. I think it's better handle it in the function to cover the other case as well.
THX for review. Agree. I'll update.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94466/new/

https://reviews.llvm.org/D94466



More information about the cfe-commits mailing list