[PATCH] D128895: [InstCombine] Make use of low zero bits to determine exact int->fp cast
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 3 07:43:16 PDT 2022
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp:1759
// Try harder to find if the source integer type has less significant bits.
// For example, compute number of sign bits or compute low bit mask.
KnownBits SrcKnown = IC.computeKnownBits(Src, 0, &I);
----------------
The "or compute low bit mask" part can probably be dropped now?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128895/new/
https://reviews.llvm.org/D128895
More information about the llvm-commits
mailing list