[all-commits] [llvm/llvm-project] f05b64: [FastISel] Don't trivially kill extractvalues (PR4...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Mar 29 16:59:15 PDT 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: f05b649610564b11c481a20598dbb3f532c4602a
      https://github.com/llvm/llvm-project/commit/f05b649610564b11c481a20598dbb3f532c4602a
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/FastISel.h
    M llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
    A llvm/test/CodeGen/X86/pr49467.ll

  Log Message:
  -----------
  [FastISel] Don't trivially kill extractvalues (PR49467)

All extractvalues of the same value at the same index will map to
the same register, so even if one specific extractvalue only has
one use, we should not mark it as a trivial kill, as there may be
more extractvalues later.

Fixes https://bugs.llvm.org/show_bug.cgi?id=49467.

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

(cherry picked from commit 55ae279ba7a5905f39ce3ae79eac7834a4a134cc)




More information about the All-commits mailing list