[all-commits] [llvm/llvm-project] 66de26: GlobalISel: Fix matchEqualDefs for instructions wi...
petar-avramovic via All-commits
all-commits at lists.llvm.org
Thu Aug 5 06:06:35 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 66de26b1f9ecf22193aea2edfac03db03f138feb
https://github.com/llvm/llvm-project/commit/66de26b1f9ecf22193aea2edfac03db03f138feb
Author: Petar Avramovic <Petar.Avramovic at amd.com>
Date: 2021-08-05 (Thu, 05 Aug 2021)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
M llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizercombiner-select.mir
Log Message:
-----------
GlobalISel: Fix matchEqualDefs for instructions with multiple defs
Instructions that produceSameValue produce same values for operands with
same index. matchEqualDefs used to return true for any two values from
different instructions that produce same values. Fix this by checking if
values are defined by operands with the same index.
Differential Revision: https://reviews.llvm.org/D107362
More information about the All-commits
mailing list