InstCombine: Check source value precision when reducing cast intrinsic
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 20 Mar 2017 21:59:24 +0000 (21:59 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 20 Mar 2017 21:59:24 +0000 (21:59 +0000)
commitdb4ce1d165ddd25c27c2350badedd35c15b92188
treebffc11307931283b5d30d49932252bd3a640be4d
parentb38a51e92cbdf37010a07a461d004c25cdc033f5
InstCombine: Check source value precision when reducing cast intrinsic

Missed this check when porting from the libcall version.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298312 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/double-float-shrink-2.ll