diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-10-12 01:15:47 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-10-12 01:15:47 +0000 |
commit | d36696c4e0ccd10a91bad2e3383c50347e2ea5ec (patch) | |
tree | e7f718f97621f9099197ece766895a35ab8187f8 /docs/Phabricator.rst | |
parent | 5665a3dbc909c1450ac17e311977cbaf9025525b (diff) | |
download | llvm-d36696c4e0ccd10a91bad2e3383c50347e2ea5ec.tar.gz llvm-d36696c4e0ccd10a91bad2e3383c50347e2ea5ec.tar.bz2 llvm-d36696c4e0ccd10a91bad2e3383c50347e2ea5ec.tar.xz |
Legalizer optimize a pair of div / mod to a call to divrem libcall if they are
not legal. However, it should use a div instruction + mul + sub if divide is
legal. The rem legalization code was missing a check and incorrectly uses a
divrem libcall even when div is legal.
rdar://12481395
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/Phabricator.rst')
0 files changed, 0 insertions, 0 deletions