| Issue |
175571
|
| Summary |
[DAG] Add initial version of SelectionDAG::computeKnownFPClass
|
| Labels |
good first issue,
llvm:SelectionDAG
|
| Assignees |
|
| Reporter |
RKSimon
|
Add initial FP class value tracking handling:
```
KnownFPClass SelectionDAG::computeKnownFPClass(SDValue Op, FPClassTest InterestedClasses, unsigned Depth);
KnownFPClass SelectionDAG::computeKnownFPClass(SDValue Op, const APInt &DemandedElts, FPClassTest InterestedClasses, unsigned Depth);
```
Initial version will be just the basic skeleton method and scalar -> DemandedElts wrapper, max depth early-out, ConstantFPSDNode/BUILD_VECTOR handling and maybe a dummy TargetLowering::computeKnownFPClassForTargetNode base method.
Initial test coverage can probably be added inside AArch64SelectionDAGTest.cpp similar to its ComputeKnownBits test coverage.
Make sure to review both the existing llvm::computeKnownFPClass and GISelValueTracking::computeKnownFPClass implementations.
Hopefully from this we can then split the work to pretty quickly migrate the functionality out of isKnownNeverNaN.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs