aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorChangpeng Fang <changpeng.fang@amd.com>2024-07-19 00:46:37 -0700
committerGitHub <noreply@github.com>2024-07-19 00:46:37 -0700
commit25f4bd8872b2c15c641c8e915afb54b39d119d8a (patch)
treeb7cd2b31c81822d667d7d94b5c8b9f70231f5b8e /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parentc81366709574bb95bad86011a44e80a7f97f2c56 (diff)
downloadllvm-25f4bd8872b2c15c641c8e915afb54b39d119d8a.zip
llvm-25f4bd8872b2c15c641c8e915afb54b39d119d8a.tar.gz
llvm-25f4bd8872b2c15c641c8e915afb54b39d119d8a.tar.bz2
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.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions