[llvm] r351055 - [SelectionDAG] Add type sanity assertions for add/sub saturation node creation.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 14 03:56:59 PST 2019
Author: rksimon
Date: Mon Jan 14 03:56:59 2019
New Revision: 351055
URL: http://llvm.org/viewvc/llvm-project?rev=351055&view=rev
Log:
[SelectionDAG] Add type sanity assertions for add/sub saturation node creation.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=351055&r1=351054&r2=351055&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Jan 14 03:56:59 2019
@@ -4827,6 +4827,10 @@ SDValue SelectionDAG::getNode(unsigned O
case ISD::SMAX:
case ISD::UMIN:
case ISD::UMAX:
+ case ISD::SADDSAT:
+ case ISD::SSUBSAT:
+ case ISD::UADDSAT:
+ case ISD::USUBSAT:
assert(VT.isInteger() && "This operator does not apply to FP types!");
assert(N1.getValueType() == N2.getValueType() &&
N1.getValueType() == VT && "Binary operator types must match!");
More information about the llvm-commits
mailing list