[PATCH] D19391: transform masking off of an FP sign bit into a fabs...but only if it's legal!

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 02:50:37 PDT 2016


RKSimon added a subscriber: RKSimon.

================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:7344
@@ +7343,3 @@
+    SDValue AndOp0 = N0->getOperand(0);
+    ConstantSDNode *AndOp1 = dyn_cast<ConstantSDNode>(N0->getOperand(1));
+    if (AndOp1 && AndOp1->getAPIntValue().isMaxSignedValue() &&
----------------
Can isConstOrConstSplat be used here to allow this combine to work on vectors as well?


http://reviews.llvm.org/D19391





More information about the llvm-commits mailing list