]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Strength reduce intrinsics with overflow into regular arithmetic operations if possible.
authorErik Eckstein <eeckstein@apple.com>
Wed, 17 Dec 2014 07:29:19 +0000 (07:29 +0000)
committerErik Eckstein <eeckstein@apple.com>
Wed, 17 Dec 2014 07:29:19 +0000 (07:29 +0000)
commit96bd465d6ce31fbdaa09cbc1205797de1fd3a529
treec8480788f37ce1cfe3edb7ca4d507e338fc40dc3
parent80c5783c8894f014d46b59f9796d5177f9e1fc66
Strength reduce intrinsics with overflow into regular arithmetic operations if possible.

Some intrinsics, like s/uadd.with.overflow and umul.with.overflow, are already strength reduced.
This change adds other arithmetic intrinsics: s/usub.with.overflow, smul.with.overflow.
It completes the work on PR20194.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224417 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineAddSub.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/intrinsics.ll