OSDN Git Service

[InstSimplify] Simplify uadd/sadd/umul/smul with overflow intrinsics when the Zero...
authorCraig Topper <craig.topper@gmail.com>
Wed, 24 May 2017 17:05:28 +0000 (17:05 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 24 May 2017 17:05:28 +0000 (17:05 +0000)
commitf9152c247d9aea0c9f9603dd4dc1d6b0d8c665d2
treec2c1b0476c0655b8b04ec8999f326789670bbac8
parente3a1116322bb266387683482c977c968117105fa
[InstSimplify] Simplify uadd/sadd/umul/smul with overflow intrinsics when the Zero or Undef is on the LHS.

Summary: 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.

Reviewers: spatel, majnemer, davide

Reviewed By: spatel

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D33473

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/call.ll