[clang] [llvm] [clang-tools-extra] [AMDGPU] Fix GCNRewritePartialRegUses pass: vector regclass is selected instead of scalar. (PR #69957)
Valery Pykhtin via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 10:25:13 PST 2023
================
@@ -425,29 +414,41 @@ bool GCNRewritePartialRegUses::rewriteReg(Register Reg) const {
return false;
for (MachineOperand &MO : Range) {
----------------
vpykhtin wrote:
Yes, it avoids any processing for unsuitable registers. Replaced the loop with any_of.
https://github.com/llvm/llvm-project/pull/69957
More information about the llvm-commits
mailing list