author | Erik Eckstein <eeckstein@apple.com> | |
Wed, 17 Dec 2014 07:29:19 +0000 (07:29 +0000) | ||
committer | Erik Eckstein <eeckstein@apple.com> | |
Wed, 17 Dec 2014 07:29:19 +0000 (07:29 +0000) | ||
commit | 96bd465d6ce31fbdaa09cbc1205797de1fd3a529 | |
tree | c8480788f37ce1cfe3edb7ca4d507e338fc40dc3 | tree | snapshot (tar.xz tar.gz zip) |
parent | 80c5783c8894f014d46b59f9796d5177f9e1fc66 | commit | diff |
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
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