[PATCH] D68123: [CodeGen][SelectionDAG] Fix tiny bug in ExpandIntRes_UADDSUBO
Itay Bookstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 27 02:10:12 PDT 2019
ibookstein updated this revision to Diff 222103.
ibookstein added a comment.
Changed diff to be -U999999
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68123/new/
https://reviews.llvm.org/D68123
Files:
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
@@ -2258,7 +2258,7 @@
SDValue Ovf;
bool HasOpCarry = TLI.isOperationLegalOrCustom(
- N->getOpcode() == ISD::ADD ? ISD::ADDCARRY : ISD::SUBCARRY,
+ N->getOpcode() == ISD::UADDO ? ISD::ADDCARRY : ISD::SUBCARRY,
TLI.getTypeToExpandTo(*DAG.getContext(), LHS.getValueType()));
if (HasOpCarry) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68123.222103.patch
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190927/e9c5b618/attachment.bin>
More information about the llvm-commits
mailing list