[all-commits] [llvm/llvm-project] 25f4bd: AMDGPU: Clear kill flags after FoldZeroHighBits (#...
Changpeng Fang via All-commits
all-commits at lists.llvm.org
Fri Jul 19 00:46:58 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 25f4bd8872b2c15c641c8e915afb54b39d119d8a
https://github.com/llvm/llvm-project/commit/25f4bd8872b2c15c641c8e915afb54b39d119d8a
Author: Changpeng Fang <changpeng.fang at amd.com>
Date: 2024-07-19 (Fri, 19 Jul 2024)
Changed paths:
M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
A llvm/test/CodeGen/AMDGPU/fold-zero-high-bits-clear-kill-flags.mir
Log Message:
-----------
AMDGPU: Clear kill flags after FoldZeroHighBits (#99582)
After folding, all uses of the result register are going to be replaced
by the operand register. The kill flags on the uses of the result and
operand registers are no longer valid after the replacement, and need to
be cleared.
The only exception is, however, if the kill flag is set for the operand
register, we are sure the last use of the result register is the new
last use of the operand register, and thus we are safe to keep the kill
flags.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list