[PATCH] D60061: [InstCombine] ssubo X, C -> saddo X, -C
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 07:30:47 PDT 2019
RKSimon added a reviewer: RKSimon.
RKSimon added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:2161
+ if (match(Arg1, m_APInt(C)) &&
+ !(C->isMinSignedValue() || C->isMaxSignedValue())) {
+ // Create a copy of the original constant and negate it.
----------------
Is C->isMaxSignedValue() necessary?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60061/new/
https://reviews.llvm.org/D60061
More information about the llvm-commits
mailing list