InstCombine: fold (sitofp (zext x)) to (uitofp x)
authorFiona Glaser <escha@apple.com>
Tue, 21 Apr 2015 00:05:41 +0000 (00:05 +0000)
committerFiona Glaser <escha@apple.com>
Tue, 21 Apr 2015 00:05:41 +0000 (00:05 +0000)
commitb5750565de2920ee522aee16ebc3a37a3c62d566
tree6546dc17169f24838f4dba9997d7c5876197b818
parent1aebbfac0a9e0f4d9a5983364a9e4f83ff63c58f
InstCombine: fold (sitofp (zext x)) to (uitofp x)

This is okay because the zext guarantees the high bit is zero,
and so the value is unsigned.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235364 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Instructions.cpp
test/Transforms/InstCombine/cast.ll