[llvm] [IR][ADT] Remove `APFloat/Type::isIEEE` (PR #130496)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 14 00:24:36 PDT 2025
================
@@ -4851,18 +4845,15 @@ Instruction *InstCombinerImpl::visitXor(BinaryOperator &I) {
// This is generous interpretation of noimplicitfloat, this is not a true
// floating-point operation.
//
- // Assumes any IEEE-represented type has the sign bit in the high bit.
+ // Assumes any floating point type has the sign bit in the high bit.
// TODO: Unify with APInt matcher. This version allows undef unlike m_APInt
Value *CastOp;
if (match(Op0, m_ElementWiseBitCast(m_Value(CastOp))) &&
- match(Op1, m_SignMask()) &&
+ CastOp->getType()->isFPOrFPVectorTy() && match(Op1, m_SignMask()) &&
----------------
dtcxzyw wrote:
Done.
https://github.com/llvm/llvm-project/pull/130496
More information about the llvm-commits
mailing list