================
@@ -6075,6 +6075,35 @@ bool SelectionDAG::isKnownNeverZeroFloat(SDValue Op)
const {
Op, [](ConstantFPSDNode *C) { return !C->isZero(); });
}
+bool SelectionDAG::allUsesSignedZeroInsensitive(SDValue Op) const {
+ assert(Op.getValueType().isFloatingPoint());
+ return all_of(Op->uses(), [&](SDUse &Use) {
----------------
guy-david wrote:
Sounds good, limiting it to two uses for now. I will look into implementing it
via demanded-bits in the near future.
Moving the SelectionDAG patch to
https://github.com/llvm/llvm-project/pull/165011 because I don't want it to be
tightly coupled to the fp-to-int-to-fp optimization.
https://github.com/llvm/llvm-project/pull/164503
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits