aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorYingwei Zheng <dtcxzyw2333@gmail.com>2024-02-04 07:09:37 +0800
committerGitHub <noreply@github.com>2024-02-04 07:09:37 +0800
commit390b99743bdd60649414fe470d7a9bacc9992231 (patch)
treea1fd468ed858bc1da5559fe41bafce2b46215070 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent08e942aca64d4d16e55a25d7e7eda8ef192727fd (diff)
downloadllvm-390b99743bdd60649414fe470d7a9bacc9992231.zip
llvm-390b99743bdd60649414fe470d7a9bacc9992231.tar.gz
llvm-390b99743bdd60649414fe470d7a9bacc9992231.tar.bz2
[InstCombine] Handle isNanOrInf idioms (#80414)
This patch folds: ``` (icmp eq (and (bitcast X to int), ExponentMask), ExponentMask) --> llvm.is.fpclass(X, fcInf|fcNan) (icmp ne (and (bitcast X to int), ExponentMask), ExponentMask) --> llvm.is.fpclass(X, ~(fcInf|fcNan)) ``` Alive2: https://alive2.llvm.org/ce/z/_hXAAF
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions