Skip to content

Commit 19512cb

Browse files
ritter-x2aarsenm
andauthored
Update llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Co-authored-by: Matt Arsenault <[email protected]>
1 parent 9b8bee2 commit 19512cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15877,7 +15877,7 @@ SITargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI_,
1587715877
RC = TRI->getAGPRClassForBitWidth(Width);
1587815878
if (RC) {
1587915879
Reg = TRI->getMatchingSuperReg(Reg, AMDGPU::sub0, RC);
15880-
if (Reg == 0U) {
15880+
if (!Reg ) {
1588115881
// The register class does not contain the requested register,
1588215882
// e.g., because it is an SGPR pair that would violate alignment
1588315883
// requirements.

0 commit comments

Comments
 (0)