diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2022-12-10 19:59:39 -0500 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2023-03-17 11:52:16 -0400 |
commit | ec2234a21a5dbffcc7b8eb0996e3aba288a4009a (patch) | |
tree | cc1d09982bdef5dfe9cff4fc82ffeaf009cd68c9 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 9f93b71f20eaa0e480ce1a184c40b27dd86576d9 (diff) | |
download | llvm-ec2234a21a5dbffcc7b8eb0996e3aba288a4009a.zip llvm-ec2234a21a5dbffcc7b8eb0996e3aba288a4009a.tar.gz llvm-ec2234a21a5dbffcc7b8eb0996e3aba288a4009a.tar.bz2 |
InstCombine: Fold is.fpclass for single infinity to fcmp
llvm.is.fpclass(x, fcPosInf) -> fcmp oeq x, +inf
llvm.is.fpclass(x, fcNegInf) -> fcmp oeq x, -inf
llvm.is.fpclass(x, ~fcPosInf) -> fcmp one x, +inf
llvm.is.fpclass(x, ~fcNegInf) -> fcmp one x, -inf
llvm.is.fpclass(x, fcPosInf|fcNan) -> fcmp ueq x, +inf
llvm.is.fpclass(x, fcNegInf|fcNan) -> fcmp ueq, -inf
llvm.is.fpclass(x, ~fcPosInf & ~fcNan) -> fcmp one, x, +inf
llvm.is.fpclass(x, ~fcNegInf & ~fcNan) -> fcmp one, x, -inf
This regresses some of the logic of fcmp tests. These should be restored
in a future patch to better handle combining logic of fcmp and class.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions