[PATCH] D33473: [InstSimplify] Simplify uadd/sadd/umul/smul with overflow intrinsics when the Zero or Undef is on the LHS.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 23 16:27:37 PDT 2017


craig.topper created this revision.

This code was migrated from InstCombine a few years ago. InstCombine had nearby code that would move Constants to the RHS for these, but InstSimplify doesn't have such code on this path.


https://reviews.llvm.org/D33473

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstSimplify/call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33473.100022.patch
Type: text/x-patch
Size: 3072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170523/3f6dd4e5/attachment.bin>


More information about the llvm-commits mailing list