[PATCH] D60061: [InstCombine] ssubo X, C -> saddo X, -C
Dan Robertson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 2 13:41:09 PDT 2019
dlrobertson marked 2 inline comments as done.
dlrobertson added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:2170-2171
+ }
if (Instruction *I = foldIntrinsicWithOverflowCommon(II))
return I;
----------------
lebedev.ri wrote:
> Shouldn't we do this first?
Originally I did this so we wouldn't run this function twice (once here and once as `sadd_with_overflow`) , but you're correct. We need to run this first so we don't miss the optimization if the first arg is the constant.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60061/new/
https://reviews.llvm.org/D60061
More information about the llvm-commits
mailing list