[PATCH] D111857: 【TwoAddressInstructionPass】 Put all new instructions into DistanceMap

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 19 20:19:23 PDT 2021


pengfei added inline comments.


================
Comment at: llvm/test/CodeGen/X86/distancemap.mir:71
+    ; CHECK-NEXT: [[COPY6:%[0-9]+]]:gr16 = COPY [[COPY3]]
+    ; CHECK-NEXT: [[ADD16rr:%[0-9]+]]:gr16 = ADD16rr [[ADD16rr]], killed [[COPY4]], implicit-def $eflags
+    ; CHECK-NEXT: undef %11.sub_16bit:gr32 = COPY killed [[ADD16rr]]
----------------
This does seem correct to me. The input in line 88 is
`%10:gr16 = ADD16rr killed %3:gr16($di), killed %5:gr16, ...`
But the output turns into add `[[COPY4]]($esi)`?


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

https://reviews.llvm.org/D111857



More information about the llvm-commits mailing list