[llvm] [ValueTracking] use KnownBits to compute fpclass from bitcast (PR #97762)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 10:49:03 PDT 2024


================
@@ -5805,6 +5805,36 @@ void computeKnownFPClass(const Value *V, const APInt &DemandedElts,
 
     break;
   }
+  case Instruction::BitCast: {
+    const Type *Ty = Op->getType();
+    const Value *Casted = Op->getOperand(0);
+    if (Ty->isVectorTy() || !Casted->getType()->isIntOrIntVectorTy())
----------------
AlexMaclean wrote:

Good point, added.

https://github.com/llvm/llvm-project/pull/97762


More information about the llvm-commits mailing list