projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daf1a1f
)
[SDAG] improve assert text for getSetCC type assumptions; NFC
author
Sanjay Patel
<spatel@rotateright.com>
Tue, 15 Nov 2022 14:23:24 +0000
(09:23 -0500)
committer
Sanjay 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
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/CodeGen/SelectionDAG.h
b/llvm/include/llvm/CodeGen/SelectionDAG.h
index
a2ec7c4
..
640cb15
100644
(file)
--- a/
llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/
llvm/include/llvm/CodeGen/SelectionDAG.h
@@
-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)