Make inferLibFuncAttributes() add SExt attribute on second arg to ldexp.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 4 Nov 2020 12:49:24 +0000 (13:49 +0100)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 10 Nov 2020 17:32:15 +0000 (18:32 +0100)
commit89a1042b6ad5443935f1b542ee892bf420b061fd
tree2573719949b83c9557bb811c91db25083a9838cc
parentbb8d1437a6fb3816c21363506ccb109adda58fb3
Make inferLibFuncAttributes() add SExt attribute on second arg to ldexp.

This was missing as discovered by the SystemZ multistage bot:
http://lab.llvm.org:8011/#/builders/8, where wrong code resulted when this
extension was not performed.

Thanks for review by Ulrich Weigand and Roman Lebedev.

Differential Revision: https://reviews.llvm.org/D90760
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
llvm/test/Transforms/InferFunctionAttrs/annotate.ll