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)
commit0d41db11a2dcfc8f4410fb45aaa74d5ec1d10311
tree73038e5ecc20b1034fb92a1809a4d8b24f028b88
parent80f958dbf430dfe828a525d560d97eb14f5cf7ca
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.

llvm-svn: 235364
llvm/lib/IR/Instructions.cpp
llvm/test/Transforms/InstCombine/cast.ll