[all-commits] [llvm/llvm-project] 3cf415: IR: Fix use-list-order round-tripping for call and...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Wed Jun 23 12:06:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cf415c6c367ced43175ebd1dc4bd9582c7f5376
      https://github.com/llvm/llvm-project/commit/3cf415c6c367ced43175ebd1dc4bd9582c7f5376
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-06-23 (Wed, 23 Jun 2021)

  Changed paths:
    M llvm/lib/IR/Instructions.cpp
    A llvm/test/Assembler/call-arg-is-callee.ll

  Log Message:
  -----------
  IR: Fix use-list-order round-tripping for call and invoke

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 operands in callbr
(so there was no bug to fix), but that code was updated for consistency.

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

Differential Revision: https://reviews.llvm.org/D104805




More information about the All-commits mailing list