[PATCH] D64049: [TailDuplicator] Fix copy instruction emitting into the wrong block.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 17:22:33 PDT 2019


aemerson created this revision.
aemerson added reviewers: arsenm, iteratee, kparzysz.
Herald added subscribers: hiraditya, kristof.beyls, javed.absar, wdng.
Herald added a project: LLVM.

The code for duplicating instructions could sometimes try to emit copies intended to deal with unconstrainable register classes to the tail block of the original instruction, rather than before the newly cloned instruction in the predecessor block.

This was exposed by GlobalISel on arm64.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64049

Files:
  llvm/lib/CodeGen/TailDuplicator.cpp
  llvm/test/CodeGen/AArch64/taildup-inst-dup-loc.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64049.207444.patch
Type: text/x-patch
Size: 6437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190702/bf260dcd/attachment.bin>


More information about the llvm-commits mailing list