[PATCH] D104805: IR: Fix use-list-order round-tripping for call and invoke

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 23 11:31:37 PDT 2021


dexonsmith created this revision.
dexonsmith added a reviewer: nikic.
Herald added a subscriber: hiraditya.
dexonsmith requested review of this revision.
Herald added a project: LLVM.

Fix the use-list-order for call and invoke instructions by setting the
operands in order of their index. This matches the use-list-order
prediction. Note that the verifier precludes sharing arguments in
callbr, but I updated the code there as well for consistency.

Bug was found during review of https://reviews.llvm.org/D104740.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104805

Files:
  llvm/lib/IR/Instructions.cpp
  llvm/test/Assembler/uselistorder-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104805.354036.patch
Type: text/x-patch
Size: 3568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210623/b2def9fc/attachment.bin>


More information about the llvm-commits mailing list