Broaden optimization of fcmp ([us]itofp x, constant) by instcombine.
authorArch D. Robison <arch.robison@intel.com>
Tue, 15 Sep 2015 17:51:59 +0000 (17:51 +0000)
committerArch D. Robison <arch.robison@intel.com>
Tue, 15 Sep 2015 17:51:59 +0000 (17:51 +0000)
commit5332ea03d1a061e10977c3db77437ed0f99bfd3a
treeec90a680bd5e63c80ccc62a5b241967574178b82
parentca857efb5b7308d5dda621685a766da6960a8157
Broaden optimization of fcmp ([us]itofp x, constant) by instcombine.

The patch extends the optimization to cases where the constant's
magnitude is so small or large that the rounding of the conversion
is irrelevant.  The "so small" case includes negative zero.

Differential review: http://reviews.llvm.org/D11210

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247708 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/cast-int-fcmp-eq-0.ll