[SDAG] improve assert text for getSetCC type assumptions; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 15 Nov 2022 14:23:24 +0000 (09:23 -0500)
committerSanjay Patel <spatel@rotateright.com>
Tue, 15 Nov 2022 16:01:18 +0000 (11:01 -0500)
Having identical text for these 2 conditions made it harder
to find the root problem for issue #58994.

llvm/include/llvm/CodeGen/SelectionDAG.h

index a2ec7c4..640cb15 100644 (file)
@@ -1119,9 +1119,9 @@ public:
                    ISD::CondCode Cond, SDValue Chain = SDValue(),
                    bool IsSignaling = false) {
     assert(LHS.getValueType().isVector() == RHS.getValueType().isVector() &&
-           "Cannot compare scalars to vectors");
+           "Vector/scalar operand type mismatch for setcc");
     assert(LHS.getValueType().isVector() == VT.isVector() &&
-           "Cannot compare scalars to vectors");
+           "Vector/scalar result type mismatch for setcc");
     assert(Cond != ISD::SETCC_INVALID &&
            "Cannot create a setCC of an invalid node.");
     if (Chain)