Skip to content

Commit 014446c

Browse files
committed
GlobalISel: Remove faulty assert in buildAtomicRMW op
Vectors are supported for fp operations now, so remove the assert. The supported type/operation combinations are best left for the verifier. Avoids regression in future commit that starts treating some vector cases as legal.
1 parent e4b0655 commit 014446c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,6 @@ MachineInstrBuilder MachineIRBuilder::buildAtomicRMW(
996996
LLT OldValResTy = OldValRes.getLLTTy(*getMRI());
997997
LLT AddrTy = Addr.getLLTTy(*getMRI());
998998
LLT ValTy = Val.getLLTTy(*getMRI());
999-
assert(OldValResTy.isScalar() && "invalid operand type");
1000999
assert(AddrTy.isPointer() && "invalid operand type");
10011000
assert(ValTy.isValid() && "invalid operand type");
10021001
assert(OldValResTy == ValTy && "type mismatch");

0 commit comments

Comments
 (0)