aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2018-04-24 12:57:51 +0000
committerAlexander Ivchenko <alexander.ivchenko@intel.com>2018-04-24 12:57:51 +0000
commit5717fbaf4c4c259ffe058e4e2d2c89a1b501b3e0 (patch)
tree6c64e66fb17d17540b8a2cd2aea6a9c1f6de4af6 /llvm/lib/Object/COFFObjectFile.cpp
parent7054b49e0193de6557676319fb1af9b59cc6b333 (diff)
downloadllvm-5717fbaf4c4c259ffe058e4e2d2c89a1b501b3e0.zip
llvm-5717fbaf4c4c259ffe058e4e2d2c89a1b501b3e0.tar.gz
llvm-5717fbaf4c4c259ffe058e4e2d2c89a1b501b3e0.tar.bz2
[X86] Replace action Promote with Expand for operation ISD::SINT_TO_FP
Summary: If attribute "use-soft-float"="true" is set then X86ISelLowering.cpp sets 'Promote' action for ISD::SINT_TO_FP operation on type i32. But 'Promote' action is not proper in this case since lib function __floatsidf is available for casting from signed int to float type. Thus Expand action is more suitable here. The Expand action should be set for ISD::UINT_TO_FP for soft float as well. If function attribute "use-soft-float"="true" is set then infinite looping can happen in DAG combining, function visitSINT_TO_FP() replaces SINT_TO_FP node with UINT_TO_FP node and function combineUIntToFP() replace vice versa in cycle. The fix prevents it. Patch by vrybalov Differential Revision: https://reviews.llvm.org/D45572 llvm-svn: 330711
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions