[PATCH] D49423: [InstSimplify] fold srem instruction if its two operands are negatived.

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 06:05:29 PDT 2018


shchenz added a comment.

more testcases are added at https://reviews.llvm.org/rL337543



================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:1112
 
+  // If the two operands are negatived, return 0.
+  if (isKnownNegation(Op0, Op1))
----------------
lebedev.ri wrote:
> s/negatived/negated/? Not sure which is more correct in english.
should be negated.


https://reviews.llvm.org/D49423





More information about the llvm-commits mailing list