[PATCH] D54534: [InstCombine] Add support for saturating add/sub
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 26 14:23:12 PST 2018
spatel added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:2046-2054
OverflowCheckFlavor OCF =
IntrinsicIDToOverflowCheckFlavor(II->getIntrinsicID());
assert(OCF != OCF_INVALID && "unexpected!");
Value *OperationResult = nullptr;
Constant *OverflowResult = nullptr;
if (OptimizeOverflowCheck(OCF, II->getArgOperand(0), II->getArgOperand(1),
----------------
Can we reuse this code for the new intrinsics?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54534/new/
https://reviews.llvm.org/D54534
More information about the llvm-commits
mailing list