It's not safe to fold (fptrunc (sqrt (fpext x))) to (sqrtf x) if there is another...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 13 Jul 2011 19:08:16 +0000 (19:08 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 13 Jul 2011 19:08:16 +0000 (19:08 +0000)
commit93a635c82c33e331bd4c5f4f44ba1e37a08bd687
tree9da1ef6184cdaf04d2978ea718dd639628ae59eb
parent59642c260064a0c9140e048d702a21830020487f
It's not safe to fold (fptrunc (sqrt (fpext x))) to (sqrtf x) if there is another use of sqrt. rdar://9763193

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135058 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/sqrt.ll
tools/llvm-mc/llvm-mc.cpp