[all-commits] [llvm/llvm-project] 3d02fa: [GlobalISel] CombinerHelper: Fix a bug in matchCom...

Volkan Keles via All-commits all-commits at lists.llvm.org
Mon Dec 2 12:22:46 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d02fa6da7d250e086b01b4ec66b513debb7950d
      https://github.com/llvm/llvm-project/commit/3d02fa6da7d250e086b01b4ec66b513debb7950d
  Author: Volkan Keles <vkeles at apple.com>
  Date:   2019-12-02 (Mon, 02 Dec 2019)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/combine-copy.mir

  Log Message:
  -----------
  [GlobalISel] CombinerHelper: Fix a bug in matchCombineCopy

Summary:
When combining COPY instructions, we were replacing the destination registers
with the source register without checking register constraints. This patch adds
a simple logic to check if the constraints match before replacing registers.

Reviewers: qcolombet, aditya_nandakumar, aemerson, paquette, dsanders, Petar.Avramovic

Reviewed By: aditya_nandakumar

Subscribers: rovka, hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list