llvm/llvm-project

[InstCombiner] foldIntrinsicIsFPClass - incorrect submasking of FPClassTest masks

Open

#189,949 建立於 2026年4月1日

在 GitHub 查看
 (15 留言) (0 反應) (1 負責人)C++ (10,782 fork)batch import
floating-pointgood first issuellvm:instcombine

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

As mentioned here when creating the DAG equivalent: https://github.com/llvm/llvm-project/pull/189944#discussion_r3021637130

We shouldn't be looking for equality, we should be testing that they are a subset of the known classes:

https://github.com/llvm/llvm-project/blob/03b5539dd58584e6821e11123d5c8546147a6f41/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp#L1180-L1184

貢獻者指南