[InstCombine] Use known bits to determine exact int->fp cast
authorzhongyunde <zhongyunde@huawei.com>
Thu, 30 Jun 2022 01:43:43 +0000 (09:43 +0800)
committerzhongyunde <zhongyunde@huawei.com>
Thu, 30 Jun 2022 01:45:11 +0000 (09:45 +0800)
commit404479b4b042ab6c37cce67cea25eaa4d4d7ad43
tree596cbc54540e197c5efd7b7947445a03c9fbeae9
parent70557eb3938a0bdc784c9ae14e84e9ad9914ebdc
[InstCombine] Use known bits to determine exact int->fp cast

Reviewed By: spatel, nikic

Differential Revision: https://reviews.llvm.org/D127854
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/fpcast.ll
llvm/test/Transforms/InstCombine/sitofp.ll