topperc wrote:

Are the KnownBits in SimplifyDemandedBit usable? We have this code

```
    if (SimplifyDemandedBits(I, 1, DemandedMask, RHSKnown, Depth + 1) ||        
 
        SimplifyDemandedBits(I, 0, DemandedMask & ~RHSKnown.One, LHSKnown,      
 
                             Depth + 1)) { 
```

Can we trust the known bits for the LHS if we didn't demanded them due to known 
1s on the right hand side?

https://github.com/llvm/llvm-project/pull/72912
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to