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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 4 21:06:54 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);
----------------
dtcxzyw wrote:

```suggestion
    const Value *Src = Op->getOperand(0);
```
`Casted` sounds like the result of a cast inst.


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


More information about the llvm-commits mailing list