diff options
author | Alex MacLean <amaclean@nvidia.com> | 2024-08-30 07:34:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 07:34:49 -0700 |
commit | 369d8148e09c2b91174ec01e845bc504cf622c45 (patch) | |
tree | 9da713e12a052aa4985725015dc392f980bf020a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 0c4cf79defe30d43279bf4526cdf32b6c7f8a197 (diff) | |
download | llvm-369d8148e09c2b91174ec01e845bc504cf622c45.zip llvm-369d8148e09c2b91174ec01e845bc504cf622c45.tar.gz llvm-369d8148e09c2b91174ec01e845bc504cf622c45.tar.bz2 |
[ValueTracking] use KnownBits to compute fpclass from bitcast (#97762)
When we encounter a bitcast from an integer type we can use the
information from `KnownBits` to glean some information about the
fpclass:
- If the sign bit is known, we can transfer this information over.
- If the float is IEEE format and enough of the bits are known, we may
be able to prove or rule out some fpclasses such as NaN, Zero, or Inf.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions