[all-commits] [llvm/llvm-project] 0d849b: AMDGPU: Skip folding REG_SEQUENCE if found unknown...
Christudasan Devadasan via All-commits
all-commits at lists.llvm.org
Mon Mar 7 20:44:26 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0d849b8249e8d25484cab3e6aaba3cbcddc408dd
https://github.com/llvm/llvm-project/commit/0d849b8249e8d25484cab3e6aaba3cbcddc408dd
Author: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
A llvm/test/CodeGen/AMDGPU/skip-fold-regsequence.mir
Log Message:
-----------
AMDGPU: Skip folding REG_SEQUENCE if found unknown regclasses for its users
Use TII::getRegClass to return a valid regclass or a nullptr
if the RC is unknown for a given OpIdx. This fixes a potential
crash occurred while getting the RC from a variadic instruction.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D120813
More information about the All-commits
mailing list