InstCombine: fold more cases of (fp_to_u/sint (u/sint_to_fp val))
authorMehdi Amini <mehdi.amini@apple.com>
Mon, 16 Feb 2015 21:47:54 +0000 (21:47 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Mon, 16 Feb 2015 21:47:54 +0000 (21:47 +0000)
commite97c675022d7aba58992d6fb0e2a5f139f0db0a2
tree3ff85f4e3a1953ede516da9785c64d5e80e4ce32
parentbe55a79941c29fbe575f9afeaceb1f9c7b05b4d2
InstCombine: fold more cases of (fp_to_u/sint (u/sint_to_fp val))

Fixes radar 15486701.

From: Fiona Glaser <fglaser@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229437 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
test/Transforms/InstCombine/sitofp.ll