[llvm] [AMDGPU] Reject named single register inline asm constraints for wider types (PR #200771)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 02:25:15 PDT 2026
================
@@ -19287,8 +19287,11 @@ SITargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI_,
}
}
- // Check for lossy scalar/vector conversions.
- if (VT.isVector() && VT.getSizeInBits() != 32)
+ // Reject types that do not fit a single 32-bit register: any scalar wider
+ // than 32 bits, or a vector that is not exactly 32 bits.
+ if (VT.SimpleTy != MVT::Other &&
----------------
aobolensk wrote:
Before my change any **vector** type != 32 was rejected, for scalars there were no rejections
https://github.com/llvm/llvm-project/pull/200771
More information about the llvm-commits
mailing list